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