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,404 @@
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
+ "C:": {
71
+ "fs_type": "ntfs",
72
+ "kb_available": 4132487,
73
+ "kb_size": 31843151,
74
+ "kb_used": 27710664,
75
+ "mount": "C:",
76
+ "percent_used": 87,
77
+ "volume_name": ""
78
+ }
79
+ },
80
+ "fips": {
81
+ "kernel": {
82
+ "enabled": false
83
+ }
84
+ },
85
+ "fqdn": "fauxhai.local",
86
+ "hostname": "Fauxhai",
87
+ "idle": "30 days 15 hours 07 minutes 30 seconds",
88
+ "idletime_seconds": 2646450,
89
+ "ipaddress": "10.0.0.2",
90
+ "kernel": {
91
+ "cs_info": {
92
+ "admin_password_status": 3,
93
+ "automatic_managed_pagefile": false,
94
+ "automatic_reset_boot_option": true,
95
+ "automatic_reset_capability": true,
96
+ "boot_option_on_limit": null,
97
+ "boot_option_on_watch_dog": null,
98
+ "boot_rom_supported": true,
99
+ "bootup_state": "Normal boot",
100
+ "caption": "WIN-326UMSID2AK",
101
+ "chassis_bootup_state": 3,
102
+ "current_time_zone": 0,
103
+ "daylight_in_effect": null,
104
+ "description": "AT/AT COMPATIBLE",
105
+ "dns_host_name": "WIN-326UMSID2AK",
106
+ "domain": "WORKGROUP",
107
+ "domain_role": 2,
108
+ "enable_daylight_savings_time": true,
109
+ "front_panel_reset_status": 3,
110
+ "hypervisor_present": true,
111
+ "infrared_supported": false,
112
+ "initial_load_info": null,
113
+ "install_date": null,
114
+ "keyboard_password_status": 3,
115
+ "last_load_info": null,
116
+ "manufacturer": "Amazon EC2",
117
+ "model": "t3.large",
118
+ "name": "WIN-326UMSID2AK",
119
+ "name_format": null,
120
+ "network_server_mode_enabled": true,
121
+ "number_of_logical_processors": 2,
122
+ "number_of_processors": 1,
123
+ "oem_string_array": null,
124
+ "part_of_domain": false,
125
+ "pause_after_reset": "-1",
126
+ "pc_system_type": 1,
127
+ "power_management_capabilities": null,
128
+ "power_management_supported": null,
129
+ "power_on_password_status": 3,
130
+ "power_state": 0,
131
+ "power_supply_state": 3,
132
+ "primary_owner_contact": null,
133
+ "primary_owner_name": "EC2",
134
+ "reset_capability": 1,
135
+ "reset_count": -1,
136
+ "reset_limit": -1,
137
+ "roles": [
138
+ "LM_Workstation",
139
+ "LM_Server",
140
+ "NT",
141
+ "Server_NT"
142
+ ],
143
+ "status": "OK",
144
+ "support_contact_description": null,
145
+ "system_startup_delay": null,
146
+ "system_startup_options": null,
147
+ "system_startup_setting": null,
148
+ "system_type": "x64-based PC",
149
+ "thermal_state": 3,
150
+ "total_physical_memory": "8482549760",
151
+ "user_name": null,
152
+ "wake_up_type": 6,
153
+ "workgroup": "WORKGROUP"
154
+ },
155
+ "machine": "x86_64",
156
+ "name": "Microsoft Windows Server 2012 Standard",
157
+ "os": "WINNT",
158
+ "os_info": {
159
+ "boot_device": "\\Device\\HarddiskVolume1",
160
+ "build_number": "9200",
161
+ "build_type": "Multiprocessor Free",
162
+ "caption": "Microsoft Windows Server 2012 Standard",
163
+ "code_set": "1252",
164
+ "country_code": "1",
165
+ "cs_name": "WIN-326UMSID2AK",
166
+ "csd_version": null,
167
+ "current_time_zone": 0,
168
+ "data_execution_prevention_32_bit_applications": true,
169
+ "data_execution_prevention_available": true,
170
+ "data_execution_prevention_drivers": true,
171
+ "data_execution_prevention_support_policy": 3,
172
+ "debug": false,
173
+ "description": "",
174
+ "distributed": false,
175
+ "encryption_level": 256,
176
+ "foreground_application_boost": 0,
177
+ "install_date": "20190130172142.000000+000",
178
+ "large_system_cache": null,
179
+ "last_boot_up_time": "20190130212411.486650+000",
180
+ "local_date_time": "20190130215252.274000+000",
181
+ "locale": "0409",
182
+ "manufacturer": "Microsoft Corporation",
183
+ "max_number_of_processes": -1,
184
+ "max_process_memory_size": "8589934464",
185
+ "mui_languages": [
186
+ "en-US"
187
+ ],
188
+ "name": "Microsoft Windows Server 2012 Standard|C:\\Windows|\\Device\\Harddisk0\\Partition2",
189
+ "number_of_licensed_users": 0,
190
+ "number_of_processes": 39,
191
+ "number_of_users": 1,
192
+ "operating_system_sku": 7,
193
+ "organization": "Amazon.com",
194
+ "os_architecture": "64-bit",
195
+ "os_language": 1033,
196
+ "os_product_suite": 272,
197
+ "os_type": 18,
198
+ "other_type_description": null,
199
+ "pae_enabled": null,
200
+ "plus_product_id": null,
201
+ "plus_version_number": null,
202
+ "portable_operating_system": false,
203
+ "primary": true,
204
+ "product_type": 3,
205
+ "registered_user": "EC2",
206
+ "serial_number": "00184-30000-00001-AA420",
207
+ "service_pack_major_version": 0,
208
+ "service_pack_minor_version": 0,
209
+ "size_stored_in_paging_files": "524288",
210
+ "status": "OK",
211
+ "suite_mask": 272,
212
+ "system_device": "\\Device\\HarddiskVolume2",
213
+ "system_directory": "C:\\Windows\\system32",
214
+ "system_drive": "C:",
215
+ "total_visible_memory_size": "8283740",
216
+ "version": "6.2.9200",
217
+ "windows_directory": "C:\\Windows"
218
+ },
219
+ "product_type": "Server",
220
+ "release": "6.2.9200",
221
+ "server_core": false,
222
+ "system_type": "Desktop",
223
+ "version": "6.2.9200 Build 9200"
224
+ },
225
+ "keys": {
226
+ "ssh": {
227
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
228
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
229
+ }
230
+ },
231
+ "languages": {
232
+ "powershell": {
233
+ "build_version": "6.2.9200.22199",
234
+ "clr_version": "4.0.30319.42000",
235
+ "compatible_versions": [
236
+ "1.0",
237
+ "2.0",
238
+ "3.0"
239
+ ],
240
+ "remoting_protocol_version": "2.2",
241
+ "serialization_version": "1.1.0.1",
242
+ "version": "3.0",
243
+ "ws_man_stack_version": "3.0"
244
+ },
245
+ "ruby": {
246
+ "bin_dir": "/usr/local/bin",
247
+ "gem_bin": "/usr/local/bin/gem",
248
+ "gems_dir": "/usr/local/gems",
249
+ "ruby_bin": "/usr/local/bin/ruby"
250
+ }
251
+ },
252
+ "macaddress": "11:11:11:11:11:11",
253
+ "machinename": "Fauxhai",
254
+ "memory": {
255
+ "total": "1048576kB"
256
+ },
257
+ "network": {
258
+ "default_gateway": "10.0.0.1",
259
+ "default_interface": "0xe",
260
+ "interfaces": {
261
+ "0xe": {
262
+ "addresses": {
263
+ "10.0.0.2": {
264
+ "broadcast": "10.0.0.255",
265
+ "family": "inet",
266
+ "netmask": "255.255.255.0",
267
+ "prefixlen": "24"
268
+ },
269
+ "11:11:11:11:11:11": {
270
+ "family": "lladdr"
271
+ }
272
+ },
273
+ "arp": {
274
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
275
+ },
276
+ "configuration": {
277
+ "caption": "[00000012] Ethernet Adapter",
278
+ "database_path": "%SystemRoot%\\System32\\drivers\\etc",
279
+ "default_ip_gateway": [
280
+ "default_gateway"
281
+ ],
282
+ "description": "Ethernet Adapter",
283
+ "dhcp_enabled": false,
284
+ "dns_domain_suffix_search_order": [
285
+ ],
286
+ "dns_enabled_for_wins_resolution": false,
287
+ "dns_host_name": "Fauxhai",
288
+ "domain_dns_registration_enabled": false,
289
+ "full_dns_registration_enabled": true,
290
+ "gateway_cost_metric": [
291
+ 0
292
+ ],
293
+ "index": 12,
294
+ "interface_index": 14,
295
+ "ip_address": [
296
+ "10.0.0.2"
297
+ ],
298
+ "ip_connection_metric": 5,
299
+ "ip_enabled": true,
300
+ "ip_filter_security_enabled": false,
301
+ "ip_sec_permit_ip_protocols": [
302
+ ],
303
+ "ip_sec_permit_tcp_ports": [
304
+ ],
305
+ "ip_sec_permit_udp_ports": [
306
+ ],
307
+ "ip_subnet": [
308
+ "255.255.255.0",
309
+ "64"
310
+ ],
311
+ "mac_address": "11:11:11:11:11:11",
312
+ "service_name": "netkvm",
313
+ "setting_id": "{00000000-0000-0000-0000-000000000000}",
314
+ "tcp_window_size": 64240,
315
+ "tcpip_netbios_options": 0,
316
+ "wins_enable_lm_hosts_lookup": true,
317
+ "wins_scope_id": ""
318
+ },
319
+ "counters": {
320
+ },
321
+ "encapsulation": "Ethernet",
322
+ "instance": {
323
+ "adapter_type": "Ethernet 802.3",
324
+ "adapter_type_id": 0,
325
+ "availability": 3,
326
+ "caption": "[00000012] Ethernet Adapter",
327
+ "config_manager_error_code": 0,
328
+ "config_manager_user_config": false,
329
+ "creation_class_name": "Win32_NetworkAdapter",
330
+ "description": "Ethernet Adapter",
331
+ "device_id": "12",
332
+ "guid": "{00000000-0000-0000-0000-000000000000}",
333
+ "index": 12,
334
+ "installed": true,
335
+ "interface_index": 14,
336
+ "mac_address": "11:11:11:11:11:11",
337
+ "manufacturer": "",
338
+ "max_number_controlled": 0,
339
+ "name": "Ethernet Adapter",
340
+ "net_connection_id": "Ethernet",
341
+ "net_connection_status": 2,
342
+ "net_enabled": true,
343
+ "physical_adapter": true,
344
+ "pnp_device_id": "PCI\\VEN_0000&DEV_0000&SUBSYS_000000000&REV_00\\0&0000000000&00",
345
+ "power_management_supported": false,
346
+ "product_name": "Ethernet Adapter",
347
+ "service_name": "netkvm",
348
+ "speed": "10000000000",
349
+ "system_creation_class_name": "Win32_ComputerSystem",
350
+ "system_name": "Fauxhai",
351
+ "time_of_last_reset": "20000101000001.000000+000"
352
+ },
353
+ "type": "Ethernet 802.3"
354
+ }
355
+ }
356
+ },
357
+ "ohai_time": 1548885175.649484,
358
+ "os": "windows",
359
+ "os_version": "6.2.9200",
360
+ "packages": {
361
+ "AWS PV Drivers": {
362
+ "installdate": "20181014",
363
+ "publisher": "Amazon Web Services",
364
+ "version": "8.2.4"
365
+ },
366
+ "AWS Tools for Windows": {
367
+ "installdate": "20190109",
368
+ "publisher": "Amazon Web Services Developer Relations",
369
+ "version": "3.15.647"
370
+ },
371
+ "Amazon SSM Agent": {
372
+ "publisher": "Amazon Web Services",
373
+ "version": "2.3.344.0"
374
+ },
375
+ "Chef Client v14.10.9": {
376
+ "installdate": "20190130",
377
+ "publisher": "Chef Software, Inc.",
378
+ "version": "14.10.9.1"
379
+ },
380
+ "EC2ConfigService": {
381
+ "publisher": "Amazon Web Services",
382
+ "version": "4.9.3160.0"
383
+ },
384
+ "aws-cfn-bootstrap": {
385
+ "installdate": "20120924",
386
+ "publisher": "Amazon Web Services",
387
+ "version": "1.3.5"
388
+ }
389
+ },
390
+ "platform": "windows",
391
+ "platform_family": "windows",
392
+ "platform_version": "6.2.9200",
393
+ "root_group": "Administrators",
394
+ "shard_seed": 143500384,
395
+ "time": {
396
+ "timezone": "GMT"
397
+ },
398
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
399
+ "uptime_seconds": 2646450,
400
+ "virtualization": {
401
+ "systems": {
402
+ }
403
+ }
404
+ }