fauxhai-ng 7.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/bin/fauxhai +23 -0
  4. data/lib/.DS_Store +0 -0
  5. data/lib/fauxhai.rb +18 -0
  6. data/lib/fauxhai/.DS_Store +0 -0
  7. data/lib/fauxhai/exception.rb +6 -0
  8. data/lib/fauxhai/fetcher.rb +79 -0
  9. data/lib/fauxhai/keys/id_dsa +12 -0
  10. data/lib/fauxhai/keys/id_dsa.pub +1 -0
  11. data/lib/fauxhai/keys/id_rsa +27 -0
  12. data/lib/fauxhai/keys/id_rsa.pub +1 -0
  13. data/lib/fauxhai/mocker.rb +143 -0
  14. data/lib/fauxhai/platforms/.DS_Store +0 -0
  15. data/lib/fauxhai/platforms/aix/.DS_Store +0 -0
  16. data/lib/fauxhai/platforms/aix/6.1.json +730 -0
  17. data/lib/fauxhai/platforms/aix/7.1.json +3128 -0
  18. data/lib/fauxhai/platforms/amazon/.DS_Store +0 -0
  19. data/lib/fauxhai/platforms/amazon/2.json +4581 -0
  20. data/lib/fauxhai/platforms/amazon/2015.03.json +3327 -0
  21. data/lib/fauxhai/platforms/amazon/2015.09.json +3385 -0
  22. data/lib/fauxhai/platforms/amazon/2016.03.json +3377 -0
  23. data/lib/fauxhai/platforms/amazon/2016.09.json +3384 -0
  24. data/lib/fauxhai/platforms/amazon/2017.03.json +3388 -0
  25. data/lib/fauxhai/platforms/amazon/2017.09.json +3409 -0
  26. data/lib/fauxhai/platforms/amazon/2018.03.json +3431 -0
  27. data/lib/fauxhai/platforms/arch/4.10.13-1-ARCH.json +1659 -0
  28. data/lib/fauxhai/platforms/centos/.DS_Store +0 -0
  29. data/lib/fauxhai/platforms/centos/5.11.json +4919 -0
  30. data/lib/fauxhai/platforms/centos/6.10.json +2685 -0
  31. data/lib/fauxhai/platforms/centos/6.8.json +2495 -0
  32. data/lib/fauxhai/platforms/centos/6.9.json +2692 -0
  33. data/lib/fauxhai/platforms/centos/7.3.1611.json +4077 -0
  34. data/lib/fauxhai/platforms/centos/7.4.1708.json +3799 -0
  35. data/lib/fauxhai/platforms/centos/7.5.1804.json +3794 -0
  36. data/lib/fauxhai/platforms/centos/7.6.1804.json +3795 -0
  37. data/lib/fauxhai/platforms/centos/7.6.1810.json +4620 -0
  38. data/lib/fauxhai/platforms/centos/7.7.1908.json +4052 -0
  39. data/lib/fauxhai/platforms/centos/8.json +5827 -0
  40. data/lib/fauxhai/platforms/chefspec/0.6.1.json +20 -0
  41. data/lib/fauxhai/platforms/clearos/.DS_Store +0 -0
  42. data/lib/fauxhai/platforms/clearos/7.4.json +6121 -0
  43. data/lib/fauxhai/platforms/debian/.DS_Store +0 -0
  44. data/lib/fauxhai/platforms/debian/10.json +2700 -0
  45. data/lib/fauxhai/platforms/debian/7.11.json +2932 -0
  46. data/lib/fauxhai/platforms/debian/8.10.json +3587 -0
  47. data/lib/fauxhai/platforms/debian/8.11.json +3595 -0
  48. data/lib/fauxhai/platforms/debian/8.9.json +3614 -0
  49. data/lib/fauxhai/platforms/debian/9.11.json +2928 -0
  50. data/lib/fauxhai/platforms/debian/9.2.json +3084 -0
  51. data/lib/fauxhai/platforms/debian/9.3.json +2929 -0
  52. data/lib/fauxhai/platforms/debian/9.4.json +2930 -0
  53. data/lib/fauxhai/platforms/debian/9.5.json +2928 -0
  54. data/lib/fauxhai/platforms/debian/9.6.json +2928 -0
  55. data/lib/fauxhai/platforms/debian/9.8.json +2928 -0
  56. data/lib/fauxhai/platforms/debian/9.9.json +2928 -0
  57. data/lib/fauxhai/platforms/dragonfly4/4.8-RELEASE.json +387 -0
  58. data/lib/fauxhai/platforms/fedora/.DS_Store +0 -0
  59. data/lib/fauxhai/platforms/fedora/26.json +3565 -0
  60. data/lib/fauxhai/platforms/fedora/27.json +3629 -0
  61. data/lib/fauxhai/platforms/fedora/28.json +3795 -0
  62. data/lib/fauxhai/platforms/fedora/29.json +3826 -0
  63. data/lib/fauxhai/platforms/fedora/30.json +3854 -0
  64. data/lib/fauxhai/platforms/freebsd/.DS_Store +0 -0
  65. data/lib/fauxhai/platforms/freebsd/10.4.json +423 -0
  66. data/lib/fauxhai/platforms/freebsd/11.1.json +425 -0
  67. data/lib/fauxhai/platforms/freebsd/11.2.json +422 -0
  68. data/lib/fauxhai/platforms/gentoo/.DS_Store +0 -0
  69. data/lib/fauxhai/platforms/gentoo/4.9.95-gentoo.json +980 -0
  70. data/lib/fauxhai/platforms/linuxmint/.DS_Store +0 -0
  71. data/lib/fauxhai/platforms/linuxmint/18.3.json +10350 -0
  72. data/lib/fauxhai/platforms/linuxmint/19.0.json +9643 -0
  73. data/lib/fauxhai/platforms/mac_os_x/.DS_Store +0 -0
  74. data/lib/fauxhai/platforms/mac_os_x/10.11.json +976 -0
  75. data/lib/fauxhai/platforms/mac_os_x/10.12.json +974 -0
  76. data/lib/fauxhai/platforms/mac_os_x/10.13.json +1338 -0
  77. data/lib/fauxhai/platforms/mac_os_x/10.14.json +1345 -0
  78. data/lib/fauxhai/platforms/mac_os_x/10.15.json +1629 -0
  79. data/lib/fauxhai/platforms/openbsd/.DS_Store +0 -0
  80. data/lib/fauxhai/platforms/openbsd/6.2.json +290 -0
  81. data/lib/fauxhai/platforms/opensuse/.DS_Store +0 -0
  82. data/lib/fauxhai/platforms/opensuse/15.0.json +1714 -0
  83. data/lib/fauxhai/platforms/opensuse/42.2.json +7200 -0
  84. data/lib/fauxhai/platforms/opensuse/42.3.json +8205 -0
  85. data/lib/fauxhai/platforms/oracle/.DS_Store +0 -0
  86. data/lib/fauxhai/platforms/oracle/5.11.json +7028 -0
  87. data/lib/fauxhai/platforms/oracle/6.10.json +4342 -0
  88. data/lib/fauxhai/platforms/oracle/6.8.json +6170 -0
  89. data/lib/fauxhai/platforms/oracle/6.9.json +4176 -0
  90. data/lib/fauxhai/platforms/oracle/7.3.json +6354 -0
  91. data/lib/fauxhai/platforms/oracle/7.4.json +6389 -0
  92. data/lib/fauxhai/platforms/oracle/7.5.json +6585 -0
  93. data/lib/fauxhai/platforms/oracle/7.6.json +6585 -0
  94. data/lib/fauxhai/platforms/raspbian/8.0.json +466 -0
  95. data/lib/fauxhai/platforms/redhat/.DS_Store +0 -0
  96. data/lib/fauxhai/platforms/redhat/5.11.json +6681 -0
  97. data/lib/fauxhai/platforms/redhat/6.10.json +5807 -0
  98. data/lib/fauxhai/platforms/redhat/6.8.json +5737 -0
  99. data/lib/fauxhai/platforms/redhat/6.9.json +5807 -0
  100. data/lib/fauxhai/platforms/redhat/7.3.json +3860 -0
  101. data/lib/fauxhai/platforms/redhat/7.4.json +3876 -0
  102. data/lib/fauxhai/platforms/redhat/7.5.json +3937 -0
  103. data/lib/fauxhai/platforms/redhat/7.6.json +3952 -0
  104. data/lib/fauxhai/platforms/redhat/8.json +4494 -0
  105. data/lib/fauxhai/platforms/smartos/5.11.json +1677 -0
  106. data/lib/fauxhai/platforms/solaris2/.DS_Store +0 -0
  107. data/lib/fauxhai/platforms/solaris2/5.11.json +8902 -0
  108. data/lib/fauxhai/platforms/suse/.DS_Store +0 -0
  109. data/lib/fauxhai/platforms/suse/11.4.json +5688 -0
  110. data/lib/fauxhai/platforms/suse/12.1.json +5823 -0
  111. data/lib/fauxhai/platforms/suse/12.2.json +5124 -0
  112. data/lib/fauxhai/platforms/suse/12.3.json +5838 -0
  113. data/lib/fauxhai/platforms/suse/12.4.json +5874 -0
  114. data/lib/fauxhai/platforms/suse/15.json +5928 -0
  115. data/lib/fauxhai/platforms/ubuntu/.DS_Store +0 -0
  116. data/lib/fauxhai/platforms/ubuntu/14.04.json +2998 -0
  117. data/lib/fauxhai/platforms/ubuntu/16.04.json +3766 -0
  118. data/lib/fauxhai/platforms/ubuntu/17.10.json +3739 -0
  119. data/lib/fauxhai/platforms/ubuntu/18.04.json +3926 -0
  120. data/lib/fauxhai/platforms/windows/.DS_Store +0 -0
  121. data/lib/fauxhai/platforms/windows/10.json +423 -0
  122. data/lib/fauxhai/platforms/windows/2008R2.json +443 -0
  123. data/lib/fauxhai/platforms/windows/2012.json +396 -0
  124. data/lib/fauxhai/platforms/windows/2012R2.json +398 -0
  125. data/lib/fauxhai/platforms/windows/2016.json +400 -0
  126. data/lib/fauxhai/platforms/windows/2019.json +400 -0
  127. data/lib/fauxhai/platforms/windows/8.1.json +408 -0
  128. data/lib/fauxhai/runner.rb +44 -0
  129. data/lib/fauxhai/runner/default.rb +284 -0
  130. data/lib/fauxhai/runner/windows.rb +101 -0
  131. data/lib/fauxhai/version.rb +3 -0
  132. metadata +261 -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
