ohai 17.3.1 → 17.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -5
- data/lib/ohai/config.rb +1 -1
- data/lib/ohai/mixin/ec2_metadata.rb +26 -4
- data/lib/ohai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afaf1b3332e2a31c5d045ea50e9315bd9fcf64fcd21e120982974c5b9d167d76
|
4
|
+
data.tar.gz: ed90edfe09e2bf83fea9018b7f16d3fd16caf28aa998e75e44c9980789df6d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4693d375412563df16856fe88ccdfd83ba5279a9b33fb3856ea9a7299bc599c943d7360d7135d28a59543420456a250300ad416a5e93bb7b09f7041750c336c
|
7
|
+
data.tar.gz: ee963b18a46ea9b8a2d3292be0f82a2aaa7ef90cb629a71eb1fe51a661b5ded47d8da4c9b44f35614d169b6e0922dba3aa5e966ceab7055dcef8e57b50fc7afa
|
data/Gemfile
CHANGED
@@ -3,20 +3,20 @@ source "https://rubygems.org"
|
|
3
3
|
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
# pull these gems from
|
7
|
-
gem "chef-config", git: "https://github.com/chef/chef", branch: "
|
8
|
-
gem "chef-utils", git: "https://github.com/chef/chef", branch: "
|
6
|
+
# pull these gems from main of chef/chef so that we're testing against what we will release
|
7
|
+
gem "chef-config", git: "https://github.com/chef/chef", branch: "main", glob: "chef-config/chef-config.gemspec"
|
8
|
+
gem "chef-utils", git: "https://github.com/chef/chef", branch: "main", glob: "chef-utils/chef-utils.gemspec"
|
9
9
|
|
10
10
|
# NOTE: do not submit PRs to add pry as a dep, add to your Gemfile.local
|
11
11
|
group :development do
|
12
|
-
gem "chefstyle", "2.0.
|
12
|
+
gem "chefstyle", "2.0.9"
|
13
13
|
gem "ipaddr_extensions"
|
14
14
|
gem "rake", ">= 10.1.0"
|
15
15
|
gem "rspec-collection_matchers", "~> 1.0"
|
16
16
|
gem "rspec-core", "~> 3.0"
|
17
17
|
gem "rspec-expectations", "~> 3.0"
|
18
18
|
gem "rspec-mocks", "~> 3.0"
|
19
|
-
gem "rubocop-performance", "1.11.
|
19
|
+
gem "rubocop-performance", "1.11.5"
|
20
20
|
gem "rubocop-rspec"
|
21
21
|
end
|
22
22
|
|
data/lib/ohai/config.rb
CHANGED
@@ -26,7 +26,7 @@ module Ohai
|
|
26
26
|
Config = ChefConfig::Config
|
27
27
|
|
28
28
|
# Reopens ChefConfig::Config to add Ohai configuration settings.
|
29
|
-
# see: https://github.com/chef/chef/blob/
|
29
|
+
# see: https://github.com/chef/chef/blob/main/lib/chef/config.rb
|
30
30
|
class Config
|
31
31
|
config_context :ohai do
|
32
32
|
default :disabled_plugins, []
|
@@ -41,10 +41,32 @@ module Ohai
|
|
41
41
|
module Ec2Metadata
|
42
42
|
|
43
43
|
EC2_METADATA_ADDR ||= "169.254.169.254"
|
44
|
-
EC2_SUPPORTED_VERSIONS ||= %w{ 1.0
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
EC2_SUPPORTED_VERSIONS ||= %w{ 1.0
|
45
|
+
2007-01-19
|
46
|
+
2007-03-01
|
47
|
+
2007-08-29
|
48
|
+
2007-10-10
|
49
|
+
2007-12-15
|
50
|
+
2008-02-01
|
51
|
+
2008-09-01
|
52
|
+
2009-04-04
|
53
|
+
2011-01-01
|
54
|
+
2011-05-01
|
55
|
+
2012-01-12
|
56
|
+
2014-02-25
|
57
|
+
2014-11-05
|
58
|
+
2015-10-20
|
59
|
+
2016-04-19
|
60
|
+
2016-06-30
|
61
|
+
2016-09-02
|
62
|
+
2018-03-28
|
63
|
+
2018-08-17
|
64
|
+
2018-09-24
|
65
|
+
2019-10-01
|
66
|
+
2020-10-27
|
67
|
+
2021-01-03
|
68
|
+
2021-03-23
|
69
|
+
2021-07-15 }.freeze
|
48
70
|
EC2_ARRAY_VALUES ||= %w{security-groups local_ipv4s}.freeze
|
49
71
|
EC2_ARRAY_DIR ||= %w{network/interfaces/macs}.freeze
|
50
72
|
EC2_JSON_DIR ||= %w{iam}.freeze
|
data/lib/ohai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.
|
4
|
+
version: 17.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|