fauxhai-chef 9.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -0
  3. data/LICENSE +22 -0
  4. data/bin/fauxhai +23 -0
  5. data/fauxhai-chef.gemspec +28 -0
  6. data/lib/fauxhai/exception.rb +6 -0
  7. data/lib/fauxhai/fetcher.rb +80 -0
  8. data/lib/fauxhai/keys/id_dsa +12 -0
  9. data/lib/fauxhai/keys/id_dsa.pub +1 -0
  10. data/lib/fauxhai/keys/id_rsa +27 -0
  11. data/lib/fauxhai/keys/id_rsa.pub +1 -0
  12. data/lib/fauxhai/mocker.rb +143 -0
  13. data/lib/fauxhai/platforms/aix/7.1.json +1889 -0
  14. data/lib/fauxhai/platforms/aix/7.2.json +5289 -0
  15. data/lib/fauxhai/platforms/almalinux/8.json +5754 -0
  16. data/lib/fauxhai/platforms/amazon/2.json +4697 -0
  17. data/lib/fauxhai/platforms/amazon/2018.03.json +3525 -0
  18. data/lib/fauxhai/platforms/arch/4.10.13-1-ARCH.json +1669 -0
  19. data/lib/fauxhai/platforms/centos/6.10.json +2691 -0
  20. data/lib/fauxhai/platforms/centos/7.7.1908.json +3855 -0
  21. data/lib/fauxhai/platforms/centos/7.8.2003.json +3803 -0
  22. data/lib/fauxhai/platforms/centos/8.json +4715 -0
  23. data/lib/fauxhai/platforms/chefspec/0.6.1.json +20 -0
  24. data/lib/fauxhai/platforms/clearos/7.4.json +6130 -0
  25. data/lib/fauxhai/platforms/debian/10.json +2928 -0
  26. data/lib/fauxhai/platforms/debian/11.json +2744 -0
  27. data/lib/fauxhai/platforms/debian/9.11.json +2943 -0
  28. data/lib/fauxhai/platforms/debian/9.12.json +2942 -0
  29. data/lib/fauxhai/platforms/debian/9.13.json +2959 -0
  30. data/lib/fauxhai/platforms/dragonfly4/4.8-RELEASE.json +392 -0
  31. data/lib/fauxhai/platforms/fedora/31.json +3994 -0
  32. data/lib/fauxhai/platforms/fedora/32.json +3554 -0
  33. data/lib/fauxhai/platforms/freebsd/11.2.json +427 -0
  34. data/lib/fauxhai/platforms/freebsd/12.1.json +913 -0
  35. data/lib/fauxhai/platforms/gentoo/4.9.95-gentoo.json +989 -0
  36. data/lib/fauxhai/platforms/linuxmint/19.0.json +9649 -0
  37. data/lib/fauxhai/platforms/mac_os_x/10.14.json +1350 -0
  38. data/lib/fauxhai/platforms/mac_os_x/10.15.json +1510 -0
  39. data/lib/fauxhai/platforms/mac_os_x/11.0.json +2821 -0
  40. data/lib/fauxhai/platforms/mac_os_x/11.json +3356 -0
  41. data/lib/fauxhai/platforms/mac_os_x/12.json +3546 -0
  42. data/lib/fauxhai/platforms/openbsd/6.2.json +295 -0
  43. data/lib/fauxhai/platforms/opensuse/15.2.json +5967 -0
  44. data/lib/fauxhai/platforms/oracle/6.10.json +4349 -0
  45. data/lib/fauxhai/platforms/oracle/7.5.json +6576 -0
  46. data/lib/fauxhai/platforms/oracle/7.6.json +6591 -0
  47. data/lib/fauxhai/platforms/raspbian/10.json +3664 -0
  48. data/lib/fauxhai/platforms/redhat/6.10.json +5822 -0
  49. data/lib/fauxhai/platforms/redhat/7.7.json +3969 -0
  50. data/lib/fauxhai/platforms/redhat/7.8.json +3958 -0
  51. data/lib/fauxhai/platforms/redhat/7.9.json +3959 -0
  52. data/lib/fauxhai/platforms/redhat/8.json +4547 -0
  53. data/lib/fauxhai/platforms/rocky/8.json +5768 -0
  54. data/lib/fauxhai/platforms/smartos/5.11.json +1680 -0
  55. data/lib/fauxhai/platforms/solaris2/5.11.json +10290 -0
  56. data/lib/fauxhai/platforms/suse/12.4.json +5875 -0
  57. data/lib/fauxhai/platforms/suse/12.5.json +5012 -0
  58. data/lib/fauxhai/platforms/suse/15.json +6096 -0
  59. data/lib/fauxhai/platforms/ubuntu/16.04.json +3885 -0
  60. data/lib/fauxhai/platforms/ubuntu/18.04.json +4042 -0
  61. data/lib/fauxhai/platforms/ubuntu/20.04.json +4613 -0
  62. data/lib/fauxhai/platforms/windows/10.json +431 -0
  63. data/lib/fauxhai/platforms/windows/2012.json +404 -0
  64. data/lib/fauxhai/platforms/windows/2012R2.json +406 -0
  65. data/lib/fauxhai/platforms/windows/2016.json +408 -0
  66. data/lib/fauxhai/platforms/windows/2019.json +408 -0
  67. data/lib/fauxhai/platforms/windows/8.1.json +416 -0
  68. data/lib/fauxhai/runner/default.rb +284 -0
  69. data/lib/fauxhai/runner/windows.rb +101 -0
  70. data/lib/fauxhai/runner.rb +45 -0
  71. data/lib/fauxhai/version.rb +3 -0
  72. data/lib/fauxhai.rb +18 -0
  73. metadata +202 -0
