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