fauxhai 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +16 -1
- data/CONTRIBUTING.md +47 -0
- data/README.md +1 -37
- data/fauxhai.gemspec +3 -2
- data/lib/fauxhai/mocker.rb +14 -3
- data/lib/fauxhai/platforms/centos/5.9.json +757 -0
- data/lib/fauxhai/platforms/centos/6.4.json +284 -0
- data/lib/fauxhai/platforms/debian/7.0.json +6 -0
- data/lib/fauxhai/platforms/debian/7.1.json +591 -0
- data/lib/fauxhai/platforms/fedora/18.json +463 -0
- data/lib/fauxhai/platforms/freebsd/9.1.json +593 -0
- data/lib/fauxhai/platforms/gentoo/2.1.json +401 -0
- data/lib/fauxhai/platforms/suse/11.03.json +578 -0
- data/lib/fauxhai/runner.rb +1 -0
- metadata +22 -39
- data/.ruby-version +0 -1
@@ -0,0 +1,463 @@
|
|
1
|
+
{
|
2
|
+
"kernel": {
|
3
|
+
"name": "Linux",
|
4
|
+
"release": "3.8.4-202.fc18.i686.PAE",
|
5
|
+
"version": "#1 SMP Thu Mar 21 17:14:12 UTC 2013",
|
6
|
+
"machine": "i686",
|
7
|
+
"modules": {
|
8
|
+
"nf_conntrack_netbios_ns": {
|
9
|
+
"size": "12585",
|
10
|
+
"refcount": "0"
|
11
|
+
},
|
12
|
+
"nf_conntrack_broadcast": {
|
13
|
+
"size": "12487",
|
14
|
+
"refcount": "1"
|
15
|
+
},
|
16
|
+
"ipt_MASQUERADE": {
|
17
|
+
"size": "12760",
|
18
|
+
"refcount": "1"
|
19
|
+
},
|
20
|
+
"ip6table_mangle": {
|
21
|
+
"size": "12620",
|
22
|
+
"refcount": "1"
|
23
|
+
},
|
24
|
+
"ip6t_REJECT": {
|
25
|
+
"size": "12826",
|
26
|
+
"refcount": "2"
|
27
|
+
},
|
28
|
+
"nf_conntrack_ipv6": {
|
29
|
+
"size": "18318",
|
30
|
+
"refcount": "23"
|
31
|
+
},
|
32
|
+
"nf_defrag_ipv6": {
|
33
|
+
"size": "17824",
|
34
|
+
"refcount": "1"
|
35
|
+
},
|
36
|
+
"iptable_nat": {
|
37
|
+
"size": "12867",
|
38
|
+
"refcount": "1"
|
39
|
+
},
|
40
|
+
"nf_nat_ipv4": {
|
41
|
+
"size": "13039",
|
42
|
+
"refcount": "1"
|
43
|
+
},
|
44
|
+
"nf_nat": {
|
45
|
+
"size": "24669",
|
46
|
+
"refcount": "3"
|
47
|
+
},
|
48
|
+
"iptable_mangle": {
|
49
|
+
"size": "12615",
|
50
|
+
"refcount": "1"
|
51
|
+
},
|
52
|
+
"nf_conntrack_ipv4": {
|
53
|
+
"size": "14320",
|
54
|
+
"refcount": "20"
|
55
|
+
},
|
56
|
+
"nf_defrag_ipv4": {
|
57
|
+
"size": "12601",
|
58
|
+
"refcount": "1"
|
59
|
+
},
|
60
|
+
"xt_conntrack": {
|
61
|
+
"size": "12664",
|
62
|
+
"refcount": "42"
|
63
|
+
},
|
64
|
+
"nf_conntrack": {
|
65
|
+
"size": "72168",
|
66
|
+
"refcount": "9"
|
67
|
+
},
|
68
|
+
"ebtable_filter": {
|
69
|
+
"size": "12715",
|
70
|
+
"refcount": "0"
|
71
|
+
},
|
72
|
+
"ebtables": {
|
73
|
+
"size": "21315",
|
74
|
+
"refcount": "1"
|
75
|
+
},
|
76
|
+
"ip6table_filter": {
|
77
|
+
"size": "12711",
|
78
|
+
"refcount": "1"
|
79
|
+
},
|
80
|
+
"ip6_tables": {
|
81
|
+
"size": "17634",
|
82
|
+
"refcount": "2"
|
83
|
+
},
|
84
|
+
"ppdev": {
|
85
|
+
"size": "17363",
|
86
|
+
"refcount": "0"
|
87
|
+
},
|
88
|
+
"parport_pc": {
|
89
|
+
"size": "27403",
|
90
|
+
"refcount": "0"
|
91
|
+
},
|
92
|
+
"parport": {
|
93
|
+
"size": "39143",
|
94
|
+
"refcount": "2"
|
95
|
+
},
|
96
|
+
"i2c_piix4": {
|
97
|
+
"size": "17682",
|
98
|
+
"refcount": "0"
|
99
|
+
},
|
100
|
+
"e1000": {
|
101
|
+
"size": "132831",
|
102
|
+
"refcount": "0"
|
103
|
+
},
|
104
|
+
"i2c_core": {
|
105
|
+
"size": "28449",
|
106
|
+
"refcount": "1"
|
107
|
+
},
|
108
|
+
"microcode": {
|
109
|
+
"size": "18726",
|
110
|
+
"refcount": "0"
|
111
|
+
},
|
112
|
+
"vboxsf": {
|
113
|
+
"size": "42541",
|
114
|
+
"refcount": "1"
|
115
|
+
},
|
116
|
+
"vboxguest": {
|
117
|
+
"size": "188485",
|
118
|
+
"refcount": "2"
|
119
|
+
}
|
120
|
+
},
|
121
|
+
"os": "GNU/Linux"
|
122
|
+
},
|
123
|
+
"os": "linux",
|
124
|
+
"os_version": "3.8.4-202.fc18.i686.PAE",
|
125
|
+
"command": {
|
126
|
+
"ps": "ps -ef"
|
127
|
+
},
|
128
|
+
"ohai_time": 1370732302.4638762,
|
129
|
+
"platform": "fedora",
|
130
|
+
"platform_version": "18",
|
131
|
+
"platform_family": "fedora",
|
132
|
+
"dmi": {
|
133
|
+
},
|
134
|
+
"filesystem": {
|
135
|
+
"devtmpfs": {
|
136
|
+
"kb_size": "375372",
|
137
|
+
"kb_used": "0",
|
138
|
+
"kb_available": "375372",
|
139
|
+
"percent_used": "0%",
|
140
|
+
"mount": "/dev",
|
141
|
+
"fs_type": "devtmpfs",
|
142
|
+
"mount_options": [
|
143
|
+
"rw",
|
144
|
+
"nosuid",
|
145
|
+
"seclabel",
|
146
|
+
"size=375372k",
|
147
|
+
"nr_inodes=93843",
|
148
|
+
"mode=755"
|
149
|
+
]
|
150
|
+
},
|
151
|
+
"tmpfs": {
|
152
|
+
"kb_size": "383868",
|
153
|
+
"kb_used": "0",
|
154
|
+
"kb_available": "383868",
|
155
|
+
"percent_used": "0%",
|
156
|
+
"mount": "/tmp",
|
157
|
+
"fs_type": "tmpfs",
|
158
|
+
"mount_options": [
|
159
|
+
"rw",
|
160
|
+
"seclabel"
|
161
|
+
]
|
162
|
+
},
|
163
|
+
"/dev/mapper/fedora-root": {
|
164
|
+
"kb_size": "29550460",
|
165
|
+
"kb_used": "809040",
|
166
|
+
"kb_available": "27233684",
|
167
|
+
"percent_used": "3%",
|
168
|
+
"mount": "/",
|
169
|
+
"fs_type": "ext4",
|
170
|
+
"mount_options": [
|
171
|
+
"rw",
|
172
|
+
"relatime",
|
173
|
+
"seclabel",
|
174
|
+
"data=ordered"
|
175
|
+
],
|
176
|
+
"uuid": "a24f47a4-946e-45c2-99fa-8c956aa3d0fb"
|
177
|
+
},
|
178
|
+
"/dev/sda1": {
|
179
|
+
"kb_size": "487652",
|
180
|
+
"kb_used": "39709",
|
181
|
+
"kb_available": "422343",
|
182
|
+
"percent_used": "9%",
|
183
|
+
"mount": "/boot",
|
184
|
+
"fs_type": "ext4",
|
185
|
+
"mount_options": [
|
186
|
+
"rw",
|
187
|
+
"relatime",
|
188
|
+
"seclabel",
|
189
|
+
"data=ordered"
|
190
|
+
],
|
191
|
+
"uuid": "85e5935b-73c2-4449-85cb-94abdc2c1f8d"
|
192
|
+
},
|
193
|
+
"none": {
|
194
|
+
"kb_size": "244277768",
|
195
|
+
"kb_used": "98776704",
|
196
|
+
"kb_available": "145501064",
|
197
|
+
"percent_used": "41%",
|
198
|
+
"mount": "/vagrant",
|
199
|
+
"fs_type": "vboxsf",
|
200
|
+
"mount_options": [
|
201
|
+
"rw",
|
202
|
+
"nodev",
|
203
|
+
"relatime"
|
204
|
+
]
|
205
|
+
},
|
206
|
+
"proc": {
|
207
|
+
"mount": "/proc",
|
208
|
+
"fs_type": "proc",
|
209
|
+
"mount_options": [
|
210
|
+
"rw",
|
211
|
+
"nosuid",
|
212
|
+
"nodev",
|
213
|
+
"noexec",
|
214
|
+
"relatime"
|
215
|
+
]
|
216
|
+
},
|
217
|
+
"sysfs": {
|
218
|
+
"mount": "/sys",
|
219
|
+
"fs_type": "sysfs",
|
220
|
+
"mount_options": [
|
221
|
+
"rw",
|
222
|
+
"nosuid",
|
223
|
+
"nodev",
|
224
|
+
"noexec",
|
225
|
+
"relatime",
|
226
|
+
"seclabel"
|
227
|
+
]
|
228
|
+
},
|
229
|
+
"securityfs": {
|
230
|
+
"mount": "/sys/kernel/security",
|
231
|
+
"fs_type": "securityfs",
|
232
|
+
"mount_options": [
|
233
|
+
"rw",
|
234
|
+
"nosuid",
|
235
|
+
"nodev",
|
236
|
+
"noexec",
|
237
|
+
"relatime"
|
238
|
+
]
|
239
|
+
},
|
240
|
+
"selinuxfs": {
|
241
|
+
"mount": "/sys/fs/selinux",
|
242
|
+
"fs_type": "selinuxfs",
|
243
|
+
"mount_options": [
|
244
|
+
"rw",
|
245
|
+
"relatime"
|
246
|
+
]
|
247
|
+
},
|
248
|
+
"devpts": {
|
249
|
+
"mount": "/dev/pts",
|
250
|
+
"fs_type": "devpts",
|
251
|
+
"mount_options": [
|
252
|
+
"rw",
|
253
|
+
"nosuid",
|
254
|
+
"noexec",
|
255
|
+
"relatime",
|
256
|
+
"seclabel",
|
257
|
+
"gid=5",
|
258
|
+
"mode=620",
|
259
|
+
"ptmxmode=000"
|
260
|
+
]
|
261
|
+
},
|
262
|
+
"cgroup": {
|
263
|
+
"mount": "/sys/fs/cgroup/perf_event",
|
264
|
+
"fs_type": "cgroup",
|
265
|
+
"mount_options": [
|
266
|
+
"rw",
|
267
|
+
"nosuid",
|
268
|
+
"nodev",
|
269
|
+
"noexec",
|
270
|
+
"relatime",
|
271
|
+
"perf_event"
|
272
|
+
]
|
273
|
+
},
|
274
|
+
"systemd-1": {
|
275
|
+
"mount": "/proc/sys/fs/binfmt_misc",
|
276
|
+
"fs_type": "autofs",
|
277
|
+
"mount_options": [
|
278
|
+
"rw",
|
279
|
+
"relatime",
|
280
|
+
"fd=28",
|
281
|
+
"pgrp=1",
|
282
|
+
"timeout=300",
|
283
|
+
"minproto=5",
|
284
|
+
"maxproto=5",
|
285
|
+
"direct"
|
286
|
+
]
|
287
|
+
},
|
288
|
+
"hugetlbfs": {
|
289
|
+
"mount": "/dev/hugepages",
|
290
|
+
"fs_type": "hugetlbfs",
|
291
|
+
"mount_options": [
|
292
|
+
"rw",
|
293
|
+
"relatime",
|
294
|
+
"seclabel"
|
295
|
+
]
|
296
|
+
},
|
297
|
+
"mqueue": {
|
298
|
+
"mount": "/dev/mqueue",
|
299
|
+
"fs_type": "mqueue",
|
300
|
+
"mount_options": [
|
301
|
+
"rw",
|
302
|
+
"relatime",
|
303
|
+
"seclabel"
|
304
|
+
]
|
305
|
+
},
|
306
|
+
"configfs": {
|
307
|
+
"mount": "/sys/kernel/config",
|
308
|
+
"fs_type": "configfs",
|
309
|
+
"mount_options": [
|
310
|
+
"rw",
|
311
|
+
"relatime"
|
312
|
+
]
|
313
|
+
},
|
314
|
+
"debugfs": {
|
315
|
+
"mount": "/sys/kernel/debug",
|
316
|
+
"fs_type": "debugfs",
|
317
|
+
"mount_options": [
|
318
|
+
"rw",
|
319
|
+
"relatime"
|
320
|
+
]
|
321
|
+
},
|
322
|
+
"/dev/sda2": {
|
323
|
+
"fs_type": "LVM2_member",
|
324
|
+
"uuid": "u1IOAZ-dSJw-2Vbh-Kr14-6exW-qYZT-w3fibZ"
|
325
|
+
},
|
326
|
+
"/dev/mapper/fedora-swap": {
|
327
|
+
"fs_type": "swap",
|
328
|
+
"uuid": "20d2931f-4efb-4964-b7be-75e1274ee074"
|
329
|
+
},
|
330
|
+
"rootfs": {
|
331
|
+
"mount": "/",
|
332
|
+
"fs_type": "rootfs",
|
333
|
+
"mount_options": [
|
334
|
+
"rw"
|
335
|
+
]
|
336
|
+
}
|
337
|
+
},
|
338
|
+
"languages": {
|
339
|
+
"ruby": {
|
340
|
+
"platform": "i386-linux",
|
341
|
+
"version": "1.9.3",
|
342
|
+
"release_date": "2013-02-22",
|
343
|
+
"target": "i686-redhat-linux-gnu",
|
344
|
+
"target_cpu": "i386",
|
345
|
+
"target_vendor": "redhat",
|
346
|
+
"target_os": "linux",
|
347
|
+
"host": "i686-redhat-linux-gnu",
|
348
|
+
"host_cpu": "i686",
|
349
|
+
"host_os": "linux-gnu",
|
350
|
+
"host_vendor": "redhat",
|
351
|
+
"bin_dir": "/usr/local/bin",
|
352
|
+
"ruby_bin": "/usr/local/bin/ruby",
|
353
|
+
"gems_dir": "/usr/local/gems",
|
354
|
+
"gem_bin": "/usr/local/bin/gem"
|
355
|
+
}
|
356
|
+
},
|
357
|
+
"chef_packages": {
|
358
|
+
"chef": {
|
359
|
+
"version": "11.4.0",
|
360
|
+
"chef_root": "/usr/local/gems/chef-11.4.0/lib"
|
361
|
+
},
|
362
|
+
"ohai": {
|
363
|
+
"version": "6.16.0",
|
364
|
+
"ohai_root": "/usr/local/gems/ohai-6.16.0/lib/ohai"
|
365
|
+
}
|
366
|
+
},
|
367
|
+
"counters": {
|
368
|
+
"network": {
|
369
|
+
"interfaces": {
|
370
|
+
"eth0": {
|
371
|
+
"rx": {
|
372
|
+
"bytes": "0",
|
373
|
+
"packets": "0",
|
374
|
+
"errors": "0",
|
375
|
+
"drop": 0,
|
376
|
+
"overrun": 0,
|
377
|
+
"frame": 0,
|
378
|
+
"compressed": 0,
|
379
|
+
"multicast": 0
|
380
|
+
},
|
381
|
+
"tx": {
|
382
|
+
"bytes": "342",
|
383
|
+
"packets": "0",
|
384
|
+
"errors": "0",
|
385
|
+
"drop": 0,
|
386
|
+
"overrun": 0,
|
387
|
+
"collisions": "0",
|
388
|
+
"carrier": 0,
|
389
|
+
"compressed": 0
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
},
|
395
|
+
"current_user": "fauxhai",
|
396
|
+
"domain": "local",
|
397
|
+
"etc": {
|
398
|
+
"passwd": {
|
399
|
+
"fauxhai": {
|
400
|
+
"dir": "/home/fauxhai",
|
401
|
+
"gid": 0,
|
402
|
+
"uid": 0,
|
403
|
+
"shell": "/bin/bash",
|
404
|
+
"gecos": "Fauxhai"
|
405
|
+
}
|
406
|
+
},
|
407
|
+
"group": {
|
408
|
+
"fauxhai": {
|
409
|
+
"gid": 0,
|
410
|
+
"members": [
|
411
|
+
"fauxhai"
|
412
|
+
]
|
413
|
+
}
|
414
|
+
}
|
415
|
+
},
|
416
|
+
"hostname": "Fauxhai",
|
417
|
+
"fqdn": "fauxhai.local",
|
418
|
+
"ipaddress": "10.0.0.2",
|
419
|
+
"keys": {
|
420
|
+
"ssh": {
|
421
|
+
"host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
|
422
|
+
"host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
|
423
|
+
}
|
424
|
+
},
|
425
|
+
"macaddress": "11:11:11:11:11:11",
|
426
|
+
"network": {
|
427
|
+
"default_gateway": "10.0.0.1",
|
428
|
+
"default_interface": "eth0",
|
429
|
+
"eth0": {
|
430
|
+
"addresses": {
|
431
|
+
"10.0.0.2": {
|
432
|
+
"broadcast": "10.0.0.255",
|
433
|
+
"family": "inet",
|
434
|
+
"netmask": "255.255.255.0",
|
435
|
+
"prefixlen": "23",
|
436
|
+
"scope": "Global"
|
437
|
+
}
|
438
|
+
},
|
439
|
+
"arp": {
|
440
|
+
"10.0.0.1": "fe:ff:ff:ff:ff:ff"
|
441
|
+
},
|
442
|
+
"encapsulation": "Ethernet",
|
443
|
+
"flags": [
|
444
|
+
"BROADCAST",
|
445
|
+
"MULTICAST",
|
446
|
+
"UP",
|
447
|
+
"LOWER_UP"
|
448
|
+
],
|
449
|
+
"mtu": "1500",
|
450
|
+
"number": "0",
|
451
|
+
"routes": {
|
452
|
+
"10.0.0.0/255": {
|
453
|
+
"scope": "link",
|
454
|
+
"src": "10.0.0.2"
|
455
|
+
}
|
456
|
+
},
|
457
|
+
"state": "up",
|
458
|
+
"type": "eth"
|
459
|
+
}
|
460
|
+
},
|
461
|
+
"uptime": "30 days 15 hours 07 minutes 30 seconds",
|
462
|
+
"uptime_seconds": 2646450
|
463
|
+
}
|