@@ -0,0 +1,431 @@
1
+ {
2
+ "chef_packages": {
3
+ "chef": {
4
+ "chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.10.9-universal-mingw32/lib",
5
+ "version": "14.10.9"
6
+ },
7
+ "ohai": {
8
+ "ohai_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/ohai-14.8.10/lib/ohai",
9
+ "version": "14.8.10"
10
+ }
11
+ },
12
+ "command": {
13
+ },
14
+ "counters": {
15
+ "network": {
16
+ "interfaces": {
17
+ "0xe": {
18
+ "rx": {
19
+ "bytes": 0,
20
+ "compressed": 0,
21
+ "drop": 0,
22
+ "errors": 0,
23
+ "frame": 0,
24
+ "multicast": 0,
25
+ "overrun": 0,
26
+ "packets": 0
27
+ },
28
+ "tx": {
29
+ "bytes": 0,
30
+ "carrier": 0,
31
+ "collisions": 0,
32
+ "compressed": 0,
33
+ "drop": 0,
34
+ "errors": 0,
35
+ "overrun": 0,
36
+ "packets": 0
37
+ }
38
+ },
39
+ "lo": {
40
+ "rx": {
41
+ "bytes": 0,
42
+ "drop": 0,
43
+ "errors": 0,
44
+ "overrun": 0,
45
+ "packets": 0
46
+ },
47
+ "tx": {
48
+ "bytes": 0,
49
+ "carrier": 0,
50
+ "collisions": 0,
51
+ "drop": 0,
52
+ "errors": 0,
53
+ "packets": 0,
54
+ "queuelen": "1"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "cpu": {
61
+ "cores": 1,
62
+ "real": 1,
63
+ "total": 1
64
+ },
65
+ "current_user": "fauxhai",
66
+ "dmi": {
67
+ },
68
+ "domain": "local",
69
+ "filesystem": {
70
+ "A:": {
71
+ "fs_type": "",
72
+ "kb_available": 0,
73
+ "kb_size": 0,
74
+ "kb_used": 0,
75
+ "mount": "A:",
76
+ "percent_used": 0,
77
+ "volume_name": ""
78
+ },
79
+ "C:": {
80
+ "fs_type": "ntfs",
81
+ "kb_available": 122320953,
82
+ "kb_size": 136363110,
83
+ "kb_used": 14042157,
84
+ "mount": "C:",
85
+ "percent_used": 10,
86
+ "volume_name": ""
87
+ },
88
+ "D:": {
89
+ "encryption_status": "FullyDecrypted",
90
+ "fs_type": "ntfs",
91
+ "kb_available": 51570606,
92
+ "kb_size": 53685972,
93
+ "kb_used": 2115366,
94
+ "mount": "D:",
95
+ "percent_used": 3,
96
+ "volume_name": "temporary storage"
97
+ },
98
+ "E:": {
99
+ "fs_type": "",
100
+ "kb_available": 0,
101
+ "kb_size": 0,
102
+ "kb_used": 0,
103
+ "mount": "E:",
104
+ "percent_used": 0,
105
+ "volume_name": ""
106
+ }
107
+ },
108
+ "fips": {
109
+ "kernel": {
110
+ "enabled": false
111
+ }
112
+ },
113
+ "fqdn": "fauxhai.local",
114
+ "hostname": "Fauxhai",
115
+ "idle": "30 days 15 hours 07 minutes 30 seconds",
116
+ "idletime_seconds": 2646450,
117
+ "ipaddress": "10.0.0.2",
118
+ "kernel": {
119
+ "cs_info": {
120
+ "admin_password_status": 3,
121
+ "automatic_managed_pagefile": false,
122
+ "automatic_reset_boot_option": true,
123
+ "automatic_reset_capability": true,
124
+ "boot_option_on_limit": 0,
125
+ "boot_option_on_watch_dog": 0,
126
+ "boot_rom_supported": true,
127
+ "boot_status": [
128
+ 0,
129
+ 0,
130
+ 0,
131
+ 0,
132
+ 0,
133
+ 0,
134
+ 0,
135
+ 0,
136
+ 0,
137
+ 0
138
+ ],
139
+ "bootup_state": "Normal boot",
140
+ "caption": "win10",
141
+ "chassis_bootup_state": 3,
142
+ "chassis_sku_number": null,
143
+ "current_time_zone": 0,
144
+ "daylight_in_effect": null,
145
+ "description": "AT/AT COMPATIBLE",
146
+ "dns_host_name": "win10",
147
+ "domain": "WORKGROUP",
148
+ "domain_role": 0,
149
+ "enable_daylight_savings_time": true,
150
+ "front_panel_reset_status": 3,
151
+ "hypervisor_present": true,
152
+ "infrared_supported": false,
153
+ "initial_load_info": null,
154
+ "install_date": null,
155
+ "keyboard_password_status": 3,
156
+ "last_load_info": null,
157
+ "manufacturer": "Microsoft Corporation",
158
+ "model": "Virtual Machine",
159
+ "name": "win10",
160
+ "name_format": null,
161
+ "network_server_mode_enabled": true,
162
+ "number_of_logical_processors": 2,
163
+ "number_of_processors": 1,
164
+ "oem_string_array": [
165
+ "[MS_VM_CERT/SHA1/9b80ca0d5dd061ec9da4e494f4c3fd1196270c22]",
166
+ "00000000000000000000000000000000",
167
+ "To be filed by MSFT"
168
+ ],
169
+ "part_of_domain": false,
170
+ "pause_after_reset": "3932100000",
171
+ "pc_system_type": 1,
172
+ "pc_system_type_ex": 1,
173
+ "power_management_capabilities": null,
174
+ "power_management_supported": null,
175
+ "power_on_password_status": 3,
176
+ "power_state": 0,
177
+ "power_supply_state": 3,
178
+ "primary_owner_contact": null,
179
+ "primary_owner_name": null,
180
+ "reset_capability": 1,
181
+ "reset_count": -1,
182
+ "reset_limit": -1,
183
+ "roles": [
184
+ "LM_Workstation",
185
+ "LM_Server",
186
+ "NT"
187
+ ],
188
+ "status": "OK",
189
+ "support_contact_description": null,
190
+ "system_family": null,
191
+ "system_sku_number": null,
192
+ "system_startup_delay": null,
193
+ "system_startup_options": null,
194
+ "system_startup_setting": null,
195
+ "system_type": "x64-based PC",
196
+ "thermal_state": 1,
197
+ "total_physical_memory": "8589463552",
198
+ "user_name": null,
199
+ "wake_up_type": 6,
200
+ "workgroup": "WORKGROUP"
201
+ },
202
+ "machine": "x86_64",
203
+ "name": "Microsoft Windows 10 Education N",
204
+ "os": "WINNT",
205
+ "os_info": {
206
+ "boot_device": "\\Device\\HarddiskVolume1",
207
+ "build_number": "17763",
208
+ "build_type": "Multiprocessor Free",
209
+ "caption": "Microsoft Windows 10 Education N",
210
+ "code_set": "1252",
211
+ "country_code": "1",
212
+ "cs_name": "win10",
213
+ "csd_version": null,
214
+ "current_time_zone": 0,
215
+ "data_execution_prevention_32_bit_applications": true,
216
+ "data_execution_prevention_available": true,
217
+ "data_execution_prevention_drivers": true,
218
+ "data_execution_prevention_support_policy": 2,
219
+ "debug": false,
220
+ "description": "",
221
+ "distributed": false,
222
+ "encryption_level": 256,
223
+ "foreground_application_boost": 2,
224
+ "install_date": "20190130214734.000000+000",
225
+ "large_system_cache": null,
226
+ "last_boot_up_time": "20190130214257.459403+000",
227
+ "local_date_time": "20190130221336.518000+000",
228
+ "locale": "0409",
229
+ "manufacturer": "Microsoft Corporation",
230
+ "max_number_of_processes": -1,
231
+ "max_process_memory_size": "137438953344",
232
+ "mui_languages": [
233
+ "en-US"
234
+ ],
235
+ "name": "Microsoft Windows 10 Education N|C:\\Windows|\\Device\\Harddisk0\\Partition1",
236
+ "number_of_licensed_users": 0,
237
+ "number_of_processes": 159,
238
+ "number_of_users": 1,
239
+ "operating_system_sku": 122,
240
+ "organization": null,
241
+ "os_architecture": "64-bit",
242
+ "os_language": 1033,
243
+ "os_product_suite": 256,
244
+ "os_type": 18,
245
+ "other_type_description": null,
246
+ "pae_enabled": null,
247
+ "plus_product_id": null,
248
+ "plus_version_number": null,
249
+ "portable_operating_system": false,
250
+ "primary": true,
251
+ "product_type": 1,
252
+ "registered_user": null,
253
+ "serial_number": "00328-60000-00001-AA228",
254
+ "service_pack_major_version": 0,
255
+ "service_pack_minor_version": 0,
256
+ "size_stored_in_paging_files": "1966080",
257
+ "status": "OK",
258
+ "suite_mask": 272,
259
+ "system_device": "\\Device\\HarddiskVolume1",
260
+ "system_directory": "C:\\Windows\\system32",
261
+ "system_drive": "C:",
262
+ "total_visible_memory_size": "8388148",
263
+ "version": "10.0.17763",
264
+ "windows_directory": "C:\\Windows"
265
+ },
266
+ "product_type": "Workstation",
267
+ "release": "10.0.17763",
268
+ "server_core": false,
269
+ "system_type": "Desktop",
270
+ "version": "10.0.17763 Build 17763"
271
+ },
272
+ "keys": {
273
+ "ssh": {
274
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
275
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
276
+ }
277
+ },
278
+ "languages": {
279
+ "powershell": {
280
+ "build_version": "10.0.17763.134",
281
+ "clr_version": "4.0.30319.42000",
282
+ "compatible_versions": [
283
+ "1.0",
284
+ "2.0",
285
+ "3.0",
286
+ "4.0",
287
+ "5.0",
288
+ "5.1.17763.134"
289
+ ],
290
+ "remoting_protocol_version": "2.3",
291
+ "serialization_version": "1.1.0.1",
292
+ "version": "5.1.17763.134",
293
+ "ws_man_stack_version": "3.0"
294
+ },
295
+ "ruby": {
296
+ "bin_dir": "/usr/local/bin",
297
+ "gem_bin": "/usr/local/bin/gem",
298
+ "gems_dir": "/usr/local/gems",
299
+ "ruby_bin": "/usr/local/bin/ruby"
300
+ }
301
+ },
302
+ "macaddress": "11:11:11:11:11:11",
303
+ "machinename": "Fauxhai",
304
+ "memory": {
305
+ "total": "1048576kB"
306
+ },
307
+ "network": {
308
+ "default_gateway": "10.0.0.1",
309
+ "default_interface": "0xe",
310
+ "interfaces": {
311
+ "0xe": {
312
+ "addresses": {
313
+ "10.0.0.2": {
314
+ "broadcast": "10.0.0.255",
315
+ "family": "inet",
316
+ "netmask": "255.255.255.0",
317
+ "prefixlen": "24"
318
+ },
319
+ "11:11:11:11:11:11": {
320
+ "family": "lladdr"
321
+ }
322
+ },
323
+ "arp": {
324
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
325
+ },
326
+ "configuration": {
327
+ "caption": "[00000012] Ethernet Adapter",
328
+ "database_path": "%SystemRoot%\\System32\\drivers\\etc",
329
+ "default_ip_gateway": [
330
+ "default_gateway"
331
+ ],
332
+ "description": "Ethernet Adapter",
333
+ "dhcp_enabled": false,
334
+ "dns_domain_suffix_search_order": [
335
+ ],
336
+ "dns_enabled_for_wins_resolution": false,
337
+ "dns_host_name": "Fauxhai",
338
+ "domain_dns_registration_enabled": false,
339
+ "full_dns_registration_enabled": true,
340
+ "gateway_cost_metric": [
341
+ 0
342
+ ],
343
+ "index": 12,
344
+ "interface_index": 14,
345
+ "ip_address": [
346
+ "10.0.0.2"
347
+ ],
348
+ "ip_connection_metric": 5,
349
+ "ip_enabled": true,
350
+ "ip_filter_security_enabled": false,
351
+ "ip_sec_permit_ip_protocols": [
352
+ ],
353
+ "ip_sec_permit_tcp_ports": [
354
+ ],
355
+ "ip_sec_permit_udp_ports": [
356
+ ],
357
+ "ip_subnet": [
358
+ "255.255.255.0",
359
+ "64"
360
+ ],
361
+ "mac_address": "11:11:11:11:11:11",
362
+ "service_name": "netkvm",
363
+ "setting_id": "{00000000-0000-0000-0000-000000000000}",
364
+ "tcp_window_size": 64240,
365
+ "tcpip_netbios_options": 0,
366
+ "wins_enable_lm_hosts_lookup": true,
367
+ "wins_scope_id": ""
368
+ },
369
+ "counters": {
370
+ },
371
+ "encapsulation": "Ethernet",
372
+ "instance": {
373
+ "adapter_type": "Ethernet 802.3",
374
+ "adapter_type_id": 0,
375
+ "availability": 3,
376
+ "caption": "[00000012] Ethernet Adapter",
377
+ "config_manager_error_code": 0,
378
+ "config_manager_user_config": false,
379
+ "creation_class_name": "Win32_NetworkAdapter",
380
+ "description": "Ethernet Adapter",
381
+ "device_id": "12",
382
+ "guid": "{00000000-0000-0000-0000-000000000000}",
383
+ "index": 12,
384
+ "installed": true,
385
+ "interface_index": 14,
386
+ "mac_address": "11:11:11:11:11:11",
387
+ "manufacturer": "",
388
+ "max_number_controlled": 0,
389
+ "name": "Ethernet Adapter",
390
+ "net_connection_id": "Ethernet",
391
+ "net_connection_status": 2,
392
+ "net_enabled": true,
393
+ "physical_adapter": true,
394
+ "pnp_device_id": "PCI\\VEN_0000&DEV_0000&SUBSYS_000000000&REV_00\\0&0000000000&00",
395
+ "power_management_supported": false,
396
+ "product_name": "Ethernet Adapter",
397
+ "service_name": "netkvm",
398
+ "speed": "10000000000",
399
+ "system_creation_class_name": "Win32_ComputerSystem",
400
+ "system_name": "Fauxhai",
401
+ "time_of_last_reset": "20000101000001.000000+000"
402
+ },
403
+ "type": "Ethernet 802.3"
404
+ }
405
+ }
406
+ },
407
+ "ohai_time": 1548886420.420179,
408
+ "os": "windows",
409
+ "os_version": "10.0.17763",
410
+ "packages": {
411
+ "Chef Client v14.10.9": {
412
+ "installdate": "20190130",
413
+ "publisher": "Chef Software, Inc.",
414
+ "version": "14.10.9.1"
415
+ }
416
+ },
417
+ "platform": "windows",
418
+ "platform_family": "windows",
419
+ "platform_version": "10.0.17763",
420
+ "root_group": "Administrators",
421
+ "shard_seed": 111319863,
422
+ "time": {
423
+ "timezone": "GMT"
424
+ },
425
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
426
+ "uptime_seconds": 2646450,
427
+ "virtualization": {
428
+ "systems": {
429
+ }
430
+ }
431
+ }