setup_oob 0.0.2 → 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: e37f878e0fdd08c8d47226384e9d9b1bc656e49c957e0bb4db46b546b0ac4d3a
4
- data.tar.gz: 1facb2ac5aa33efb16ff376328a39902a82440a7830e2f17b4daaccf74639d1f
3
+ metadata.gz: 32005264f44b1b2011ce7eeac7d3acf8e9ef9dcdb6440e651ab820d51c1a1453
4
+ data.tar.gz: dca9b587bda6b30f55f10ae634aceed0a4414e7f0da399ba7d3fc4ec67118cd6
5
5
  SHA512:
6
- metadata.gz: 9a503ca8d0f0000e2b4924c650891809ae0948f75b26137ddca718138d43464c571c7e7953b3a9a4e0edda9546984adb20df2213fca97c8b75801da0afbff354
7
- data.tar.gz: f50eaffb005367ad8f55cd4158b122bcbaffebf210f360df1e94cb2718eb195bb8e4a7c856980e7da218e29eeb5788b4c4f12415f4fff0170fb1f87afff58b67
6
+ metadata.gz: e35f9be2a758ace810e8d91eb758c1e80cc1fc8e5f8a03fcd42399e9412cfa7e00b39aac701d4569b045607019bbcc97c41e8c512c4800e1d0e16d870e7b7978
7
+ data.tar.gz: af6fc995333cf4f5d66b140f11b278f96f80e7113d5e3a3015be7f62505d69b353951fa02021c49b808a3426f092ecbb0e76ce5f53f1ff14c7bf3d61d41c84d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
10
+ ## 0.0.3
11
+
12
+ - Update Ruby requirements
13
+ - Fix shebang line
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  - Fix gem dependencies
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Setup OOB
2
2
 
3
- [![Continuous Integration](https://github.com/vicariousinc/setup-oob/workflows/Continuous%20Integration/badge.svg)](https://github.com/vicariousinc/setup-oob/actions?query=workflow%3AContinuous%20Integration)
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)
4
9
 
5
10
  This is a utility for configuring out-of-band management systems from within
6
11
  the running (Linux) OS.
@@ -49,6 +54,20 @@ devices, when vendor-specific tooling is required, it may fail without
49
54
  specifying the password via `--old-password` (unless it's still the device
50
55
  default).
51
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
+
52
71
  ## SMC Licensing
53
72
 
54
73
  Setup OOB can "activate" SMC systems for you. Automating this can be a bit
@@ -71,3 +90,10 @@ option.
71
90
 
72
91
  Setup OOB requires `ipmitool` at a minimum. For SMC hosts, that is the only
73
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
@@ -1,4 +1,4 @@
1
- #!/opt/chef/embedded/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
  # vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2
3
3
 
4
4
  # Copyright 2021-present Vicarious
@@ -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]}"
@@ -142,7 +142,7 @@ class SMCCommands
142
142
  en = out[0] == 1
143
143
  # when you check if NTP is enabled, a bunch of extra bytes
144
144
  # are passed back that MUST be passed in when enabling NTP
145
- @_magic = out[1..-1]
145
+ @_magic = out[1..]
146
146
  logger.debug("NTP enabled: #{en}, magic bytes: #{@_magic}")
147
147
  en
148
148
  end
@@ -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.2'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setup_oob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Dibowitz
8
- autorequire:
8
+ autorequire:
9
9
  bindir:
10
10
  - bin
11
11
  cert_chain: []
12
- date: 2022-01-05 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
@@ -40,7 +40,7 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  description: Utility for configuring OOB devices from linux
43
- email:
43
+ email:
44
44
  executables:
45
45
  - setup-oob
46
46
  extensions: []
@@ -59,11 +59,12 @@ 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
- metadata: {}
66
- post_install_message:
65
+ metadata:
66
+ rubygems_mfa_required: 'true'
67
+ post_install_message:
67
68
  rdoc_options: []
68
69
  require_paths:
69
70
  - lib
@@ -71,16 +72,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - ">="
73
74
  - !ruby/object:Gem::Version
74
- version: 2.5.0
75
+ version: '3.3'
75
76
  required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements:
77
78
  - - ">="
78
79
  - !ruby/object:Gem::Version
79
80
  version: '0'
80
81
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.6
83
- signing_key:
82
+ rubygems_version: 3.5.22
83
+ signing_key:
84
84
  specification_version: 4
85
85
  summary: Setup OOB systems from Linux
86
86
  test_files: []