simp-rspec-puppet-facts 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -5
- data/facts/2.5/windows-server_2012_r2-x86_64.facts +383 -0
- data/lib/simp/rspec-puppet-facts.rb +5 -2
- data/lib/simp/version.rb +1 -1
- data/spec/acceptance/nodesets/default.yml +87 -0
- data/spec/acceptance/nodesets/oel.yml +78 -0
- data/spec/acceptance/nodesets/rhel7.yml +41 -0
- data/spec/acceptance/nodesets/rhel8.yml +40 -0
- data/spec/acceptance/suites/default/00_default_spec.rb +51 -0
- data/spec/acceptance/suites/default/nodesets/default.yml +28 -0
- data/spec/spec_helper_acceptance.rb +96 -0
- metadata +96 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 721e0c7513aa38030c16aa9911abc60db5cbd7c7b090ed250b2df1fa7be361ad
|
4
|
+
data.tar.gz: da3e884fff0ebecaf255b3d1e63828286a7de460d71674c8f9c9864a7f9e5943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f9dbe4b6bd1828558fce36a38e5e5bec915cabdccd1d110e2014d931d886c8d7399ae9aeb1edfc35d9d21b715ae172f06dcfe9e6676d11580317b27087c4c3
|
7
|
+
data.tar.gz: 0716bb56d1ab6330b70706a66ab436a1ba82a4d17767b43620eae38d7405368953508a22ac63d6f58bc6a65d17751f0ac2cd861be0c6ab075f5169cac1324049
|
data/Rakefile
CHANGED
@@ -0,0 +1,383 @@
|
|
1
|
+
{
|
2
|
+
"aio_agent_version": "5.5.16",
|
3
|
+
"dmi": {
|
4
|
+
"manufacturer": "innotek GmbH",
|
5
|
+
"product": {
|
6
|
+
"name": "VirtualBox",
|
7
|
+
"serial_number": "0",
|
8
|
+
"uuid": "0B583E48-1882-504E-BB7B-6B822ECA03CB"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"env_windows_installdir": "C:\\Program Files\\Puppet Labs\\Puppet",
|
12
|
+
"facterversion": "3.11.9",
|
13
|
+
"hypervisors": {
|
14
|
+
"virtualbox": {
|
15
|
+
"revision": "132072",
|
16
|
+
"version": "6.0.10"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"identity": {
|
20
|
+
"privileged": true,
|
21
|
+
"user": "WIN\\vagrant"
|
22
|
+
},
|
23
|
+
"is_pe": false,
|
24
|
+
"is_virtual": true,
|
25
|
+
"kernel": "windows",
|
26
|
+
"kernelmajversion": "6.3",
|
27
|
+
"kernelrelease": "6.3.9600",
|
28
|
+
"kernelversion": "6.3.9600",
|
29
|
+
"memory": {
|
30
|
+
"system": {
|
31
|
+
"available": "501.13 MiB",
|
32
|
+
"available_bytes": 525475840,
|
33
|
+
"capacity": "75.53%",
|
34
|
+
"total": "2.00 GiB",
|
35
|
+
"total_bytes": 2147012608,
|
36
|
+
"used": "1.51 GiB",
|
37
|
+
"used_bytes": 1621536768
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"networking": {
|
41
|
+
"domain": "example.com",
|
42
|
+
"fqdn": "foo.example.com",
|
43
|
+
"hostname": "foo",
|
44
|
+
"interfaces": {
|
45
|
+
"Ethernet": {
|
46
|
+
"bindings": [
|
47
|
+
{
|
48
|
+
"address": "10.0.2.15",
|
49
|
+
"netmask": "255.255.255.0",
|
50
|
+
"network": "10.0.2.0"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"bindings6": [
|
54
|
+
{
|
55
|
+
"address": "fe80::e488:b85c:5262:ff86%12",
|
56
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
57
|
+
"network": "fe80::%12"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"dhcp": "10.0.2.2",
|
61
|
+
"ip": "10.0.2.15",
|
62
|
+
"ip6": "fe80::e488:b85c:5262:ff86%12",
|
63
|
+
"mac": "08:00:27:D5:9D:5A",
|
64
|
+
"mtu": 1500,
|
65
|
+
"netmask": "255.255.255.0",
|
66
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
67
|
+
"network": "10.0.2.0",
|
68
|
+
"network6": "fe80::%12"
|
69
|
+
},
|
70
|
+
"Ethernet 2": {
|
71
|
+
"bindings": [
|
72
|
+
{
|
73
|
+
"address": "10.0.2.15",
|
74
|
+
"netmask": "255.255.0.0",
|
75
|
+
"network": "10.0.2.0"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"bindings6": [
|
79
|
+
{
|
80
|
+
"address": "fe80::b1b7:992f:a695:b948%14",
|
81
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
82
|
+
"network": "fe80::%14"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"ip": "10.0.2.15",
|
86
|
+
"ip6": "fe80::b1b7:992f:a695:b948%14",
|
87
|
+
"mac": "08:00:27:16:F4:6E",
|
88
|
+
"mtu": 1500,
|
89
|
+
"netmask": "255.255.0.0",
|
90
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
91
|
+
"network": "10.0.2.0",
|
92
|
+
"network6": "fe80::%14"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
"ip": "10.0.2.15",
|
96
|
+
"ip6": "fe80::b1b7:992f:a695:b948%14",
|
97
|
+
"mac": "08:00:27:16:F4:6E",
|
98
|
+
"mtu": 1500,
|
99
|
+
"netmask": "255.255.0.0",
|
100
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
101
|
+
"network": "10.0.2.0",
|
102
|
+
"network6": "fe80::%14",
|
103
|
+
"primary": "Ethernet 2"
|
104
|
+
},
|
105
|
+
"os": {
|
106
|
+
"architecture": "x64",
|
107
|
+
"family": "windows",
|
108
|
+
"hardware": "x86_64",
|
109
|
+
"name": "windows",
|
110
|
+
"release": {
|
111
|
+
"full": "2012 R2",
|
112
|
+
"major": "2012 R2"
|
113
|
+
},
|
114
|
+
"windows": {
|
115
|
+
"edition_id": "ServerStandard",
|
116
|
+
"installation_type": "Server",
|
117
|
+
"product_name": "Windows Server 2012 R2 Standard",
|
118
|
+
"system32": "C:\\Windows\\system32"
|
119
|
+
}
|
120
|
+
},
|
121
|
+
"package_provider": "windows",
|
122
|
+
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\facter\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\hiera\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\mcollective\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\sys\\ruby\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\sys\\tools\\bin;PATH;C:\\Program Files (x86)\\Puppet Labs\\Puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\Program Files (x86)\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files (x86)\\Puppet Labs\\Puppet\\sys\\ruby\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\sys\\ruby\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Puppet Labs\\Puppet\\bin",
|
123
|
+
"processors": {
|
124
|
+
"count": 2,
|
125
|
+
"isa": "x64",
|
126
|
+
"models": [
|
127
|
+
"Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz"
|
128
|
+
],
|
129
|
+
"physicalcount": 1
|
130
|
+
},
|
131
|
+
"puppet_environmentpath": "C:/ProgramData/PuppetLabs/code/environments",
|
132
|
+
"puppet_server": "puppet",
|
133
|
+
"puppet_settings": {
|
134
|
+
"main": {
|
135
|
+
"confdir": "C:/ProgramData/PuppetLabs/puppet/etc",
|
136
|
+
"codedir": "C:/ProgramData/PuppetLabs/code",
|
137
|
+
"vardir": "C:/ProgramData/PuppetLabs/puppet/cache",
|
138
|
+
"name": "#<Puppet::Util::WindowsRunMode:0x0000000004370538>",
|
139
|
+
"logdir": "C:/ProgramData/PuppetLabs/puppet/var/log",
|
140
|
+
"log_level": "notice",
|
141
|
+
"disable_warnings": "[]",
|
142
|
+
"strict": "warning",
|
143
|
+
"disable_i18n": "false",
|
144
|
+
"priority": "",
|
145
|
+
"trace": "false",
|
146
|
+
"profile": "false",
|
147
|
+
"future_features": "false",
|
148
|
+
"static_catalogs": "true",
|
149
|
+
"strict_environment_mode": "false",
|
150
|
+
"autoflush": "true",
|
151
|
+
"syslogfacility": "daemon",
|
152
|
+
"statedir": "C:/ProgramData/PuppetLabs/puppet/cache/state",
|
153
|
+
"rundir": "C:/ProgramData/PuppetLabs/puppet/var/run",
|
154
|
+
"genconfig": "false",
|
155
|
+
"genmanifest": "false",
|
156
|
+
"color": "ansi",
|
157
|
+
"mkusers": "false",
|
158
|
+
"manage_internal_file_permissions": "false",
|
159
|
+
"onetime": "false",
|
160
|
+
"path": "none",
|
161
|
+
"libdir": "C:/ProgramData/PuppetLabs/puppet/cache/lib",
|
162
|
+
"environment": "production",
|
163
|
+
"environmentpath": "C:/ProgramData/PuppetLabs/code/environments",
|
164
|
+
"always_retry_plugins": "true",
|
165
|
+
"diff_args": "-u",
|
166
|
+
"diff": "",
|
167
|
+
"show_diff": "false",
|
168
|
+
"daemonize": "false",
|
169
|
+
"maximum_uid": "4294967290",
|
170
|
+
"route_file": "C:/ProgramData/PuppetLabs/puppet/etc/routes.yaml",
|
171
|
+
"node_terminus": "plain",
|
172
|
+
"node_cache_terminus": "",
|
173
|
+
"data_binding_terminus": "hiera",
|
174
|
+
"hiera_config": "C:/ProgramData/PuppetLabs/puppet/etc/hiera.yaml",
|
175
|
+
"binder_config": "",
|
176
|
+
"catalog_terminus": "compiler",
|
177
|
+
"catalog_cache_terminus": "",
|
178
|
+
"facts_terminus": "facter",
|
179
|
+
"default_file_terminus": "rest",
|
180
|
+
"http_proxy_host": "none",
|
181
|
+
"http_proxy_port": "3128",
|
182
|
+
"http_proxy_user": "none",
|
183
|
+
"http_proxy_password": "none",
|
184
|
+
"http_keepalive_timeout": "4",
|
185
|
+
"http_debug": "false",
|
186
|
+
"http_connect_timeout": "120",
|
187
|
+
"http_read_timeout": "",
|
188
|
+
"http_user_agent": "Puppet/5.5.16 Ruby/2.4.5-p335 (x64-mingw32)",
|
189
|
+
"filetimeout": "15",
|
190
|
+
"environment_timeout": "0",
|
191
|
+
"environment_data_provider": "",
|
192
|
+
"prerun_command": "",
|
193
|
+
"postrun_command": "",
|
194
|
+
"freeze_main": "false",
|
195
|
+
"preview_outputdir": "C:/ProgramData/PuppetLabs/puppet/cache/preview",
|
196
|
+
"certname": "foo.example.com",
|
197
|
+
"dns_alt_names": "",
|
198
|
+
"csr_attributes": "C:/ProgramData/PuppetLabs/puppet/etc/csr_attributes.yaml",
|
199
|
+
"certdir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs",
|
200
|
+
"ssldir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl",
|
201
|
+
"publickeydir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys",
|
202
|
+
"requestdir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests",
|
203
|
+
"privatekeydir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys",
|
204
|
+
"privatedir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/private",
|
205
|
+
"passfile": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/private/password",
|
206
|
+
"hostcsr": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/csr_foo.example.com.pem",
|
207
|
+
"hostcert": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/foo.example.com.pem",
|
208
|
+
"hostprivkey": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/foo.example.com.pem",
|
209
|
+
"hostpubkey": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/foo.example.com.pem",
|
210
|
+
"localcacert": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem",
|
211
|
+
"ssl_client_ca_auth": "",
|
212
|
+
"ssl_server_ca_auth": "",
|
213
|
+
"hostcrl": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem",
|
214
|
+
"certificate_revocation": "chain",
|
215
|
+
"digest_algorithm": "md5",
|
216
|
+
"supported_checksum_types": "[\"md5\", \"sha256\", \"sha384\", \"sha512\", \"sha224\"]",
|
217
|
+
"logdest": "",
|
218
|
+
"plugindest": "C:/ProgramData/PuppetLabs/puppet/cache/lib",
|
219
|
+
"pluginsource": "puppet:///plugins",
|
220
|
+
"pluginfactdest": "C:/ProgramData/PuppetLabs/puppet/cache/facts.d",
|
221
|
+
"pluginfactsource": "puppet:///pluginfacts",
|
222
|
+
"localedest": "C:/ProgramData/PuppetLabs/puppet/cache/locales",
|
223
|
+
"localesource": "puppet:///locales",
|
224
|
+
"pluginsync": "true",
|
225
|
+
"pluginsignore": ".svn CVS .git .hg",
|
226
|
+
"factpath": "C:/ProgramData/PuppetLabs/puppet/cache/lib/facter;C:/ProgramData/PuppetLabs/puppet/cache/facts",
|
227
|
+
"external_nodes": "none",
|
228
|
+
"rich_data": "false"
|
229
|
+
},
|
230
|
+
"module_tool": {
|
231
|
+
"module_repository": "https://forgeapi.puppet.com",
|
232
|
+
"module_working_dir": "C:/Users/vagrant/AppData/Local/Temp",
|
233
|
+
"module_skeleton_dir": "C:/Users/vagrant/AppData/Local/Temp/skeleton",
|
234
|
+
"forge_authorization": "",
|
235
|
+
"module_groups": ""
|
236
|
+
},
|
237
|
+
"ca": {
|
238
|
+
"ca_name": "Puppet CA: foo.example.com",
|
239
|
+
"cadir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca",
|
240
|
+
"cacert": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/ca_crt.pem",
|
241
|
+
"cakey": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/ca_key.pem",
|
242
|
+
"capub": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/ca_pub.pem",
|
243
|
+
"cacrl": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/ca_crl.pem",
|
244
|
+
"caprivatedir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/private",
|
245
|
+
"csrdir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/requests",
|
246
|
+
"signeddir": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/signed",
|
247
|
+
"capass": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/private/ca.pass",
|
248
|
+
"serial": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/serial",
|
249
|
+
"autosign": "C:/ProgramData/PuppetLabs/puppet/etc/autosign.conf",
|
250
|
+
"allow_duplicate_certs": "false",
|
251
|
+
"ca_ttl": "157680000",
|
252
|
+
"keylength": "4096",
|
253
|
+
"cert_inventory": "C:/ProgramData/PuppetLabs/puppet/etc/ssl/ca/inventory.txt"
|
254
|
+
},
|
255
|
+
"application": {
|
256
|
+
"config_file_name": "puppet.conf",
|
257
|
+
"config": "C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf",
|
258
|
+
"pidfile": "C:/ProgramData/PuppetLabs/puppet/var/run/application.pid",
|
259
|
+
"sourceaddress": ""
|
260
|
+
},
|
261
|
+
"environment": {
|
262
|
+
"manifest": "C:/ProgramData/PuppetLabs/code/environments/production/manifests",
|
263
|
+
"modulepath": "C:/ProgramData/PuppetLabs/code/environments/production/modules;C:/ProgramData/PuppetLabs/code/modules",
|
264
|
+
"config_version": ""
|
265
|
+
},
|
266
|
+
"master": {
|
267
|
+
"user": "puppet",
|
268
|
+
"group": "puppet",
|
269
|
+
"default_manifest": "./manifests",
|
270
|
+
"disable_per_environment_manifest": "false",
|
271
|
+
"code": "",
|
272
|
+
"masterport": "8140",
|
273
|
+
"node_name": "cert",
|
274
|
+
"bucketdir": "C:/ProgramData/PuppetLabs/puppet/cache/bucket",
|
275
|
+
"ca": "true",
|
276
|
+
"trusted_oid_mapping_file": "C:/ProgramData/PuppetLabs/puppet/etc/custom_trusted_oid_mapping.yaml",
|
277
|
+
"basemodulepath": "C:/ProgramData/PuppetLabs/code/modules",
|
278
|
+
"ssl_client_header": "HTTP_X_CLIENT_DN",
|
279
|
+
"ssl_client_verify_header": "HTTP_X_CLIENT_VERIFY",
|
280
|
+
"yamldir": "C:/ProgramData/PuppetLabs/puppet/cache/yaml",
|
281
|
+
"server_datadir": "C:/ProgramData/PuppetLabs/puppet/cache/server_data",
|
282
|
+
"reports": "store",
|
283
|
+
"reportdir": "C:/ProgramData/PuppetLabs/puppet/cache/reports",
|
284
|
+
"reporturl": "http://localhost:3000/reports/upload",
|
285
|
+
"fileserverconfig": "C:/ProgramData/PuppetLabs/puppet/etc/fileserver.conf",
|
286
|
+
"strict_hostname_checking": "false",
|
287
|
+
"storeconfigs": "false",
|
288
|
+
"storeconfigs_backend": "puppetdb"
|
289
|
+
},
|
290
|
+
"device": {
|
291
|
+
"devicedir": "C:/ProgramData/PuppetLabs/puppet/cache/devices",
|
292
|
+
"deviceconfig": "C:/ProgramData/PuppetLabs/puppet/etc/device.conf"
|
293
|
+
},
|
294
|
+
"agent": {
|
295
|
+
"node_name_value": "foo.example.com",
|
296
|
+
"node_name_fact": "",
|
297
|
+
"statefile": "C:/ProgramData/PuppetLabs/puppet/cache/state/state.yaml",
|
298
|
+
"statettl": "2764800",
|
299
|
+
"transactionstorefile": "C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml",
|
300
|
+
"clientyamldir": "C:/ProgramData/PuppetLabs/puppet/cache/client_yaml",
|
301
|
+
"client_datadir": "C:/ProgramData/PuppetLabs/puppet/cache/client_data",
|
302
|
+
"classfile": "C:/ProgramData/PuppetLabs/puppet/cache/state/classes.txt",
|
303
|
+
"resourcefile": "C:/ProgramData/PuppetLabs/puppet/cache/state/resources.txt",
|
304
|
+
"puppetdlog": "C:/ProgramData/PuppetLabs/puppet/var/log/puppetd.log",
|
305
|
+
"server": "puppet",
|
306
|
+
"server_list": "[]",
|
307
|
+
"use_srv_records": "false",
|
308
|
+
"srv_domain": "example.com",
|
309
|
+
"ignoreschedules": "false",
|
310
|
+
"default_schedules": "true",
|
311
|
+
"noop": "false",
|
312
|
+
"runinterval": "1800",
|
313
|
+
"runtimeout": "0",
|
314
|
+
"ca_server": "puppet",
|
315
|
+
"ca_port": "8140",
|
316
|
+
"preferred_serialization_format": "json",
|
317
|
+
"agent_catalog_run_lockfile": "C:/ProgramData/PuppetLabs/puppet/cache/state/agent_catalog_run.lock",
|
318
|
+
"agent_disabled_lockfile": "C:/ProgramData/PuppetLabs/puppet/cache/state/agent_disabled.lock",
|
319
|
+
"usecacheonfailure": "true",
|
320
|
+
"use_cached_catalog": "false",
|
321
|
+
"ignoremissingtypes": "false",
|
322
|
+
"splaylimit": "1800",
|
323
|
+
"splay": "false",
|
324
|
+
"clientbucketdir": "C:/ProgramData/PuppetLabs/puppet/cache/clientbucket",
|
325
|
+
"report_server": "puppet",
|
326
|
+
"report_port": "8140",
|
327
|
+
"report": "true",
|
328
|
+
"lastrunfile": "C:/ProgramData/PuppetLabs/puppet/cache/state/last_run_summary.yaml",
|
329
|
+
"lastrunreport": "C:/ProgramData/PuppetLabs/puppet/cache/state/last_run_report.yaml",
|
330
|
+
"graph": "false",
|
331
|
+
"graphdir": "C:/ProgramData/PuppetLabs/puppet/cache/state/graphs",
|
332
|
+
"waitforcert": "120",
|
333
|
+
"ordering": "manifest"
|
334
|
+
},
|
335
|
+
"transaction": {
|
336
|
+
"tags": "",
|
337
|
+
"skip_tags": "",
|
338
|
+
"evaltrace": "false",
|
339
|
+
"summarize": "false"
|
340
|
+
},
|
341
|
+
"ldap": {
|
342
|
+
"ldapssl": "false",
|
343
|
+
"ldaptls": "false",
|
344
|
+
"ldapserver": "ldap",
|
345
|
+
"ldapport": "389",
|
346
|
+
"ldapstring": "(&(objectclass=puppetClient)(cn=%s))",
|
347
|
+
"ldapclassattrs": "puppetclass",
|
348
|
+
"ldapstackedattrs": "puppetvar",
|
349
|
+
"ldapattrs": "all",
|
350
|
+
"ldapparentattr": "parentnode",
|
351
|
+
"ldapuser": "",
|
352
|
+
"ldappassword": "",
|
353
|
+
"ldapbase": ""
|
354
|
+
},
|
355
|
+
"parser": {
|
356
|
+
"max_errors": "10",
|
357
|
+
"max_warnings": "10",
|
358
|
+
"max_deprecations": "10",
|
359
|
+
"strict_variables": "false",
|
360
|
+
"tasks": "false"
|
361
|
+
},
|
362
|
+
"puppetdoc": {
|
363
|
+
"document_all": "false"
|
364
|
+
}
|
365
|
+
},
|
366
|
+
"puppet_vardir": "C:/ProgramData/PuppetLabs/puppet/cache",
|
367
|
+
"puppetversion": "5.5.16",
|
368
|
+
"reboot_required": false,
|
369
|
+
"ruby": {
|
370
|
+
"platform": "x64-mingw32",
|
371
|
+
"sitedir": "C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/2.4.0",
|
372
|
+
"version": "2.4.5"
|
373
|
+
},
|
374
|
+
"service_provider": "windows",
|
375
|
+
"system_uptime": {
|
376
|
+
"days": 0,
|
377
|
+
"hours": 0,
|
378
|
+
"seconds": 93,
|
379
|
+
"uptime": "0:01 hours"
|
380
|
+
},
|
381
|
+
"timezone": "Pacific Daylight Time",
|
382
|
+
"virtual": "virtualbox"
|
383
|
+
}
|
@@ -14,7 +14,7 @@ module Simp::RspecPuppetFacts
|
|
14
14
|
supported_os.each do |os|
|
15
15
|
os['operatingsystemrelease'].each do |rel|
|
16
16
|
hardwaremodels.each do |hw|
|
17
|
-
os_strings << [os['operatingsystem'],rel,hw].map{|x| x.downcase }.join('-')
|
17
|
+
os_strings << [os['operatingsystem'],rel,hw].map{|x| x.downcase.gsub(/\s/,'_') }.join('-')
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -30,7 +30,7 @@ module Simp::RspecPuppetFacts
|
|
30
30
|
_name = os['operatingsystem']
|
31
31
|
_rels = os['operatingsystemrelease'].send(filter_type) do |rel|
|
32
32
|
_hw = rfh_hw.send(filter_type) do |hw|
|
33
|
-
simp_h.key? [_name,rel,hw].map{|x| x.downcase }.join('-')
|
33
|
+
simp_h.key? [_name,rel,hw].map{|x| x.downcase.gsub(/\s/,'_') }.join('-')
|
34
34
|
end
|
35
35
|
!_hw.empty?
|
36
36
|
end
|
@@ -53,6 +53,7 @@ module Simp::RspecPuppetFacts
|
|
53
53
|
rfh_h = Simp::RspecPuppetFacts::Shim.on_supported_os(masked_opts)
|
54
54
|
|
55
55
|
h = rfh_h.merge(simp_h).select{|k,v| supported_os_strings(opts).include? k}
|
56
|
+
|
56
57
|
h.each do | os, facts |
|
57
58
|
facter_ver=Facter.version[0..2]
|
58
59
|
facts_file = File.expand_path("../../facts/#{facter_ver}/#{os}.facts",
|
@@ -87,6 +88,8 @@ module Simp::RspecPuppetFacts
|
|
87
88
|
|
88
89
|
|
89
90
|
def lsb_facts( facts )
|
91
|
+
return facts if facts[:kernel].casecmp('windows')
|
92
|
+
|
90
93
|
lsb_facts = {}
|
91
94
|
# attempt to massage a major release version if missing (for facter 1.6)
|
92
95
|
unless ENV['SIMP_FACTS_lsb'] == 'no'
|
data/lib/simp/version.rb
CHANGED
@@ -0,0 +1,87 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
el7:
|
10
|
+
roles:
|
11
|
+
- linux
|
12
|
+
platform: el-7-x86_64
|
13
|
+
box: centos/7
|
14
|
+
hypervisor: <%= hypervisor %>
|
15
|
+
yum_repos:
|
16
|
+
updates:
|
17
|
+
baseurl: 'http://mirror.centos.org/centos/$releasever/os/$basearch/'
|
18
|
+
gpgkeys:
|
19
|
+
- https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7
|
20
|
+
epel:
|
21
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
|
22
|
+
gpgkeys:
|
23
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
24
|
+
simp:
|
25
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
26
|
+
gpgkeys:
|
27
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
28
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
29
|
+
simp_dependencies:
|
30
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
31
|
+
gpgkeys:
|
32
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
33
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
34
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
35
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
36
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
37
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
38
|
+
|
39
|
+
el6:
|
40
|
+
roles:
|
41
|
+
- linux
|
42
|
+
platform: el-6-x86_64
|
43
|
+
box: centos/6
|
44
|
+
hypervisor: <%= hypervisor %>
|
45
|
+
yum_repos:
|
46
|
+
updates:
|
47
|
+
baseurl: 'http://mirror.centos.org/centos/$releasever/os/$basearch/'
|
48
|
+
gpgkeys:
|
49
|
+
- https://www.centos.org/keys/RPM-GPG-KEY-CentOS-6
|
50
|
+
epel:
|
51
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch'
|
52
|
+
gpgkeys:
|
53
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
|
54
|
+
simp:
|
55
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
56
|
+
gpgkeys:
|
57
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
58
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
59
|
+
simp_dependencies:
|
60
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
61
|
+
gpgkeys:
|
62
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
63
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
64
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
65
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
66
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
67
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
|
68
|
+
|
69
|
+
win2012r2:
|
70
|
+
roles:
|
71
|
+
- windows
|
72
|
+
platform: windows-server-amd64
|
73
|
+
#box: gusztavvargadr/windows-server
|
74
|
+
box: opentable/win-2012r2-standard-amd64-nocm
|
75
|
+
hypervisor: <%= hypervisor %>
|
76
|
+
vagrant_memsize: 2048
|
77
|
+
vagrant_cpus: 2
|
78
|
+
user: vagrant
|
79
|
+
communicator: winrm
|
80
|
+
is_cygwin: false
|
81
|
+
|
82
|
+
CONFIG:
|
83
|
+
log_level: verbose
|
84
|
+
type: aio
|
85
|
+
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
|
86
|
+
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
|
87
|
+
<% end -%>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
server-oel7:
|
10
|
+
roles:
|
11
|
+
- server
|
12
|
+
- default
|
13
|
+
- master
|
14
|
+
- simp_server
|
15
|
+
- el7
|
16
|
+
platform: el-7-x86_64
|
17
|
+
box: onyxpoint/oel-7-x86_64
|
18
|
+
hypervisor: <%= hypervisor %>
|
19
|
+
yum_repos:
|
20
|
+
updates:
|
21
|
+
baseurl: 'https://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch'
|
22
|
+
gpgkeys:
|
23
|
+
- http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7
|
24
|
+
epel:
|
25
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
|
26
|
+
gpgkeys:
|
27
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
28
|
+
simp:
|
29
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
30
|
+
gpgkeys:
|
31
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
32
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
33
|
+
simp_dependencies:
|
34
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
35
|
+
gpgkeys:
|
36
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
37
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
38
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
39
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
40
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
41
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
42
|
+
|
43
|
+
server-oel6:
|
44
|
+
roles:
|
45
|
+
- simp_server
|
46
|
+
- el6
|
47
|
+
platform: el-6-x86_64
|
48
|
+
box: onyxpoint/oel-6-x86_64
|
49
|
+
hypervisor: <%= hypervisor %>
|
50
|
+
yum_repos:
|
51
|
+
updates:
|
52
|
+
baseurl: 'https://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch'
|
53
|
+
gpgkeys:
|
54
|
+
- http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
55
|
+
epel:
|
56
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch'
|
57
|
+
gpgkeys:
|
58
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
|
59
|
+
simp:
|
60
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
61
|
+
gpgkeys:
|
62
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
63
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
64
|
+
simp_dependencies:
|
65
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
66
|
+
gpgkeys:
|
67
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
68
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
69
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
70
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
71
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
72
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
|
73
|
+
CONFIG:
|
74
|
+
log_level: verbose
|
75
|
+
type: aio
|
76
|
+
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
|
77
|
+
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
|
78
|
+
<% end -%>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
rhel7:
|
10
|
+
roles:
|
11
|
+
- linux
|
12
|
+
platform: el-7-x86_64
|
13
|
+
box: generic/rhel7
|
14
|
+
hypervisor: <%= hypervisor %>
|
15
|
+
yum_repos:
|
16
|
+
epel:
|
17
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
|
18
|
+
gpgkeys:
|
19
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
20
|
+
simp:
|
21
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
22
|
+
gpgkeys:
|
23
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
24
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
25
|
+
simp_dependencies:
|
26
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
27
|
+
gpgkeys:
|
28
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
29
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
30
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
31
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
32
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
33
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
34
|
+
|
35
|
+
CONFIG:
|
36
|
+
validate: false
|
37
|
+
log_level: verbose
|
38
|
+
type: aio
|
39
|
+
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
|
40
|
+
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
|
41
|
+
<% end -%>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
rhel8:
|
10
|
+
roles:
|
11
|
+
- linux
|
12
|
+
platform: el-8-x86_64
|
13
|
+
box: generic/rhel8
|
14
|
+
hypervisor: <%= hypervisor %>
|
15
|
+
yum_repos:
|
16
|
+
epel:
|
17
|
+
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
|
18
|
+
gpgkeys:
|
19
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
20
|
+
simp:
|
21
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch'
|
22
|
+
gpgkeys:
|
23
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
24
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
25
|
+
simp_dependencies:
|
26
|
+
baseurl: 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch'
|
27
|
+
gpgkeys:
|
28
|
+
- https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP
|
29
|
+
- https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6
|
30
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
|
31
|
+
- https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
|
32
|
+
- https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-94
|
33
|
+
- https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
34
|
+
|
35
|
+
CONFIG:
|
36
|
+
log_level: verbose
|
37
|
+
type: aio
|
38
|
+
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
|
39
|
+
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
|
40
|
+
<% end -%>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'spec_helper_acceptance'
|
2
|
+
|
3
|
+
test_name 'we just want the facts'
|
4
|
+
|
5
|
+
describe 'look out muppets' do
|
6
|
+
hosts.each do |host|
|
7
|
+
let(:host_fqdn) { fact_on(host, 'fqdn') }
|
8
|
+
let(:collection_dir) { 'collected_facts' }
|
9
|
+
let(:os_info) { fact_on(host, 'os') }
|
10
|
+
let(:os_arch) { fact_on(host, 'architecture') }
|
11
|
+
|
12
|
+
let(:fact_collection) { File.join(collection_dir, [os_info['name'], os_info['release']['full'].gsub(/\s/,'_'), os_arch].join('-').downcase + '.facts') }
|
13
|
+
|
14
|
+
let(:host_data) { JSON.load(File.read(fact_collection)) }
|
15
|
+
|
16
|
+
context "on #{host}" do
|
17
|
+
before(:all) do
|
18
|
+
@output = []
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should collect valid fact data' do
|
22
|
+
# Stupid RSpec tricks
|
23
|
+
output = on(host, 'facter -p --json').stdout
|
24
|
+
|
25
|
+
expect{@output << JSON.parse(output)}.to_not raise_error
|
26
|
+
end
|
27
|
+
|
28
|
+
# This should work regardless of OS
|
29
|
+
it 'should have the "puppet_settings" fact' do
|
30
|
+
expect(@output.first['puppet_settings']).to be_a(Hash)
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should clean up the data' do
|
34
|
+
str_data = JSON.generate(@output.first)
|
35
|
+
|
36
|
+
str_data = str_data.gsub(fact_on(host, 'fqdn'), 'foo.example.com').
|
37
|
+
gsub(fact_on(host, 'domain'), 'example.com').
|
38
|
+
gsub(%(:"#{fact_on(host, 'hostname')}"), ':"foo"').
|
39
|
+
gsub(%(:"#{fact_on(host, 'networking')['ip']}"), ':"10.0.2.15"').
|
40
|
+
gsub(%(:"#{fact_on(host, 'networking')['netmask']}"), ':"255.255.0.0"').
|
41
|
+
gsub(%(:"#{fact_on(host, 'networking')['network']}"), ':"10.0.2.0"').
|
42
|
+
gsub(%r("dhcp":"(.+?)"), '"dhcp":"10.0.2.2"')
|
43
|
+
|
44
|
+
expect{JSON.parse(str_data)}.to_not raise_error
|
45
|
+
|
46
|
+
FileUtils.mkdir_p(collection_dir) unless File.directory?(collection_dir)
|
47
|
+
File.open(fact_collection, 'w'){ |fh| fh.puts(JSON.pretty_generate(JSON.parse(str_data))) }
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
win:
|
10
|
+
roles:
|
11
|
+
- windows
|
12
|
+
platform: windows-server-amd64
|
13
|
+
#box: gusztavvargadr/windows-server
|
14
|
+
box: opentable/win-2012r2-standard-amd64-nocm
|
15
|
+
hypervisor: <%= hypervisor %>
|
16
|
+
vagrant_memsize: 2048
|
17
|
+
vagrant_cpus: 2
|
18
|
+
user: vagrant
|
19
|
+
communicator: winrm
|
20
|
+
is_cygwin: false
|
21
|
+
|
22
|
+
CONFIG:
|
23
|
+
log_level: verbose
|
24
|
+
type: aio
|
25
|
+
vagrant_memsize: 256
|
26
|
+
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
|
27
|
+
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
|
28
|
+
<% end -%>
|
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'beaker-rspec'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'yaml'
|
4
|
+
require 'simp/beaker_helpers'
|
5
|
+
|
6
|
+
include Simp::BeakerHelpers
|
7
|
+
|
8
|
+
require 'beaker/puppet_install_helper'
|
9
|
+
require 'beaker-windows'
|
10
|
+
include BeakerWindows::Path
|
11
|
+
include BeakerWindows::Powershell
|
12
|
+
include BeakerWindows::Registry
|
13
|
+
include BeakerWindows::WindowsFeature
|
14
|
+
|
15
|
+
unless ENV['BEAKER_provision'] == 'no'
|
16
|
+
hosts.each do |host|
|
17
|
+
# Install Puppet
|
18
|
+
if host.is_pe?
|
19
|
+
install_pe
|
20
|
+
else
|
21
|
+
install_puppet
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
hosts.each do |host|
|
27
|
+
# https://petersouter.co.uk/testing-windows-puppet-with-beaker/
|
28
|
+
case host['platform']
|
29
|
+
when /windows/
|
30
|
+
GEOTRUST_GLOBAL_CA = <<-EOM.freeze
|
31
|
+
-----BEGIN CERTIFICATE-----
|
32
|
+
MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT
|
33
|
+
MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i
|
34
|
+
YWwgQ0EwHhcNMDIwNTIxMDQwMDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQG
|
35
|
+
EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMSR2VvVHJ1c3Qg
|
36
|
+
R2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2swYYzD9
|
37
|
+
9BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjoBbdq
|
38
|
+
fnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDv
|
39
|
+
iS2Aelet8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU
|
40
|
+
1XupGc1V3sjs0l44U+VcT4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+
|
41
|
+
bw8HHa8sHo9gOeL6NlMTOdReJivbPagUvTLrGAMoUgRx5aszPeE4uwc2hGKceeoW
|
42
|
+
MPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTA
|
43
|
+
ephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVkDBF9qn1l
|
44
|
+
uMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKIn
|
45
|
+
Z57QzxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfS
|
46
|
+
tQWVYrmm3ok9Nns4d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcF
|
47
|
+
PseKUgzbFbS9bZvlxrFUaKnjaZC2mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Un
|
48
|
+
hw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6pXE0zX5IJL4hmXXeXxx12E6nV
|
49
|
+
5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvmMw==
|
50
|
+
-----END CERTIFICATE-----
|
51
|
+
EOM
|
52
|
+
install_cert_on_windows(host, 'geotrustglobal', GEOTRUST_GLOBAL_CA)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
RSpec.configure do |c|
|
58
|
+
# ensure that environment OS is ready on each host
|
59
|
+
fix_errata_on(hosts)
|
60
|
+
|
61
|
+
# Readable test descriptions
|
62
|
+
c.formatter = :documentation
|
63
|
+
|
64
|
+
# Configure all nodes in nodeset
|
65
|
+
c.before :suite do
|
66
|
+
begin
|
67
|
+
# Install modules and dependencies from spec/fixtures/modules
|
68
|
+
copy_fixture_modules_to( hosts )
|
69
|
+
|
70
|
+
nonwin = hosts.dup
|
71
|
+
nonwin.delete_if {|h| h[:platform] =~ /windows/ }
|
72
|
+
|
73
|
+
unless nonwin.empty?
|
74
|
+
begin
|
75
|
+
server = only_host_with_role(nonwin, 'server')
|
76
|
+
rescue ArgumentError => e
|
77
|
+
server = hosts_with_role(nonwin, 'default').first
|
78
|
+
end
|
79
|
+
# Generate and install PKI certificates on each SUT
|
80
|
+
Dir.mktmpdir do |cert_dir|
|
81
|
+
run_fake_pki_ca_on(server, nonwin, cert_dir )
|
82
|
+
nonwin.each{ |sut| copy_pki_to( sut, cert_dir, '/etc/pki/simp-testing' )}
|
83
|
+
end
|
84
|
+
|
85
|
+
# add PKI keys
|
86
|
+
copy_keydist_to(server)
|
87
|
+
end
|
88
|
+
rescue StandardError, ScriptError => e
|
89
|
+
if ENV['PRY']
|
90
|
+
require 'pry'; binding.pry
|
91
|
+
else
|
92
|
+
raise e
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-puppet-facts
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- facts/2.5/oraclelinux-7-x86_64.facts
|
181
181
|
- facts/2.5/redhat-6-x86_64.facts
|
182
182
|
- facts/2.5/redhat-7-x86_64.facts
|
183
|
+
- facts/2.5/windows-server_2012_r2-x86_64.facts
|
183
184
|
- facts/3.0/centos-6-x86_64.facts
|
184
185
|
- facts/3.0/centos-7-x86_64.facts
|
185
186
|
- facts/3.0/oraclelinux-6-x86_64.facts
|
@@ -231,11 +232,18 @@ files:
|
|
231
232
|
- lib/simp-rspec-puppet-facts.rb
|
232
233
|
- lib/simp/rspec-puppet-facts.rb
|
233
234
|
- lib/simp/version.rb
|
235
|
+
- spec/acceptance/nodesets/default.yml
|
236
|
+
- spec/acceptance/nodesets/oel.yml
|
237
|
+
- spec/acceptance/nodesets/rhel7.yml
|
238
|
+
- spec/acceptance/nodesets/rhel8.yml
|
239
|
+
- spec/acceptance/suites/default/00_default_spec.rb
|
240
|
+
- spec/acceptance/suites/default/nodesets/default.yml
|
234
241
|
- spec/data_normalization_spec.rb
|
235
242
|
- spec/fixtures/metadata.json
|
236
243
|
- spec/fixtures/metadata.json_with_missing_operatingsystem_support
|
237
244
|
- spec/simp_rspec_puppet_facts_spec.rb
|
238
245
|
- spec/spec_helper.rb
|
246
|
+
- spec/spec_helper_acceptance.rb
|
239
247
|
homepage: https://github.com/simp/rubygem-simp-rspec-puppet-facts
|
240
248
|
licenses:
|
241
249
|
- Apache-2.0
|
@@ -256,104 +264,113 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
264
|
version: '0'
|
257
265
|
requirements:
|
258
266
|
- rspec-puppet-facts
|
259
|
-
|
267
|
+
rubyforge_project:
|
268
|
+
rubygems_version: 2.7.7
|
260
269
|
signing_key:
|
261
270
|
specification_version: 4
|
262
271
|
summary: standard SIMP facts fixtures for Puppet
|
263
272
|
test_files:
|
264
273
|
- Rakefile
|
265
|
-
- spec/fixtures/metadata.json
|
266
274
|
- spec/fixtures/metadata.json_with_missing_operatingsystem_support
|
267
|
-
- spec/
|
268
|
-
- spec/spec_helper.rb
|
275
|
+
- spec/fixtures/metadata.json
|
269
276
|
- spec/data_normalization_spec.rb
|
270
|
-
-
|
271
|
-
-
|
277
|
+
- spec/spec_helper.rb
|
278
|
+
- spec/spec_helper_acceptance.rb
|
279
|
+
- spec/acceptance/suites/default/nodesets/default.yml
|
280
|
+
- spec/acceptance/suites/default/00_default_spec.rb
|
281
|
+
- spec/acceptance/nodesets/default.yml
|
282
|
+
- spec/acceptance/nodesets/oel.yml
|
283
|
+
- spec/acceptance/nodesets/rhel8.yml
|
284
|
+
- spec/acceptance/nodesets/rhel7.yml
|
285
|
+
- spec/simp_rspec_puppet_facts_spec.rb
|
272
286
|
- facts/1.7/oraclelinux-7-x86_64.facts
|
287
|
+
- facts/1.7/centos-7-x86_64.facts
|
288
|
+
- facts/1.7/redhat-7-x86_64.facts
|
273
289
|
- facts/1.7/redhat-6-x86_64.facts
|
290
|
+
- facts/1.7/centos-6-x86_64.facts
|
274
291
|
- facts/1.7/oraclelinux-6-x86_64.facts
|
275
|
-
- facts/
|
276
|
-
- facts/
|
277
|
-
- facts/
|
292
|
+
- facts/3.7/oraclelinux-7-x86_64.facts
|
293
|
+
- facts/3.7/centos-7-x86_64.facts
|
294
|
+
- facts/3.7/redhat-7-x86_64.facts
|
295
|
+
- facts/3.7/redhat-6-x86_64.facts
|
296
|
+
- facts/3.7/centos-6-x86_64.facts
|
297
|
+
- facts/3.7/oraclelinux-6-x86_64.facts
|
298
|
+
- facts/2.2/oraclelinux-7-x86_64.facts
|
299
|
+
- facts/2.2/centos-7-x86_64.facts
|
300
|
+
- facts/2.2/redhat-7-x86_64.facts
|
301
|
+
- facts/2.2/redhat-6-x86_64.facts
|
302
|
+
- facts/2.2/centos-6-x86_64.facts
|
303
|
+
- facts/2.2/oraclelinux-6-x86_64.facts
|
304
|
+
- facts/Gemfile
|
305
|
+
- facts/3.4/oraclelinux-7-x86_64.facts
|
306
|
+
- facts/3.4/centos-7-x86_64.facts
|
307
|
+
- facts/3.4/redhat-7-x86_64.facts
|
308
|
+
- facts/3.4/redhat-6-x86_64.facts
|
309
|
+
- facts/3.4/centos-6-x86_64.facts
|
310
|
+
- facts/3.4/oraclelinux-6-x86_64.facts
|
311
|
+
- facts/2.0/oraclelinux-7-x86_64.facts
|
312
|
+
- facts/2.0/centos-7-x86_64.facts
|
313
|
+
- facts/2.0/redhat-7-x86_64.facts
|
314
|
+
- facts/2.0/redhat-6-x86_64.facts
|
315
|
+
- facts/2.0/centos-6-x86_64.facts
|
316
|
+
- facts/2.0/oraclelinux-6-x86_64.facts
|
278
317
|
- facts/2.3/oraclelinux-7-x86_64.facts
|
318
|
+
- facts/2.3/centos-7-x86_64.facts
|
319
|
+
- facts/2.3/redhat-7-x86_64.facts
|
279
320
|
- facts/2.3/redhat-6-x86_64.facts
|
321
|
+
- facts/2.3/centos-6-x86_64.facts
|
280
322
|
- facts/2.3/oraclelinux-6-x86_64.facts
|
281
|
-
- facts/2.
|
282
|
-
- facts/
|
283
|
-
- facts/
|
284
|
-
- facts/
|
285
|
-
- facts/
|
286
|
-
- facts/
|
287
|
-
- facts/3.0/oraclelinux-6-x86_64.facts
|
288
|
-
- facts/3.0/redhat-7-x86_64.facts
|
289
|
-
- facts/2.1/centos-7-x86_64.facts
|
290
|
-
- facts/2.1/centos-6-x86_64.facts
|
291
|
-
- facts/2.1/oraclelinux-7-x86_64.facts
|
292
|
-
- facts/2.1/redhat-6-x86_64.facts
|
293
|
-
- facts/2.1/oraclelinux-6-x86_64.facts
|
294
|
-
- facts/2.1/redhat-7-x86_64.facts
|
295
|
-
- facts/3.6/centos-7-x86_64.facts
|
296
|
-
- facts/3.6/centos-6-x86_64.facts
|
323
|
+
- facts/2.4/oraclelinux-7-x86_64.facts
|
324
|
+
- facts/2.4/centos-7-x86_64.facts
|
325
|
+
- facts/2.4/redhat-7-x86_64.facts
|
326
|
+
- facts/2.4/redhat-6-x86_64.facts
|
327
|
+
- facts/2.4/centos-6-x86_64.facts
|
328
|
+
- facts/2.4/oraclelinux-6-x86_64.facts
|
297
329
|
- facts/3.6/oraclelinux-7-x86_64.facts
|
330
|
+
- facts/3.6/centos-7-x86_64.facts
|
331
|
+
- facts/3.6/redhat-7-x86_64.facts
|
298
332
|
- facts/3.6/redhat-6-x86_64.facts
|
333
|
+
- facts/3.6/centos-6-x86_64.facts
|
299
334
|
- facts/3.6/oraclelinux-6-x86_64.facts
|
300
|
-
- facts/3.6/redhat-7-x86_64.facts
|
301
|
-
- facts/3.3/centos-7-x86_64.facts
|
302
|
-
- facts/3.3/centos-6-x86_64.facts
|
303
|
-
- facts/3.3/oraclelinux-7-x86_64.facts
|
304
|
-
- facts/3.3/redhat-6-x86_64.facts
|
305
|
-
- facts/3.3/oraclelinux-6-x86_64.facts
|
306
|
-
- facts/3.3/redhat-7-x86_64.facts
|
307
|
-
- facts/2.5/centos-7-x86_64.facts
|
308
|
-
- facts/2.5/centos-6-x86_64.facts
|
309
|
-
- facts/2.5/oraclelinux-7-x86_64.facts
|
310
|
-
- facts/2.5/redhat-6-x86_64.facts
|
311
|
-
- facts/2.5/oraclelinux-6-x86_64.facts
|
312
|
-
- facts/2.5/redhat-7-x86_64.facts
|
313
|
-
- facts/2.0/centos-7-x86_64.facts
|
314
|
-
- facts/2.0/centos-6-x86_64.facts
|
315
|
-
- facts/2.0/oraclelinux-7-x86_64.facts
|
316
|
-
- facts/2.0/redhat-6-x86_64.facts
|
317
|
-
- facts/2.0/oraclelinux-6-x86_64.facts
|
318
|
-
- facts/2.0/redhat-7-x86_64.facts
|
319
|
-
- facts/3.5/centos-7-x86_64.facts
|
320
|
-
- facts/3.5/centos-6-x86_64.facts
|
321
335
|
- facts/3.5/oraclelinux-7-x86_64.facts
|
336
|
+
- facts/3.5/centos-7-x86_64.facts
|
337
|
+
- facts/3.5/redhat-7-x86_64.facts
|
322
338
|
- facts/3.5/redhat-6-x86_64.facts
|
339
|
+
- facts/3.5/centos-6-x86_64.facts
|
323
340
|
- facts/3.5/oraclelinux-6-x86_64.facts
|
324
|
-
- facts/3.
|
325
|
-
- facts/3.
|
326
|
-
- facts/3.
|
327
|
-
- facts/3.
|
328
|
-
- facts/3.
|
329
|
-
- facts/3.
|
330
|
-
- facts/
|
331
|
-
- facts/Gemfile
|
332
|
-
- facts/puppetfiles/Puppetfile.6.0.0-0
|
333
|
-
- facts/3.7/centos-7-x86_64.facts
|
334
|
-
- facts/3.7/centos-6-x86_64.facts
|
335
|
-
- facts/3.7/oraclelinux-7-x86_64.facts
|
336
|
-
- facts/3.7/redhat-6-x86_64.facts
|
337
|
-
- facts/3.7/oraclelinux-6-x86_64.facts
|
338
|
-
- facts/3.7/redhat-7-x86_64.facts
|
339
|
-
- facts/2.4/centos-7-x86_64.facts
|
340
|
-
- facts/2.4/centos-6-x86_64.facts
|
341
|
-
- facts/2.4/oraclelinux-7-x86_64.facts
|
342
|
-
- facts/2.4/redhat-6-x86_64.facts
|
343
|
-
- facts/2.4/oraclelinux-6-x86_64.facts
|
344
|
-
- facts/2.4/redhat-7-x86_64.facts
|
345
|
-
- facts/2.2/centos-7-x86_64.facts
|
346
|
-
- facts/2.2/centos-6-x86_64.facts
|
347
|
-
- facts/2.2/oraclelinux-7-x86_64.facts
|
348
|
-
- facts/2.2/redhat-6-x86_64.facts
|
349
|
-
- facts/2.2/oraclelinux-6-x86_64.facts
|
350
|
-
- facts/2.2/redhat-7-x86_64.facts
|
351
|
-
- facts/scripts/get_facts_for_each_facter.sh
|
352
|
-
- facts/scripts/gce_scrub_data/centos-7-x86_64.scrub.yaml
|
341
|
+
- facts/3.0/oraclelinux-7-x86_64.facts
|
342
|
+
- facts/3.0/centos-7-x86_64.facts
|
343
|
+
- facts/3.0/redhat-7-x86_64.facts
|
344
|
+
- facts/3.0/redhat-6-x86_64.facts
|
345
|
+
- facts/3.0/centos-6-x86_64.facts
|
346
|
+
- facts/3.0/oraclelinux-6-x86_64.facts
|
347
|
+
- facts/scripts/gce_scrub_data.rb
|
353
348
|
- facts/scripts/gce_scrub_data/oraclelinux-7-x86_64.scrub.yaml
|
354
|
-
- facts/scripts/gce_scrub_data/centos-6-x86_64.scrub.yaml
|
355
349
|
- facts/scripts/gce_scrub_data/redhat-7-x86_64.scrub.yaml
|
350
|
+
- facts/scripts/gce_scrub_data/centos-7-x86_64.scrub.yaml
|
351
|
+
- facts/scripts/gce_scrub_data/centos-6-x86_64.scrub.yaml
|
356
352
|
- facts/scripts/gce_scrub_data/oraclelinux-6-x86_64.scrub.yaml
|
357
353
|
- facts/scripts/gce_scrub_data/redhat-6-x86_64.scrub.yaml
|
354
|
+
- facts/scripts/get_facts_for_each_facter.sh
|
358
355
|
- facts/scripts/get_facts.rb
|
359
|
-
- facts/
|
356
|
+
- facts/puppetfiles/Puppetfile.6.0.0-0
|
357
|
+
- facts/3.3/oraclelinux-7-x86_64.facts
|
358
|
+
- facts/3.3/centos-7-x86_64.facts
|
359
|
+
- facts/3.3/redhat-7-x86_64.facts
|
360
|
+
- facts/3.3/redhat-6-x86_64.facts
|
361
|
+
- facts/3.3/centos-6-x86_64.facts
|
362
|
+
- facts/3.3/oraclelinux-6-x86_64.facts
|
363
|
+
- facts/Vagrantfile
|
364
|
+
- facts/2.5/oraclelinux-7-x86_64.facts
|
365
|
+
- facts/2.5/centos-7-x86_64.facts
|
366
|
+
- facts/2.5/redhat-7-x86_64.facts
|
367
|
+
- facts/2.5/redhat-6-x86_64.facts
|
368
|
+
- facts/2.5/windows-server_2012_r2-x86_64.facts
|
369
|
+
- facts/2.5/centos-6-x86_64.facts
|
370
|
+
- facts/2.5/oraclelinux-6-x86_64.facts
|
371
|
+
- facts/2.1/oraclelinux-7-x86_64.facts
|
372
|
+
- facts/2.1/centos-7-x86_64.facts
|
373
|
+
- facts/2.1/redhat-7-x86_64.facts
|
374
|
+
- facts/2.1/redhat-6-x86_64.facts
|
375
|
+
- facts/2.1/centos-6-x86_64.facts
|
376
|
+
- facts/2.1/oraclelinux-6-x86_64.facts
|