setup_oob 0.0.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3a93919678e2246cd785a74270e4fa4ea3fdeff672cc5297a49499d2ad5957d
4
- data.tar.gz: a294bc86ab47251df59da69e8531fda1362c0eb8fc39900ae8b57295600b44e5
3
+ metadata.gz: 32005264f44b1b2011ce7eeac7d3acf8e9ef9dcdb6440e651ab820d51c1a1453
4
+ data.tar.gz: dca9b587bda6b30f55f10ae634aceed0a4414e7f0da399ba7d3fc4ec67118cd6
5
5
  SHA512:
6
- metadata.gz: f542cdc28aa71b2ca0d6859213e0784ea56a5b555ed8e7d7abcc37393316e2f7905d20ee1ecf5fbd978e607e59118430e3edc5f45c22418cec2eaa0cf9236ccd
7
- data.tar.gz: d3bc7d12c434d742a0948eabbbc2f48feefdcae3f3180a8f145da5f1216ad77565814d016a82984f23736b99b6506fa5710427f5b050c916059b35f5226423c0
6
+ metadata.gz: e35f9be2a758ace810e8d91eb758c1e80cc1fc8e5f8a03fcd42399e9412cfa7e00b39aac701d4569b045607019bbcc97c41e8c512c4800e1d0e16d870e7b7978
7
+ data.tar.gz: af6fc995333cf4f5d66b140f11b278f96f80e7113d5e3a3015be7f62505d69b353951fa02021c49b808a3426f092ecbb0e76ce5f53f1ff14c7bf3d61d41c84d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0
4
+
5
+ - Harden pipeline to prevent supply-chain vulnerabilities
6
+ - Bump to ruby 3.3 as minimum bersion
7
+ - Print help when no options are specified
8
+ - Various documentation improvements
9
+
3
10
  ## 0.0.3
4
11
 
5
12
  - Update Ruby requirements
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Setup OOB
2
2
 
3
- [![Continuous Integration](https://github.com/jaymzh/setup-oob/workflows/Continuous%20Integration/badge.svg)](https://github.com/jaymzh/setup-oob/actions?query=workflow%3AContinuous%20Integration)
4
-
5
- *NOTE*: This is a fork of
6
- [viariousinc/setup-oob](https://github.com/vicariousinc/setup-oob) which is
7
- defunct. This is now the official respository, feel free to send PRs or issues
8
- here.
3
+ [![Lint](
4
+ https://github.com/jaymzh/setup-oob/actions/workflows/lint.yml/badge.svg
5
+ )](https://github.com/jaymzh/setup-oob/actions/workflows/lint.yml)
6
+ [![DCO Check](
7
+ https://github.com/jaymzh/setup-oob/actions/workflows/dco.yml/badge.svg
8
+ )](https://github.com/jaymzh/setup-oob/actions/workflows/dco.yml)
9
9
 
10
10
  This is a utility for configuring out-of-band management systems from within
11
11
  the running (Linux) OS.
@@ -54,6 +54,20 @@ devices, when vendor-specific tooling is required, it may fail without
54
54
  specifying the password via `--old-password` (unless it's still the device
55
55
  default).
56
56
 
57
+ ## Installing
58
+
59
+ The easiest way to install is with gem:
60
+
61
+ ```shell
62
+ gem install setup_oob
63
+ ```
64
+
65
+ You can, alternatively simply run this from the repo:
66
+
67
+ ```shell
68
+ ./bin/setup-oob <options>
69
+ ```
70
+
57
71
  ## SMC Licensing
58
72
 
59
73
  Setup OOB can "activate" SMC systems for you. Automating this can be a bit
@@ -76,3 +90,10 @@ option.
76
90
 
77
91
  Setup OOB requires `ipmitool` at a minimum. For SMC hosts, that is the only
78
92
  requirement. For DRAC hosts, it also requires racadm.
93
+
94
+ ## History
95
+
96
+ This is a fork of
97
+ [viariousinc/setup-oob](https://github.com/vicariousinc/setup-oob) which is
98
+ defunct. This is now the official respository, feel free to send PRs or issues
99
+ here.
data/bin/setup-oob CHANGED
@@ -38,7 +38,7 @@ options = {
38
38
  :level => Logger::INFO,
39
39
  :host => 'localhost',
40
40
  }
41
- OptionParser.new do |opts|
41
+ parser = OptionParser.new do |opts|
42
42
  opts.on(
43
43
  '-l', '--log-level LEVEL', String, 'Logging level. Defaults to "info"'
44
44
  ) do |l|
@@ -122,10 +122,14 @@ OptionParser.new do |opts|
122
122
  puts SetupOOB::VERSION
123
123
  exit
124
124
  end
125
- end.parse!
125
+ end
126
+
127
+ parser.parse!
126
128
 
127
129
  unless options[:type]
128
- fail 'must specify type'
130
+ warn "ERROR: No type specified, please specify one with --type\n\n"
131
+ puts parse
132
+ exit(1)
129
133
  end
130
134
 
131
135
  puts "Configuring #{options[:host]}"
@@ -174,14 +174,14 @@ class SMCCommands
174
174
  end
175
175
 
176
176
  class Networkmode < SMCCommandBase
177
- private
178
-
179
177
  MODES = {
180
178
  :dedicated => 0x00,
181
179
  :shared => 0x01,
182
180
  :failover => 0x02,
183
181
  }.freeze
184
182
 
183
+ private
184
+
185
185
  include CommandMixins::Networkmode
186
186
 
187
187
  def mode_val
@@ -1,3 +1,3 @@
1
1
  class SetupOOB
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setup_oob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Dibowitz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir:
10
10
  - bin
11
11
  cert_chain: []
12
- date: 2024-03-27 00:00:00.000000000 Z
12
+ date: 2026-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ipaddress
@@ -59,7 +59,7 @@ files:
59
59
  - lib/setup_oob/command/smc.rb
60
60
  - lib/setup_oob/oob.rb
61
61
  - lib/setup_oob/version.rb
62
- homepage: https://github.com/vicariousinc/setup-oob
62
+ homepage: https://github.com/jaymzh/setup-oob
63
63
  licenses:
64
64
  - Apache-2.0
65
65
  metadata:
@@ -72,14 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '3.3'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.3.7
82
+ rubygems_version: 3.5.22
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Setup OOB systems from Linux