+ "counters": {
14
+ "network": {
15
+ "interfaces": {
16
+ "0xe": {
17
+ "rx": {
18
+ "bytes": 0,
19
+ "compressed": 0,
20
+ "drop": 0,
21
+ "errors": 0,
22
+ "frame": 0,
23
+ "multicast": 0,
24
+ "overrun": 0,
25
+ "packets": 0
26
+ },
27
+ "tx": {
28
+ "bytes": 0,
29
+ "carrier": 0,
30
+ "collisions": 0,
31
+ "compressed": 0,
32
+ "drop": 0,
33
+ "errors": 0,
34
+ "overrun": 0,
35
+ "packets": 0
36
+ }
37
+ },
38
+ "lo": {
39
+ "rx": {
40
+ "bytes": 0,
41
+ "drop": 0,
42
+ "errors": 0,
43
+ "overrun": 0,
44
+ "packets": 0
45
+ },
46
+ "tx": {
47
+ "bytes": 0,
48
+ "carrier": 0,
49
+ "collisions": 0,
50
+ "drop": 0,
51
+ "errors": 0,
52
+ "packets": 0,
53
+ "queuelen": "1"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "cpu": {
60
+ "cores": 1,
61
+ "real": 1,
62
+ "total": 1
63
+ },
64
+ "current_user": "fauxhai",
65
+ "dmi": {},
66
+ "domain": "local",
67
+ "filesystem": {
68
+ "A:": {
69
+ "fs_type": "",
70
+ "kb_available": 0,
71
+ "kb_size": 0,
72
+ "kb_used": 0,
73
+ "mount": "A:",
74
+ "percent_used": 0,
75
+ "volume_name": ""
76
+ },
77
+ "C:": {
78
+ "fs_type": "ntfs",
79
+ "kb_available": 119364108,
80
+ "kb_size": 137436852,
81
+ "kb_used": 18072744,
82
+ "mount": "C:",
83
+ "percent_used": 13,
84
+ "volume_name": ""
85
+ },
86
+ "D:": {
87
+ "encryption_status": "FullyDecrypted",
88
+ "fs_type": "ntfs",
89
+ "kb_available": 51567525,
90
+ "kb_size": 53685972,
91
+ "kb_used": 2118447,
92
+ "mount": "D:",
93
+ "percent_used": 3,
94
+ "volume_name": "temporary storage"
95
+ },
96
+ "E:": {
97
+ "fs_type": "",
98
+ "kb_available": 0,
99
+ "kb_size": 0,
100
+ "kb_used": 0,
101
+ "mount": "E:",
102
+ "percent_used": 0,
103
+ "volume_name": ""
104
+ }
105
+ },
106
+ "fips": {
107
+ "kernel": {
108
+ "enabled": false
109
+ }
110
+ },
111
+ "fqdn": "fauxhai.local",
112
+ "hostname": "Fauxhai",
113
+ "idle": "30 days 15 hours 07 minutes 30 seconds",
114
+ "idletime_seconds": 2646450,
115
+ "ipaddress": "10.0.0.2",
116
+ "kernel": {
117
+ "cs_info": {
118
+ "admin_password_status": 3,
119
+ "automatic_managed_pagefile": false,
120
+ "automatic_reset_boot_option": true,
121
+ "automatic_reset_capability": true,
122
+ "boot_option_on_limit": 0,
123
+ "boot_option_on_watch_dog": 0,
124
+ "boot_rom_supported": true,
125
+ "bootup_state": "Normal boot",
126
+ "caption": "win81",
127
+ "chassis_bootup_state": 3,
128
+ "current_time_zone": 0,
129
+ "daylight_in_effect": null,
130
+ "description": "AT/AT COMPATIBLE",
131
+ "dns_host_name": "win81",
132
+ "domain": "WORKGROUP",
133
+ "domain_role": 0,
134
+ "enable_daylight_savings_time": true,
135
+ "front_panel_reset_status": 3,
136
+ "hypervisor_present": true,
137
+ "infrared_supported": false,
138
+ "initial_load_info": null,
139
+ "install_date": null,
140
+ "keyboard_password_status": 3,
141
+ "last_load_info": null,
142
+ "manufacturer": "Microsoft Corporation",
143
+ "model": "Virtual Machine",
144
+ "name": "win81",
145
+ "name_format": null,
146
+ "network_server_mode_enabled": true,
147
+ "number_of_logical_processors": 2,
148
+ "number_of_processors": 1,
149
+ "oem_string_array": [
150
+ "[MS_VM_CERT/SHA1/9b80ca0d5dd061ec9da4e494f4c3fd1196270c22]",
151
+ "00000000000000000000000000000000",
152
+ "To be filed by MSFT"
153
+ ],
154
+ "part_of_domain": false,
155
+ "pause_after_reset": "3932100000",
156
+ "pc_system_type": 1,
157
+ "pc_system_type_ex": 1,
158
+ "power_management_capabilities": null,
159
+ "power_management_supported": null,
160
+ "power_on_password_status": 3,
161
+ "power_state": 0,
162
+ "power_supply_state": 3,
163
+ "primary_owner_contact": null,
164
+ "primary_owner_name": "Windows User",
165
+ "reset_capability": 1,
166
+ "reset_count": -1,
167
+ "reset_limit": -1,
168
+ "roles": [
169
+ "LM_Workstation",
170
+ "LM_Server",
171
+ "NT"
172
+ ],
173
+ "status": "OK",
174
+ "support_contact_description": null,
175
+ "system_startup_delay": null,
176
+ "system_startup_options": null,
177
+ "system_startup_setting": null,
178
+ "system_type": "x64-based PC",
179
+ "thermal_state": 1,
180
+ "total_physical_memory": "8589463552",
181
+ "user_name": null,
182
+ "wake_up_type": 6,
183
+ "workgroup": "WORKGROUP"
184
+ },
185
+ "machine": "x86_64",
186
+ "name": "Microsoft Windows 8.1 Enterprise N",
187
+ "os": "WINNT",
188
+ "os_info": {
189
+ "boot_device": "\\Device\\HarddiskVolume1",
190
+ "build_number": "9600",
191
+ "build_type": "Multiprocessor Free",
192
+ "caption": "Microsoft Windows 8.1 Enterprise N",
193
+ "code_set": "1252",
194
+ "country_code": "1",
195
+ "cs_name": "win81",
196
+ "csd_version": null,
197
+ "current_time_zone": 0,
198
+ "data_execution_prevention_32_bit_applications": true,
199
+ "data_execution_prevention_available": true,
200
+ "data_execution_prevention_drivers": true,
201
+ "data_execution_prevention_support_policy": 2,
202
+ "debug": false,
203
+ "description": "",
204
+ "distributed": false,
205
+ "encryption_level": 256,
206
+ "foreground_application_boost": 2,
207
+ "install_date": "20190130214616.000000+000",
208
+ "large_system_cache": null,
209
+ "last_boot_up_time": "20190130214440.541330+000",
210
+ "local_date_time": "20190130220322.654000+000",
211
+ "locale": "0409",
212
+ "manufacturer": "Microsoft Corporation",
213
+ "max_number_of_processes": -1,
214
+ "max_process_memory_size": "137438953344",
215
+ "mui_languages": [
216
+ "en-US"
217
+ ],
218
+ "name": "Microsoft Windows 8.1 Enterprise N|C:\\Windows|\\Device\\Harddisk0\\Partition1",
219
+ "number_of_licensed_users": 0,
220
+ "number_of_processes": 60,
221
+ "number_of_users": 2,
222
+ "operating_system_sku": 27,
223
+ "organization": "",
224
+ "os_architecture": "64-bit",
225
+ "os_language": 1033,
226
+ "os_product_suite": 256,
227
+ "os_type": 18,
228
+ "other_type_description": null,
229
+ "pae_enabled": null,
230
+ "plus_product_id": null,
231
+ "plus_version_number": null,
232
+ "portable_operating_system": false,
233
+ "primary": true,
234
+ "product_type": 1,
235
+ "registered_user": "Windows User",
236
+ "serial_number": "00261-40000-00000-AA383",
237
+ "service_pack_major_version": 0,
238
+ "service_pack_minor_version": 0,
239
+ "size_stored_in_paging_files": "1966080",
240
+ "status": "OK",
241
+ "suite_mask": 272,
242
+ "system_device": "\\Device\\HarddiskVolume1",
243
+ "system_directory": "C:\\Windows\\system32",
244
+ "system_drive": "C:",
245
+ "total_visible_memory_size": "8388148",
246
+ "version": "6.3.9600",
247
+ "windows_directory": "C:\\Windows"
248
+ },
249
+ "product_type": "Workstation",
250
+ "release": "6.3.9600",
251
+ "server_core": false,
252
+ "system_type": "Desktop",
253
+ "version": "6.3.9600 Build 9600"
254
+ },
255
+ "keys": {
256
+ "ssh": {
257
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
258
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
259
+ }
260
+ },
261
+ "languages": {
262
+ "powershell": {
263
+ "build_version": "10.0.14409.1018",
264
+ "clr_version": "4.0.30319.42000",
265
+ "compatible_versions": [
266
+ "1.0",
267
+ "2.0",
268
+ "3.0",
269
+ "4.0",
270
+ "5.0",
271
+ "5.1.14409.1018"
272
+ ],
273
+ "remoting_protocol_version": "2.3",
274
+ "serialization_version": "1.1.0.1",
275
+ "version": "5.1.14409.1018",
276
+ "ws_man_stack_version": "3.0"
277
+ },
278
+ "ruby": {
279
+ "bin_dir": "/usr/local/bin",
280
+ "gem_bin": "/usr/local/bin/gem",
281
+ "gems_dir": "/usr/local/gems",
282
+ "ruby_bin": "/usr/local/bin/ruby"
283
+ }
284
+ },
285
+ "macaddress": "11:11:11:11:11:11",
286
+ "machinename": "Fauxhai",
287
+ "memory": {
288
+ "total": "1048576kB"
289
+ },
290
+ "network": {
291
+ "default_gateway": "10.0.0.1",
292
+ "default_interface": "0xe",
293
+ "interfaces": {
294
+ "0xe": {
295
+ "addresses": {
296
+ "10.0.0.2": {
297
+ "broadcast": "10.0.0.255",
298
+ "family": "inet",
299
+ "netmask": "255.255.255.0",
300
+ "prefixlen": "24"
301
+ },
302
+ "11:11:11:11:11:11": {
303
+ "family": "lladdr"
304
+ }
305
+ },
306
+ "arp": {
307
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
308
+ },
309
+ "configuration": {
310
+ "caption": "[00000012] Ethernet Adapter",
311
+ "database_path": "%SystemRoot%\\System32\\drivers\\etc",
312
+ "default_ip_gateway": [
313
+ "default_gateway"
314
+ ],
315
+ "description": "Ethernet Adapter",
316
+ "dhcp_enabled": false,
317
+ "dns_domain_suffix_search_order": [],
318
+ "dns_enabled_for_wins_resolution": false,
319
+ "dns_host_name": "Fauxhai",
320
+ "domain_dns_registration_enabled": false,
321
+ "full_dns_registration_enabled": true,
322
+ "gateway_cost_metric": [
323
+ 0
324
+ ],
325
+ "index": 12,
326
+ "interface_index": 14,
327
+ "ip_address": [
328
+ "10.0.0.2"
329
+ ],
330
+ "ip_connection_metric": 5,
331
+ "ip_enabled": true,
332
+ "ip_filter_security_enabled": false,
333
+ "ip_sec_permit_ip_protocols": [],
334
+ "ip_sec_permit_tcp_ports": [],
335
+ "ip_sec_permit_udp_ports": [],
336
+ "ip_subnet": [
337
+ "255.255.255.0",
338
+ "64"
339
+ ],
340
+ "mac_address": "11:11:11:11:11:11",
341
+ "service_name": "netkvm",
342
+ "setting_id": "{00000000-0000-0000-0000-000000000000}",
343
+ "tcp_window_size": 64240,
344
+ "tcpip_netbios_options": 0,
345
+ "wins_enable_lm_hosts_lookup": true,
346
+ "wins_scope_id": ""
347
+ },
348
+ "counters": {},
349
+ "encapsulation": "Ethernet",
350
+ "instance": {
351
+ "adapter_type": "Ethernet 802.3",
352
+ "adapter_type_id": 0,
353
+ "availability": 3,
354
+ "caption": "[00000012] Ethernet Adapter",
355
+ "config_manager_error_code": 0,
356
+ "config_manager_user_config": false,
357
+ "creation_class_name": "Win32_NetworkAdapter",
358
+ "description": "Ethernet Adapter",
359
+ "device_id": "12",
360
+ "guid": "{00000000-0000-0000-0000-000000000000}",
361
+ "index": 12,
362
+ "installed": true,
363
+ "interface_index": 14,
364
+ "mac_address": "11:11:11:11:11:11",
365
+ "manufacturer": "",
366
+ "max_number_controlled": 0,
367
+ "name": "Ethernet Adapter",
368
+ "net_connection_id": "Ethernet",
369
+ "net_connection_status": 2,
370
+ "net_enabled": true,
371
+ "physical_adapter": true,
372
+ "pnp_device_id": "PCI\\VEN_0000&DEV_0000&SUBSYS_000000000&REV_00\\0&0000000000&00",
373
+ "power_management_supported": false,
374
+ "product_name": "Ethernet Adapter",
375
+ "service_name": "netkvm",
376
+ "speed": "10000000000",
377
+ "system_creation_class_name": "Win32_ComputerSystem",
378
+ "system_name": "Fauxhai",
379
+ "time_of_last_reset": "20000101000001.000000+000"
380
+ },
381
+ "type": "Ethernet 802.3"
382
+ }
383
+ }
384
+ },
385
+ "ohai_time": 1548885810.973912,
386
+ "os": "windows",
387
+ "os_version": "6.3.9600",
388
+ "packages": {
389
+ "Chef Client v14.10.9": {
390
+ "installdate": "20190130",
391
+ "publisher": "Chef Software, Inc.",
392
+ "version": "14.10.9.1"
393
+ }
394
+ },
395
+ "platform": "windows",
396
+ "platform_family": "windows",
397
+ "platform_version": "6.3.9600",
398
+ "root_group": "Administrators",
399
+ "shard_seed": 176560041,
400
+ "time": {
401
+ "timezone": "GMT"
402
+ },
403
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
404
+ "uptime_seconds": 2646450,
405
+ "virtualization": {
406
+ "systems": {}
407
+ }
408
+ }
@@ -0,0 +1,44 @@
1
+ require 'ohai'
2
+ require 'ohai/plugins/chef'
3
+
4
+ module Fauxhai
5
+ class Runner
6
+ def initialize(args)
7
+ @system = Ohai::System.new
8
+ @system.all_plugins
9
+
10
+ case @system.data['platform']
11
+ when 'windows', :windows
12
+ require 'fauxhai/runner/windows'
13
+ self.singleton_class.send :include, ::Fauxhai::Runner::Windows
14
+ else
15
+ require 'fauxhai/runner/default'
16
+ self.singleton_class.send :include, ::Fauxhai::Runner::Default
17
+ end
18
+
19
+ result = @system.data.dup.delete_if { |k, v| !whitelist_attributes.include?(k) }.merge(
20
+ 'languages' => languages,
21
+ 'counters' => counters,
22
+ 'current_user' => current_user,
23
+ 'domain' => domain,
24
+ 'hostname' => hostname,
25
+ 'machinename' => hostname,
26
+ 'fqdn' => fqdn,
27
+ 'ipaddress' => ipaddress,
28
+ 'keys' => keys,
29
+ 'macaddress' => macaddress,
30
+ 'network' => network,
31
+ 'uptime' => uptime,
32
+ 'uptime_seconds' => uptime_seconds,
33
+ 'idle' => uptime,
34
+ 'idletime_seconds' => uptime_seconds,
35
+ 'cpu' => cpu,
36
+ 'memory' => memory,
37
+ 'virtualization' => virtualization,
38
+ 'time' => time
39
+ )
40
+
41
+ puts JSON.pretty_generate(result.sort.to_h)
42
+ end
43
+ end
44
+ end