simp-rspec-puppet-facts 1.0.1 → 1.2.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 +4 -4
- data/README.md +97 -3
- data/facts/1.6/centos-6-x86_64.facts +0 -0
- data/facts/1.6/centos-7-x86_64.facts +0 -0
- data/facts/1.6/redhat-6-x86_64.facts +0 -0
- data/facts/1.6/redhat-7-x86_64.facts +0 -0
- data/facts/1.7/centos-6-x86_64.facts +104 -0
- data/facts/1.7/centos-7-x86_64.facts +102 -0
- data/facts/1.7/redhat-6-x86_64.facts +107 -0
- data/facts/1.7/redhat-7-x86_64.facts +102 -0
- data/facts/2.0/centos-6-x86_64.facts +200 -0
- data/facts/2.0/centos-7-x86_64.facts +194 -0
- data/facts/2.0/redhat-6-x86_64.facts +196 -0
- data/facts/2.0/redhat-7-x86_64.facts +195 -0
- data/facts/2.1/centos-6-x86_64.facts +212 -0
- data/facts/2.1/centos-7-x86_64.facts +212 -0
- data/facts/2.1/redhat-6-x86_64.facts +208 -0
- data/facts/2.1/redhat-7-x86_64.facts +213 -0
- data/facts/2.2/centos-6-x86_64.facts +235 -0
- data/facts/2.2/centos-7-x86_64.facts +235 -0
- data/facts/2.2/redhat-6-x86_64.facts +231 -0
- data/facts/2.2/redhat-7-x86_64.facts +236 -0
- data/facts/2.3/centos-6-x86_64.facts +236 -0
- data/facts/2.3/centos-7-x86_64.facts +236 -0
- data/facts/2.3/redhat-6-x86_64.facts +232 -0
- data/facts/2.3/redhat-7-x86_64.facts +237 -0
- data/facts/2.4/centos-6-x86_64.facts +236 -0
- data/facts/2.4/centos-7-x86_64.facts +236 -0
- data/facts/2.4/redhat-6-x86_64.facts +232 -0
- data/facts/2.4/redhat-7-x86_64.facts +237 -0
- data/facts/3.0/centos-6-x86_64.facts +339 -0
- data/facts/3.0/centos-7-x86_64.facts +343 -0
- data/facts/3.0/redhat-6-x86_64.facts +338 -0
- data/facts/3.0/redhat-7-x86_64.facts +348 -0
- data/facts/3.1/centos-6-x86_64.facts +368 -0
- data/facts/3.1/centos-7-x86_64.facts +372 -0
- data/facts/3.1/redhat-6-x86_64.facts +367 -0
- data/facts/3.1/redhat-7-x86_64.facts +377 -0
- data/facts/Gemfile +11 -0
- data/facts/Vagrantfile +34 -0
- data/facts/get_facts.sh +35 -0
- data/lib/simp/rspec-puppet-facts.rb +100 -40
- data/lib/simp/version.rb +4 -0
- data/spec/fixtures/metadata.json +2 -2
- data/spec/simp_rspec_puppet_facts_spec.rb +120 -51
- data/spec/spec_helper.rb +0 -6
- metadata +107 -70
@@ -1,55 +1,115 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
module Simp; end
|
2
4
|
module Simp::RspecPuppetFacts
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
def extra_os_facts
|
7
|
-
{
|
8
|
-
'CentOS' => {
|
9
|
-
'6' => {
|
10
|
-
'x86_64' => {
|
11
|
-
:grub_version => '0.97',
|
12
|
-
:uid_min => '500',
|
13
|
-
},
|
14
|
-
},
|
15
|
-
'7' => {
|
16
|
-
'x86_64' => {
|
17
|
-
:grub_version => '2.02~beta2',
|
18
|
-
:uid_min => '500',
|
19
|
-
},
|
20
|
-
},
|
21
|
-
},
|
22
|
-
'RedHat' => {
|
23
|
-
'6' => {
|
24
|
-
'x86_64' => {
|
25
|
-
:grub_version => '0.97',
|
26
|
-
:uid_min => '500',
|
27
|
-
},
|
28
|
-
},
|
29
|
-
'7' => {
|
30
|
-
'x86_64' => {
|
31
|
-
:grub_version => '2.02~beta2',
|
32
|
-
:uid_min => '500',
|
33
|
-
},
|
34
|
-
},
|
35
|
-
},
|
36
|
-
}
|
37
|
-
end
|
5
|
+
require File.expand_path('version', File.dirname(__FILE__))
|
6
|
+
|
7
|
+
SELINUX_MODES= [:enforcing, :disabled, :permissive]
|
38
8
|
|
39
9
|
def on_supported_os( opts = {} )
|
40
10
|
h = Simp::RspecPuppetFacts::Shim.on_supported_os( opts )
|
11
|
+
selinux_mode = opts.fetch(:selinux_mode,:enforcing)
|
12
|
+
|
41
13
|
h.each do | os, facts |
|
42
|
-
|
43
|
-
|
44
|
-
|
14
|
+
facter_version=Facter.version[0..2]
|
15
|
+
facts_file = File.expand_path("../../facts/#{facter_version}/#{os}.facts", File.dirname(__FILE__))
|
16
|
+
if File.file? facts_file
|
17
|
+
captured_facts_raw = File.open(
|
18
|
+
File.expand_path("../../facts/#{facter_version}/#{os}.facts", File.dirname(__FILE__))
|
19
|
+
).read
|
20
|
+
captured_facts = symbolize_keys JSON.parse( captured_facts_raw )
|
21
|
+
captured_facts.keep_if{ |k,v| (captured_facts.keys-facts.keys).include? k }
|
22
|
+
|
23
|
+
facts.merge! captured_facts
|
24
|
+
facts.merge! opts.fetch( :extra_facts, {} )
|
25
|
+
facts.merge! lsb_facts( facts )
|
26
|
+
facts.merge! selinux_facts( selinux_mode, facts )
|
27
|
+
facts.merge! opts.fetch( :extra_facts_immutable, {} )
|
28
|
+
end
|
45
29
|
|
46
|
-
|
47
|
-
|
30
|
+
if ( ENV.key?('SIMP_FACTS_OS') &&
|
31
|
+
!ENV['SIMP_FACTS_OS'].nil? &&
|
32
|
+
ENV['SIMP_FACTS_OS'].strip != '' &&
|
33
|
+
ENV['SIMP_FACTS_OS'] !~ /all/i )
|
34
|
+
unless ENV['SIMP_FACTS_OS'].split(/[ ,]+/).include? os
|
35
|
+
h.delete(os)
|
36
|
+
end
|
37
|
+
end
|
48
38
|
end
|
49
39
|
|
50
40
|
h
|
51
41
|
end
|
52
42
|
|
43
|
+
|
44
|
+
def lsb_facts( facts )
|
45
|
+
lsb_facts = {}
|
46
|
+
# attempt to massage a major release version if missing (for facter 1.6)
|
47
|
+
unless ENV['SIMP_FACTS_lsb'] == 'no'
|
48
|
+
puts "==== mocking lsb facts [disable with SIMP_FACTS_lsb=no]" if ENV['VERBOSE']
|
49
|
+
rel = facts.fetch(:operatingsystemmajrelease,
|
50
|
+
facts.fetch(:operatingsystemrelease).split('.').first)
|
51
|
+
lsb_facts[:lsbmajdistrelease] = rel
|
52
|
+
end
|
53
|
+
lsb_facts
|
54
|
+
end
|
55
|
+
|
56
|
+
def selinux_facts( mode, facts )
|
57
|
+
unless SELINUX_MODES.include?( mode )
|
58
|
+
fail "FATAL: `mode` must be one of: #{SELINUX_MODES.map{|x| x.to_s.sub(/^/,':')}.join(', ')}"
|
59
|
+
end
|
60
|
+
sefacts = {}
|
61
|
+
sefacts_enforcing = {
|
62
|
+
:selinux => true,
|
63
|
+
:selinux_current_mode => 'enforcing',
|
64
|
+
:selinux_state => 'enforcing',
|
65
|
+
}
|
66
|
+
sefacts_permissive = {
|
67
|
+
:selinux => true,
|
68
|
+
:selinux_current_mode => 'permissive',
|
69
|
+
:selinux_state => 'permssive',
|
70
|
+
}
|
71
|
+
sefacts_disabled = {
|
72
|
+
:selinux => false,
|
73
|
+
:selinux_current_mode => 'disabled',
|
74
|
+
:selinux_state => 'disabled',
|
75
|
+
}
|
76
|
+
sefacts = sefacts_enforcing
|
77
|
+
sefacts = sefacts_enforcing if mode == :enforcing
|
78
|
+
sefacts = sefacts_permissive if mode == :permissive
|
79
|
+
sefacts = sefacts_disabled if mode == :disabled
|
80
|
+
|
81
|
+
# ensure mount options in :tmp_mount_* facts match
|
82
|
+
['tmp','var_tmp','dev_shm'].each do |m|
|
83
|
+
k = "tmp_mount_#{m}".to_sym
|
84
|
+
if mount_opts = facts.fetch(k,false)
|
85
|
+
if mode == :disabled
|
86
|
+
sefacts[k] = mount_opts.sub(/,seclabel$|seclabel,/, '')
|
87
|
+
else
|
88
|
+
unless mount_opts =~ /\bseclabel\b/
|
89
|
+
sefacts[k] = "#{mount_opts},seclabel"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
facts.merge sefacts
|
95
|
+
end
|
96
|
+
|
97
|
+
# recursively onvert all hash keys to symbols
|
98
|
+
def symbolize_keys(hash)
|
99
|
+
hash.inject({}){|result, (key, value)|
|
100
|
+
new_key = case key
|
101
|
+
when String then key.to_sym
|
102
|
+
else key
|
103
|
+
end
|
104
|
+
new_value = case value
|
105
|
+
when Hash then symbolize_keys(value)
|
106
|
+
else value
|
107
|
+
end
|
108
|
+
result[new_key] = new_value
|
109
|
+
result
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
53
113
|
class Shim
|
54
114
|
require 'rspec-puppet-facts'
|
55
115
|
extend ::RspecPuppetFacts
|
data/lib/simp/version.rb
ADDED
data/spec/fixtures/metadata.json
CHANGED
@@ -13,14 +13,14 @@
|
|
13
13
|
],
|
14
14
|
"operatingsystem_support": [
|
15
15
|
{
|
16
|
-
"operatingsystem": "
|
16
|
+
"operatingsystem": "CentOS",
|
17
17
|
"operatingsystemrelease": [
|
18
18
|
"6",
|
19
19
|
"7"
|
20
20
|
]
|
21
21
|
},
|
22
22
|
{
|
23
|
-
"operatingsystem": "
|
23
|
+
"operatingsystem": "RedHat",
|
24
24
|
"operatingsystemrelease": [
|
25
25
|
"6",
|
26
26
|
"7"
|
@@ -2,66 +2,50 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'Simp::RspecPuppetFacts' do
|
4
4
|
|
5
|
+
|
5
6
|
describe '#on_supported_os' do
|
6
7
|
|
7
8
|
context 'Without parameter' do
|
8
9
|
subject { on_supported_os() }
|
9
10
|
|
10
|
-
context 'Without metadata.json' do
|
11
|
+
context 'Without a metadata.json file' do
|
11
12
|
it { expect { subject }.to raise_error(StandardError, /Can't find metadata.json/) }
|
12
13
|
end
|
13
14
|
|
14
|
-
context 'With a metadata.json' do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
context 'With missing operatingsystem_support section' do
|
19
|
-
before :all do
|
20
|
-
fixture = File.read('spec/fixtures/metadata.json_with_missing_operatingsystem_support')
|
21
|
-
File.expects(:file?).with('metadata.json').returns true
|
22
|
-
File.expects(:read).with('metadata.json').returns fixture
|
23
|
-
end
|
15
|
+
context 'With a metadata.json file' do
|
16
|
+
before :all do
|
17
|
+
Dir.chdir( File.join(File.dirname(__FILE__),'fixtures'))
|
18
|
+
end
|
24
19
|
|
25
|
-
|
26
|
-
|
20
|
+
it 'should return a hash' do
|
21
|
+
expect( on_supported_os().class ).to eq Hash
|
27
22
|
end
|
23
|
+
it 'should have 4 elements' do
|
24
|
+
expect(subject.size).to eq 4
|
25
|
+
end
|
26
|
+
it 'should return supported OS' do
|
27
|
+
expect(subject.keys.sort).to eq [
|
28
|
+
'centos-6-x86_64',
|
29
|
+
'centos-7-x86_64',
|
30
|
+
'redhat-6-x86_64',
|
31
|
+
'redhat-7-x86_64',
|
32
|
+
]
|
33
|
+
end
|
34
|
+
it 'should return SIMP-specific OS facts' do
|
35
|
+
expect(subject.map{ |os,data| {os =>
|
36
|
+
data.select{ |x,v| x == :uid_min || x == :grub_version }}}
|
37
|
+
).to eq [
|
38
|
+
{"centos-6-x86_64"=>{:uid_min=>"500", :grub_version=>"0.97" }},
|
39
|
+
{"centos-7-x86_64"=>{:uid_min=>"1000", :grub_version=>"2.02~beta2"}},
|
40
|
+
{"redhat-6-x86_64"=>{:uid_min=>"500", :grub_version=>"0.97" }},
|
41
|
+
{"redhat-7-x86_64"=>{:uid_min=>"1000", :grub_version=>"2.02~beta2"}},
|
42
|
+
]
|
28
43
|
|
29
|
-
context 'With a valid metadata.json' do
|
30
|
-
before :all do
|
31
|
-
fixture = File.read('spec/fixtures/metadata.json')
|
32
|
-
File.expects(:file?).with('metadata.json').returns true
|
33
|
-
File.expects(:read).with('metadata.json').returns fixture
|
34
|
-
end
|
35
|
-
|
36
|
-
it 'should return a hash' do
|
37
|
-
expect( on_supported_os().class ).to eq Hash
|
38
|
-
end
|
39
|
-
it 'should have 4 elements' do
|
40
|
-
expect(subject.size).to eq 4
|
41
|
-
end
|
42
|
-
it 'should return supported OS' do
|
43
|
-
expect(subject.keys.sort).to eq [
|
44
|
-
'centos-6-x86_64',
|
45
|
-
'centos-7-x86_64',
|
46
|
-
'redhat-6-x86_64',
|
47
|
-
'redhat-7-x86_64',
|
48
|
-
]
|
49
|
-
end
|
50
|
-
it 'should return SIMP-specific OS facts' do
|
51
|
-
expect(subject.map{ |os,data| {os =>
|
52
|
-
data.select{ |x,v| x == :uid_min || x == :grub_version }}}
|
53
|
-
).to eq [
|
54
|
-
{"redhat-6-x86_64"=>{:grub_version=>"0.97", :uid_min=>"500"}},
|
55
|
-
{"redhat-7-x86_64"=>{:grub_version=>"2.02~beta2", :uid_min=>"500"}},
|
56
|
-
{"centos-6-x86_64"=>{:grub_version=>"0.97", :uid_min=>"500"}},
|
57
|
-
{"centos-7-x86_64"=>{:grub_version=>"2.02~beta2", :uid_min=>"500"}}
|
58
|
-
]
|
59
|
-
end
|
60
44
|
end
|
61
45
|
end
|
62
46
|
end
|
63
47
|
|
64
|
-
context 'When specifying supported_os' do
|
48
|
+
context 'When specifying supported_os=redhat-6-x86_64,redhat-7-x86_64' do
|
65
49
|
subject {
|
66
50
|
on_supported_os(
|
67
51
|
{
|
@@ -89,12 +73,26 @@ describe 'Simp::RspecPuppetFacts' do
|
|
89
73
|
'redhat-7-x86_64',
|
90
74
|
]
|
91
75
|
end
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
76
|
+
end
|
77
|
+
|
78
|
+
context 'When specifying SIMP_FACTS_OS=redhat-6-x86_64,redhat-7-x86_64' do
|
79
|
+
subject {
|
80
|
+
x = ENV['SIMP_FACTS_OS']
|
81
|
+
ENV['SIMP_FACTS_OS']='redhat-6-x86_64,redhat-7-x86_64'
|
82
|
+
h = on_supported_os()
|
83
|
+
ENV['SIMP_FACTS_OS']=x
|
84
|
+
h
|
85
|
+
}
|
86
|
+
it 'should return a hash' do
|
87
|
+
expect(subject.class).to eq Hash
|
88
|
+
end
|
89
|
+
it 'should have 2 elements' do
|
90
|
+
expect(subject.size).to eq 2
|
91
|
+
end
|
92
|
+
it 'should return supported OS' do
|
93
|
+
expect(subject.keys.sort).to eq [
|
94
|
+
'redhat-6-x86_64',
|
95
|
+
'redhat-7-x86_64',
|
98
96
|
]
|
99
97
|
end
|
100
98
|
end
|
@@ -121,4 +119,75 @@ describe 'Simp::RspecPuppetFacts' do
|
|
121
119
|
end
|
122
120
|
end
|
123
121
|
end
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
describe '#selinux_facts' do
|
126
|
+
context 'When :enforcing' do
|
127
|
+
subject { selinux_facts(:enforcing,{}) }
|
128
|
+
it 'should return a hash' do
|
129
|
+
expect( subject.class ).to eq Hash
|
130
|
+
end
|
131
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime"`' do
|
132
|
+
subject { selinux_facts(:enforcing,{ :tmp_mount_dev_shm => 'rw,noatime'}) }
|
133
|
+
it 'should have a :tmp_mount_dev_shm key' do
|
134
|
+
expect( subject.key? :tmp_mount_dev_shm ).to be true
|
135
|
+
end
|
136
|
+
it ':tmp_mount_dev_shm should include "seclabel"' do
|
137
|
+
expect( subject[:tmp_mount_dev_shm] ).to match /\bseclabel\b/
|
138
|
+
end
|
139
|
+
end
|
140
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime,seclabel"`' do
|
141
|
+
subject { selinux_facts(:enforcing,{ :tmp_mount_dev_shm => 'rw,noatime,seclabel'}) }
|
142
|
+
it ':tmp_mount_dev_shm should include "seclabel"' do
|
143
|
+
expect( subject[:tmp_mount_dev_shm] ).to match /\bseclabel\b/
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
context 'When :permissive' do
|
149
|
+
subject { selinux_facts(:permissive,{}) }
|
150
|
+
it 'should return a hash' do
|
151
|
+
expect( subject.class ).to eq Hash
|
152
|
+
end
|
153
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime"`' do
|
154
|
+
subject { selinux_facts(:permissive,{ :tmp_mount_dev_shm => 'rw,noatime'}) }
|
155
|
+
it 'should have a :tmp_mount_dev_shm key' do
|
156
|
+
expect( subject.key? :tmp_mount_dev_shm ).to be true
|
157
|
+
end
|
158
|
+
it ':tmp_mount_dev_shm should include "seclabel"' do
|
159
|
+
expect( subject[:tmp_mount_dev_shm] ).to match /\bseclabel\b/
|
160
|
+
end
|
161
|
+
end
|
162
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime,seclabel"`' do
|
163
|
+
subject { selinux_facts(:permissive,{ :tmp_mount_dev_shm => 'rw,noatime,seclabel'}) }
|
164
|
+
it ':tmp_mount_dev_shm should include "seclabel"' do
|
165
|
+
expect( subject[:tmp_mount_dev_shm] ).to match /\bseclabel\b/
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
context 'When :disabled' do
|
171
|
+
subject { selinux_facts(:disabled,{}) }
|
172
|
+
it 'should return a hash' do
|
173
|
+
expect( subject.class ).to eq Hash
|
174
|
+
end
|
175
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime"`' do
|
176
|
+
subject { selinux_facts(:disabled,{ :tmp_mount_dev_shm => 'rw,noatime'}) }
|
177
|
+
it 'should have a :tmp_mount_dev_shm key' do
|
178
|
+
expect( subject.key? :tmp_mount_dev_shm ).to be true
|
179
|
+
end
|
180
|
+
it ':tmp_mount_dev_shm should not include "seclabel"' do
|
181
|
+
expect( subject[:tmp_mount_dev_shm] ).to_not match /\bseclabel\b/
|
182
|
+
end
|
183
|
+
end
|
184
|
+
context 'when facts include `:tmp_mount_dev_shm => "rw,noatime,seclabel"`' do
|
185
|
+
subject { selinux_facts(:disabled,{ :tmp_mount_dev_shm => 'rw,noatime,seclabel'}) }
|
186
|
+
it ':tmp_mount_dev_shm should not include "seclabel"' do
|
187
|
+
expect( subject[:tmp_mount_dev_shm] ).to_not match /\bseclabel\b/
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
124
193
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rspec-puppet-facts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,154 +9,112 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-puppet-facts
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '10'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '10'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3'
|
48
|
+
version: '3.2'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: mime-types
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '2'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '2'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: coveralls
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - "~>"
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: mocha
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '1'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '1'
|
55
|
+
version: '3.2'
|
98
56
|
- !ruby/object:Gem::Dependency
|
99
57
|
name: json
|
100
58
|
requirement: !ruby/object:Gem::Requirement
|
101
59
|
requirements:
|
102
|
-
- -
|
60
|
+
- - ~>
|
103
61
|
- !ruby/object:Gem::Version
|
104
62
|
version: '1'
|
105
63
|
type: :runtime
|
106
64
|
prerelease: false
|
107
65
|
version_requirements: !ruby/object:Gem::Requirement
|
108
66
|
requirements:
|
109
|
-
- -
|
67
|
+
- - ~>
|
110
68
|
- !ruby/object:Gem::Version
|
111
69
|
version: '1'
|
112
70
|
- !ruby/object:Gem::Dependency
|
113
71
|
name: facter
|
114
72
|
requirement: !ruby/object:Gem::Requirement
|
115
73
|
requirements:
|
116
|
-
- -
|
74
|
+
- - '>='
|
117
75
|
- !ruby/object:Gem::Version
|
118
76
|
version: 1.5.0
|
119
|
-
- -
|
77
|
+
- - <
|
120
78
|
- !ruby/object:Gem::Version
|
121
79
|
version: '3.0'
|
122
80
|
type: :runtime
|
123
81
|
prerelease: false
|
124
82
|
version_requirements: !ruby/object:Gem::Requirement
|
125
83
|
requirements:
|
126
|
-
- -
|
84
|
+
- - '>='
|
127
85
|
- !ruby/object:Gem::Version
|
128
86
|
version: 1.5.0
|
129
|
-
- -
|
87
|
+
- - <
|
130
88
|
- !ruby/object:Gem::Version
|
131
89
|
version: '3.0'
|
132
90
|
- !ruby/object:Gem::Dependency
|
133
91
|
name: pry
|
134
92
|
requirement: !ruby/object:Gem::Requirement
|
135
93
|
requirements:
|
136
|
-
- -
|
94
|
+
- - ~>
|
137
95
|
- !ruby/object:Gem::Version
|
138
96
|
version: '0'
|
139
97
|
type: :development
|
140
98
|
prerelease: false
|
141
99
|
version_requirements: !ruby/object:Gem::Requirement
|
142
100
|
requirements:
|
143
|
-
- -
|
101
|
+
- - ~>
|
144
102
|
- !ruby/object:Gem::Version
|
145
103
|
version: '0'
|
146
104
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
105
|
+
name: tins
|
148
106
|
requirement: !ruby/object:Gem::Requirement
|
149
107
|
requirements:
|
150
|
-
- -
|
108
|
+
- - <
|
151
109
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
110
|
+
version: '1.7'
|
153
111
|
type: :development
|
154
112
|
prerelease: false
|
155
113
|
version_requirements: !ruby/object:Gem::Requirement
|
156
114
|
requirements:
|
157
|
-
- -
|
115
|
+
- - <
|
158
116
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
117
|
+
version: '1.7'
|
160
118
|
description: shim that injects SIMP-related facts into rspec-puppet-facts
|
161
119
|
email: simp@simp-project.org
|
162
120
|
executables: []
|
@@ -166,8 +124,48 @@ files:
|
|
166
124
|
- LICENSE
|
167
125
|
- README.md
|
168
126
|
- Rakefile
|
127
|
+
- facts/1.6/centos-6-x86_64.facts
|
128
|
+
- facts/1.6/centos-7-x86_64.facts
|
129
|
+
- facts/1.6/redhat-6-x86_64.facts
|
130
|
+
- facts/1.6/redhat-7-x86_64.facts
|
131
|
+
- facts/1.7/centos-6-x86_64.facts
|
132
|
+
- facts/1.7/centos-7-x86_64.facts
|
133
|
+
- facts/1.7/redhat-6-x86_64.facts
|
134
|
+
- facts/1.7/redhat-7-x86_64.facts
|
135
|
+
- facts/2.0/centos-6-x86_64.facts
|
136
|
+
- facts/2.0/centos-7-x86_64.facts
|
137
|
+
- facts/2.0/redhat-6-x86_64.facts
|
138
|
+
- facts/2.0/redhat-7-x86_64.facts
|
139
|
+
- facts/2.1/centos-6-x86_64.facts
|
140
|
+
- facts/2.1/centos-7-x86_64.facts
|
141
|
+
- facts/2.1/redhat-6-x86_64.facts
|
142
|
+
- facts/2.1/redhat-7-x86_64.facts
|
143
|
+
- facts/2.2/centos-6-x86_64.facts
|
144
|
+
- facts/2.2/centos-7-x86_64.facts
|
145
|
+
- facts/2.2/redhat-6-x86_64.facts
|
146
|
+
- facts/2.2/redhat-7-x86_64.facts
|
147
|
+
- facts/2.3/centos-6-x86_64.facts
|
148
|
+
- facts/2.3/centos-7-x86_64.facts
|
149
|
+
- facts/2.3/redhat-6-x86_64.facts
|
150
|
+
- facts/2.3/redhat-7-x86_64.facts
|
151
|
+
- facts/2.4/centos-6-x86_64.facts
|
152
|
+
- facts/2.4/centos-7-x86_64.facts
|
153
|
+
- facts/2.4/redhat-6-x86_64.facts
|
154
|
+
- facts/2.4/redhat-7-x86_64.facts
|
155
|
+
- facts/3.0/centos-6-x86_64.facts
|
156
|
+
- facts/3.0/centos-7-x86_64.facts
|
157
|
+
- facts/3.0/redhat-6-x86_64.facts
|
158
|
+
- facts/3.0/redhat-7-x86_64.facts
|
159
|
+
- facts/3.1/centos-6-x86_64.facts
|
160
|
+
- facts/3.1/centos-7-x86_64.facts
|
161
|
+
- facts/3.1/redhat-6-x86_64.facts
|
162
|
+
- facts/3.1/redhat-7-x86_64.facts
|
163
|
+
- facts/Gemfile
|
164
|
+
- facts/Vagrantfile
|
165
|
+
- facts/get_facts.sh
|
169
166
|
- lib/simp-rspec-puppet-facts.rb
|
170
167
|
- lib/simp/rspec-puppet-facts.rb
|
168
|
+
- lib/simp/version.rb
|
171
169
|
- spec/fixtures/metadata.json
|
172
170
|
- spec/fixtures/metadata.json_with_missing_operatingsystem_support
|
173
171
|
- spec/simp_rspec_puppet_facts_spec.rb
|
@@ -182,25 +180,64 @@ require_paths:
|
|
182
180
|
- lib
|
183
181
|
required_ruby_version: !ruby/object:Gem::Requirement
|
184
182
|
requirements:
|
185
|
-
- -
|
183
|
+
- - '>='
|
186
184
|
- !ruby/object:Gem::Version
|
187
185
|
version: '0'
|
188
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
187
|
requirements:
|
190
|
-
- -
|
188
|
+
- - '>='
|
191
189
|
- !ruby/object:Gem::Version
|
192
190
|
version: '0'
|
193
191
|
requirements:
|
194
192
|
- rspec-puppet-facts
|
195
193
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.4.
|
194
|
+
rubygems_version: 2.4.8
|
197
195
|
signing_key:
|
198
196
|
specification_version: 4
|
199
197
|
summary: standard SIMP facts fixtures for Puppet
|
200
198
|
test_files:
|
201
199
|
- Rakefile
|
202
|
-
- spec/spec_helper.rb
|
203
|
-
- spec/fixtures/metadata.json
|
204
200
|
- spec/fixtures/metadata.json_with_missing_operatingsystem_support
|
201
|
+
- spec/fixtures/metadata.json
|
202
|
+
- spec/spec_helper.rb
|
205
203
|
- spec/simp_rspec_puppet_facts_spec.rb
|
204
|
+
- facts/2.1/redhat-7-x86_64.facts
|
205
|
+
- facts/2.1/redhat-6-x86_64.facts
|
206
|
+
- facts/2.1/centos-7-x86_64.facts
|
207
|
+
- facts/2.1/centos-6-x86_64.facts
|
208
|
+
- facts/2.0/redhat-7-x86_64.facts
|
209
|
+
- facts/2.0/redhat-6-x86_64.facts
|
210
|
+
- facts/2.0/centos-7-x86_64.facts
|
211
|
+
- facts/2.0/centos-6-x86_64.facts
|
212
|
+
- facts/get_facts.sh
|
213
|
+
- facts/1.6/redhat-7-x86_64.facts
|
214
|
+
- facts/1.6/redhat-6-x86_64.facts
|
215
|
+
- facts/1.6/centos-7-x86_64.facts
|
216
|
+
- facts/1.6/centos-6-x86_64.facts
|
217
|
+
- facts/1.7/redhat-7-x86_64.facts
|
218
|
+
- facts/1.7/redhat-6-x86_64.facts
|
219
|
+
- facts/1.7/centos-7-x86_64.facts
|
220
|
+
- facts/1.7/centos-6-x86_64.facts
|
221
|
+
- facts/3.0/redhat-7-x86_64.facts
|
222
|
+
- facts/3.0/redhat-6-x86_64.facts
|
223
|
+
- facts/3.0/centos-7-x86_64.facts
|
224
|
+
- facts/3.0/centos-6-x86_64.facts
|
225
|
+
- facts/Vagrantfile
|
226
|
+
- facts/3.1/redhat-7-x86_64.facts
|
227
|
+
- facts/3.1/redhat-6-x86_64.facts
|
228
|
+
- facts/3.1/centos-7-x86_64.facts
|
229
|
+
- facts/3.1/centos-6-x86_64.facts
|
230
|
+
- facts/2.3/redhat-7-x86_64.facts
|
231
|
+
- facts/2.3/redhat-6-x86_64.facts
|
232
|
+
- facts/2.3/centos-7-x86_64.facts
|
233
|
+
- facts/2.3/centos-6-x86_64.facts
|
234
|
+
- facts/2.2/redhat-7-x86_64.facts
|
235
|
+
- facts/2.2/redhat-6-x86_64.facts
|
236
|
+
- facts/2.2/centos-7-x86_64.facts
|
237
|
+
- facts/2.2/centos-6-x86_64.facts
|
238
|
+
- facts/2.4/redhat-7-x86_64.facts
|
239
|
+
- facts/2.4/redhat-6-x86_64.facts
|
240
|
+
- facts/2.4/centos-7-x86_64.facts
|
241
|
+
- facts/2.4/centos-6-x86_64.facts
|
242
|
+
- facts/Gemfile
|
206
243
|
has_rdoc:
|