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,295 @@
1
+ {
2
+ "chef_packages": {
3
+ "chef": {
4
+ "chef_root": "/usr/local/lib/ruby/gems/2.4/gems/chef-14.3.37/lib",
5
+ "version": "14.3.37"
6
+ },
7
+ "ohai": {
8
+ "ohai_root": "/usr/local/lib/ruby/gems/2.4/gems/ohai-14.3.0/lib/ohai",
9
+ "version": "14.3.0"
10
+ }
11
+ },
12
+ "command": {
13
+ "ps": "ps -axww"
14
+ },
15
+ "counters": {
16
+ "network": {
17
+ "interfaces": {
18
+ "em0": {
19
+ "rx": {
20
+ "bytes": 0,
21
+ "compressed": 0,
22
+ "drop": 0,
23
+ "errors": 0,
24
+ "frame": 0,
25
+ "multicast": 0,
26
+ "overrun": 0,
27
+ "packets": 0
28
+ },
29
+ "tx": {
30
+ "bytes": 0,
31
+ "carrier": 0,
32
+ "collisions": 0,
33
+ "compressed": 0,
34
+ "drop": 0,
35
+ "errors": 0,
36
+ "overrun": 0,
37
+ "packets": 0
38
+ }
39
+ },
40
+ "lo": {
41
+ "rx": {
42
+ "bytes": 0,
43
+ "drop": 0,
44
+ "errors": 0,
45
+ "overrun": 0,
46
+ "packets": 0
47
+ },
48
+ "tx": {
49
+ "bytes": 0,
50
+ "carrier": 0,
51
+ "collisions": 0,
52
+ "drop": 0,
53
+ "errors": 0,
54
+ "packets": 0,
55
+ "queuelen": "1"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ },
61
+ "cpu": {
62
+ "cores": 1,
63
+ "real": 1,
64
+ "total": 1
65
+ },
66
+ "current_user": "fauxhai",
67
+ "dmi": {
68
+ "dmidecode_version": "3.1"
69
+ },
70
+ "domain": "local",
71
+ "filesystem": {
72
+ "/dev/wd0a": {
73
+ "kb_available": "918140",
74
+ "kb_size": "1125820",
75
+ "kb_used": "151392",
76
+ "mount": "/",
77
+ "percent_used": "14%"
78
+ },
79
+ "/dev/wd0d": {
80
+ "kb_available": "1482524",
81
+ "kb_size": "1560572",
82
+ "kb_used": "20",
83
+ "mount": "/tmp",
84
+ "percent_used": "0%"
85
+ },
86
+ "/dev/wd0e": {
87
+ "kb_available": "2184572",
88
+ "kb_size": "2312028",
89
+ "kb_used": "11856",
90
+ "mount": "/var",
91
+ "percent_used": "1%"
92
+ },
93
+ "/dev/wd0f": {
94
+ "kb_available": "1118276",
95
+ "kb_size": "2638620",
96
+ "kb_used": "1388416",
97
+ "mount": "/usr",
98
+ "percent_used": "55%"
99
+ },
100
+ "/dev/wd0g": {
101
+ "kb_available": "1088508",
102
+ "kb_size": "1528796",
103
+ "kb_used": "363852",
104
+ "mount": "/usr/X11R6",
105
+ "percent_used": "25%"
106
+ },
107
+ "/dev/wd0h": {
108
+ "kb_available": "4155176",
109
+ "kb_size": "4896444",
110
+ "kb_used": "496448",
111
+ "mount": "/usr/local",
112
+ "percent_used": "11%"
113
+ },
114
+ "/dev/wd0i": {
115
+ "kb_available": "2274584",
116
+ "kb_size": "2394300",
117
+ "kb_used": "4",
118
+ "mount": "/usr/src",
119
+ "percent_used": "0%"
120
+ },
121
+ "/dev/wd0j": {
122
+ "kb_available": "6510336",
123
+ "kb_size": "6852988",
124
+ "kb_used": "4",
125
+ "mount": "/usr/obj",
126
+ "percent_used": "0%"
127
+ },
128
+ "/dev/wd0k": {
129
+ "kb_available": "7462920",
130
+ "kb_size": "7855708",
131
+ "kb_used": "4",
132
+ "mount": "/home",
133
+ "percent_used": "0%"
134
+ }
135
+ },
136
+ "fqdn": "fauxhai.local",
137
+ "hostname": "Fauxhai",
138
+ "idle": "30 days 15 hours 07 minutes 30 seconds",
139
+ "idletime_seconds": 2646450,
140
+ "ipaddress": "10.0.0.2",
141
+ "kernel": {
142
+ "machine": "amd64",
143
+ "name": "OpenBSD",
144
+ "os": "OpenBSD",
145
+ "processor": "amd64",
146
+ "release": "6.2",
147
+ "securelevel": [
148
+ ],
149
+ "version": "GENERIC.MP#134"
150
+ },
151
+ "keys": {
152
+ "ssh": {
153
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
154
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
155
+ }
156
+ },
157
+ "languages": {
158
+ "powershell": null,
159
+ "ruby": {
160
+ "bin_dir": "/usr/local/bin",
161
+ "gem_bin": "/usr/local/bin/gem",
162
+ "gems_dir": "/usr/local/gems",
163
+ "host": "x86_64-unknown-openbsd6.2",
164
+ "host_cpu": "x86_64",
165
+ "host_os": "openbsd6.2",
166
+ "host_vendor": "unknown",
167
+ "platform": "x86_64-openbsd",
168
+ "release_date": "2017-09-14",
169
+ "ruby_bin": "/usr/local/bin/ruby",
170
+ "target": "x86_64-unknown-openbsd6.2",
171
+ "target_cpu": "x86_64",
172
+ "target_os": "openbsd6.2",
173
+ "target_vendor": "unknown",
174
+ "version": "2.4.2"
175
+ }
176
+ },
177
+ "macaddress": "11:11:11:11:11:11",
178
+ "machinename": "Fauxhai",
179
+ "memory": {
180
+ "total": "1048576kB"
181
+ },
182
+ "network": {
183
+ "default_gateway": "10.0.0.1",
184
+ "default_interface": "em0",
185
+ "interfaces": {
186
+ "em0": {
187
+ "addresses": {
188
+ "10.0.0.2": {
189
+ "broadcast": "10.0.0.255",
190
+ "family": "inet",
191
+ "ip_scope": "RFC1918 PRIVATE",
192
+ "netmask": "255.255.255.0",
193
+ "prefixlen": "24",
194
+ "scope": "Global"
195
+ },
196
+ "11:11:11:11:11:11": {
197
+ "family": "lladdr"
198
+ },
199
+ "fe80::11:1111:1111:1111": {
200
+ "family": "inet6",
201
+ "ip_scope": "LINK LOCAL UNICAST",
202
+ "prefixlen": "64",
203
+ "scope": "Link",
204
+ "tags": [
205
+ ]
206
+ }
207
+ },
208
+ "arp": {
209
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
210
+ },
211
+ "encapsulation": "Ethernet",
212
+ "flags": [
213
+ "BROADCAST",
214
+ "MULTICAST",
215
+ "UP",
216
+ "LOWER_UP"
217
+ ],
218
+ "mtu": "1500",
219
+ "number": "0",
220
+ "ring_params": {
221
+ },
222
+ "routes": [
223
+ {
224
+ "destination": "default",
225
+ "family": "inet",
226
+ "via": "10.0.0.1"
227
+ },
228
+ {
229
+ "destination": "10.0.0.0/24",
230
+ "family": "inet",
231
+ "proto": "kernel",
232
+ "scope": "link",
233
+ "src": "10.0.0.2"
234
+ },
235
+ {
236
+ "destination": "fe80::/64",
237
+ "family": "inet6",
238
+ "metric": "256",
239
+ "proto": "kernel"
240
+ }
241
+ ],
242
+ "state": "up",
243
+ "type": "em"
244
+ },
245
+ "lo": {
246
+ "addresses": {
247
+ "127.0.0.1": {
248
+ "family": "inet",
249
+ "ip_scope": "LOOPBACK",
250
+ "netmask": "255.0.0.0",
251
+ "prefixlen": "8",
252
+ "scope": "Node"
253
+ },
254
+ "::1": {
255
+ "family": "inet6",
256
+ "ip_scope": "LINK LOCAL LOOPBACK",
257
+ "prefixlen": "128",
258
+ "scope": "Node",
259
+ "tags": [
260
+ ]
261
+ }
262
+ },
263
+ "encapsulation": "Loopback",
264
+ "flags": [
265
+ "LOOPBACK",
266
+ "UP",
267
+ "LOWER_UP"
268
+ ],
269
+ "mtu": "65536",
270
+ "state": "unknown"
271
+ }
272
+ }
273
+ },
274
+ "ohai_time": 1532045240.266272,
275
+ "os": "openbsd",
276
+ "os_version": "6.2",
277
+ "platform": "openbsd",
278
+ "platform_family": "openbsd",
279
+ "platform_version": "6.2",
280
+ "root_group": "wheel",
281
+ "shells": [
282
+ "/bin/sh",
283
+ "/bin/csh",
284
+ "/bin/ksh"
285
+ ],
286
+ "time": {
287
+ "timezone": "GMT"
288
+ },
289
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
290
+ "uptime_seconds": 2646450,
291
+ "virtualization": {
292
+ "systems": {
293
+ }
294
+ }
295
+ }