fauxhai 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/CONTRIBUTING.md +2 -2
  4. data/fauxhai.gemspec +2 -1
  5. data/lib/fauxhai/platforms/amazon/2012.09.json +4 -0
  6. data/lib/fauxhai/platforms/centos/5.8.json +4 -0
  7. data/lib/fauxhai/platforms/centos/5.9.json +4 -0
  8. data/lib/fauxhai/platforms/centos/6.0.json +4 -0
  9. data/lib/fauxhai/platforms/centos/6.2.json +4 -0
  10. data/lib/fauxhai/platforms/centos/6.3.json +4 -0
  11. data/lib/fauxhai/platforms/centos/6.4.json +4 -0
  12. data/lib/fauxhai/platforms/centos/6.5.json +405 -0
  13. data/lib/fauxhai/platforms/debian/6.0.5.json +4 -0
  14. data/lib/fauxhai/platforms/debian/7.0.json +4 -0
  15. data/lib/fauxhai/platforms/debian/7.1.json +4 -0
  16. data/lib/fauxhai/platforms/debian/7.2.json +383 -0
  17. data/lib/fauxhai/platforms/debian/7.4.json +418 -0
  18. data/lib/fauxhai/platforms/fedora/18.json +4 -0
  19. data/lib/fauxhai/platforms/freebsd/9.1.json +4 -0
  20. data/lib/fauxhai/platforms/gentoo/2.1.json +4 -0
  21. data/lib/fauxhai/platforms/mac_os_x/10.6.8.json +4 -0
  22. data/lib/fauxhai/platforms/mac_os_x/10.7.4.json +4 -0
  23. data/lib/fauxhai/platforms/mac_os_x/10.8.2.json +4 -0
  24. data/lib/fauxhai/platforms/omnios/151002.json +4 -0
  25. data/lib/fauxhai/platforms/openbsd/5.4.json +220 -0
  26. data/lib/fauxhai/platforms/opensuse/12.3.json +4 -0
  27. data/lib/fauxhai/platforms/redhat/5.10.json +2783 -0
  28. data/lib/fauxhai/platforms/redhat/5.6.json +2851 -0
  29. data/lib/fauxhai/platforms/redhat/5.7.json +2954 -0
  30. data/lib/fauxhai/platforms/redhat/5.8.json +4 -0
  31. data/lib/fauxhai/platforms/redhat/5.9.json +2783 -0
  32. data/lib/fauxhai/platforms/redhat/6.0.json +2516 -0
  33. data/lib/fauxhai/platforms/redhat/6.1.json +2520 -0
  34. data/lib/fauxhai/platforms/redhat/6.2.json +2587 -0
  35. data/lib/fauxhai/platforms/redhat/6.3.json +2119 -606
  36. data/lib/fauxhai/platforms/redhat/6.4.json +312 -0
  37. data/lib/fauxhai/platforms/redhat/6.5.json +312 -0
  38. data/lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json +4 -0
  39. data/lib/fauxhai/platforms/suse/11.03.json +4 -0
  40. data/lib/fauxhai/platforms/ubuntu/10.04.json +4 -0
  41. data/lib/fauxhai/platforms/ubuntu/12.04.json +4 -0
  42. data/lib/fauxhai/platforms/ubuntu/13.04.json +4 -0
  43. data/lib/fauxhai/platforms/windows/2008R2.json +4 -0
  44. data/lib/fauxhai/runner.rb +9 -1
  45. metadata +19 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3b35d5f04065ca371bc264f8930c18d61c4ff8c
4
- data.tar.gz: 3c9054bb6a623abcecc941e19e46c320a4234736
3
+ metadata.gz: 8bcffdf1524396c0e946e537607dd5607a5a65ca
4
+ data.tar.gz: 75141299b2120af531c1d2469c489099fee1b037
5
5
  SHA512:
6
- metadata.gz: 7a0a168a35f13f9071fbb4f11fc799a9dee674ec34b5c2424f20b91d65ba7284d1c59776b9327e828cae73e050f43330fe3acdcd61cf2fefa3171d79b21a9c11
7
- data.tar.gz: 43b57867bbe85d132df0eb403109dbef4e69d5fef2a4e673569d2a7808a0c2ead5cbc2dd37fbfdc273ad950a3560eecc1de7a0055c0d3a6ce57b664b3443d98e
6
+ metadata.gz: 161d0dd89e991bd7b488f859ad4fcbbfed02e1f0afa957fc061d5b604c7ad3aeadb4f0d9a9037453879687d8b0d9c5f9629ca6d07e04e7952a7063bf493d0f6c
7
+ data.tar.gz: 983065894946c67d2e8dfa1bf43252d238aef3513d893bd6be6142af4f7f6b64a2d657c000a5547b65ffca14a7c9b6c8e67a376b9915db76f4e7c45d3971585f
@@ -1,6 +1,10 @@
1
1
  Fauxhai Changelog
2
2
  =================
3
3
 
4
+ v2.1.0
5
+ ------
6
+ - Add CPU stanza information to all platforms
7
+
4
8
  v2.0.1
5
9
  ------
6
10
  Released 2013-12-12
@@ -37,8 +37,8 @@ Fauxhai is community-maintained and updated. Aside from the initial files, all o
37
37
  9. Copy-paste the contents of the file from `Step 4` into this file and save
38
38
  10. Verify the installation was successful by doing the following:
39
39
 
40
- irb -rubygems -rfauxhai
41
- Fauxhai.mock('platform: [os], version: [version]') # e.g. Fauxhai.mock(platform: 'ubuntu', version: '12.04')
40
+ bundle console
41
+ Fauxhai.mock(platform: '[os]', version: '[version]') # e.g. Fauxhai.mock(platform: 'ubuntu', version: '12.04')
42
42
 
43
43
  As long as that does not throw an error, you're good to go!
44
44
 
@@ -3,12 +3,13 @@ $:.unshift(lib) unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'fauxhai'
6
- spec.version = '2.0.1'
6
+ spec.version = '2.1.0'
7
7
  spec.authors = ['Seth Vargo']
8
8
  spec.email = ['sethvargo@gmail.com']
9
9
  spec.description = %q{Easily mock out ohai data}
10
10
  spec.summary = %q{Fauxhai provides an easy way to mock out your ohai data for testing with chefspec!}
11
11
  spec.homepage = 'https://github.com/customink/fauxhai'
12
+ spec.license = 'MIT'
12
13
 
13
14
  spec.required_ruby_version = '>= 1.9'
14
15
 
@@ -65,6 +65,10 @@
65
65
  "platform": "amazon",
66
66
  "platform_version": "2012.09",
67
67
  "platform_family": "rhel",
68
+ "cpu": {
69
+ "real": 1,
70
+ "total": 1
71
+ },
68
72
  "ohai_time": 1352176490.6813455,
69
73
  "dmi": {
70
74
  },
@@ -325,6 +325,10 @@
325
325
  "command": {
326
326
  "ps": "ps -ef"
327
327
  },
328
+ "cpu": {
329
+ "real": 1,
330
+ "total": 1
331
+ },
328
332
  "ohai_time": 1355198209.604956,
329
333
  "platform": "centos",
330
334
  "platform_version": "5.8",
@@ -325,6 +325,10 @@
325
325
  "command": {
326
326
  "ps": "ps -ef"
327
327
  },
328
+ "cpu": {
329
+ "real": 1,
330
+ "total": 1
331
+ },
328
332
  "ohai_time": 1355198209.604956,
329
333
  "platform": "centos",
330
334
  "platform_version": "5.9",
@@ -138,6 +138,10 @@
138
138
  },
139
139
  "os": "linux",
140
140
  "os_version": "2.6.32-71.el6.x86_64",
141
+ "cpu": {
142
+ "real": 1,
143
+ "total": 1
144
+ },
141
145
  "ohai_time": 1341249933.6599944,
142
146
  "command": {
143
147
  "ps": "ps -ef"
@@ -542,6 +542,10 @@
542
542
  }
543
543
  },
544
544
  "current_user": "fauxhai",
545
+ "cpu": {
546
+ "real": 1,
547
+ "total": 1
548
+ },
545
549
  "ohai_time": 1346615267.80101,
546
550
  "languages": {
547
551
  "ruby": {
@@ -488,6 +488,10 @@
488
488
  "mount": "/vagrant"
489
489
  }
490
490
  },
491
+ "cpu": {
492
+ "real": 1,
493
+ "total": 1
494
+ },
491
495
  "ohai_time": 1346614637.208,
492
496
  "os": "linux",
493
497
  "hostname": "Fauxhai",
@@ -69,6 +69,10 @@
69
69
  "platform": "centos",
70
70
  "platform_version": "6.4",
71
71
  "platform_family": "rhel",
72
+ "cpu": {
73
+ "real": 1,
74
+ "total": 1
75
+ },
72
76
  "ohai_time": 1376536240.9606414,
73
77
  "dmi": {
74
78
  },
@@ -0,0 +1,405 @@
1
+ {
2
+ "kernel": {
3
+ "name": "Linux",
4
+ "release": "2.6.32-431.el6.x86_64",
5
+ "version": "#1 SMP Fri Nov 22 03:15:09 UTC 2013",
6
+ "machine": "x86_64",
7
+ "modules": {
8
+ "ipt_REJECT": {
9
+ "size": "2351",
10
+ "refcount": "2"
11
+ },
12
+ "nf_conntrack_ipv4": {
13
+ "size": "9506",
14
+ "refcount": "2"
15
+ },
16
+ "nf_defrag_ipv4": {
17
+ "size": "1483",
18
+ "refcount": "1"
19
+ },
20
+ "iptable_filter": {
21
+ "size": "2793",
22
+ "refcount": "1"
23
+ },
24
+ "ip_tables": {
25
+ "size": "17831",
26
+ "refcount": "1"
27
+ },
28
+ "ip6t_REJECT": {
29
+ "size": "4628",
30
+ "refcount": "2"
31
+ },
32
+ "nf_conntrack_ipv6": {
33
+ "size": "8748",
34
+ "refcount": "2"
35
+ },
36
+ "nf_defrag_ipv6": {
37
+ "size": "11182",
38
+ "refcount": "1"
39
+ },
40
+ "xt_state": {
41
+ "size": "1492",
42
+ "refcount": "4"
43
+ },
44
+ "nf_conntrack": {
45
+ "size": "79758",
46
+ "refcount": "3"
47
+ },
48
+ "ip6table_filter": {
49
+ "size": "2889",
50
+ "refcount": "1"
51
+ },
52
+ "ip6_tables": {
53
+ "size": "18732",
54
+ "refcount": "1"
55
+ },
56
+ "ipv6": {
57
+ "size": "317340",
58
+ "refcount": "141"
59
+ },
60
+ "hid_hyperv": {
61
+ "size": "4350",
62
+ "refcount": "0"
63
+ },
64
+ "hv_netvsc": {
65
+ "size": "23702",
66
+ "refcount": "0"
67
+ },
68
+ "hv_utils": {
69
+ "size": "9149",
70
+ "refcount": "0"
71
+ },
72
+ "hyperv_fb": {
73
+ "size": "7769",
74
+ "refcount": "1"
75
+ },
76
+ "i2c_piix4": {
77
+ "size": "12608",
78
+ "refcount": "0"
79
+ },
80
+ "i2c_core": {
81
+ "size": "31084",
82
+ "refcount": "1"
83
+ },
84
+ "sg": {
85
+ "size": "29350",
86
+ "refcount": "0"
87
+ },
88
+ "ext4": {
89
+ "size": "374902",
90
+ "refcount": "3"
91
+ },
92
+ "jbd2": {
93
+ "size": "93427",
94
+ "refcount": "1"
95
+ },
96
+ "mbcache": {
97
+ "size": "8193",
98
+ "refcount": "1"
99
+ },
100
+ "sd_mod": {
101
+ "size": "39069",
102
+ "refcount": "3"
103
+ },
104
+ "crc_t10dif": {
105
+ "size": "1541",
106
+ "refcount": "1"
107
+ },
108
+ "hv_storvsc": {
109
+ "size": "11323",
110
+ "refcount": "2"
111
+ },
112
+ "sr_mod": {
113
+ "size": "15177",
114
+ "refcount": "0"
115
+ },
116
+ "cdrom": {
117
+ "size": "39085",
118
+ "refcount": "1"
119
+ },
120
+ "hv_vmbus": {
121
+ "size": "144850",
122
+ "refcount": "5"
123
+ },
124
+ "pata_acpi": {
125
+ "size": "3701",
126
+ "refcount": "0"
127
+ },
128
+ "ata_generic": {
129
+ "size": "3837",
130
+ "refcount": "0"
131
+ },
132
+ "ata_piix": {
133
+ "size": "24601",
134
+ "refcount": "0"
135
+ },
136
+ "dm_mirror": {
137
+ "size": "14384",
138
+ "refcount": "0"
139
+ },
140
+ "dm_region_hash": {
141
+ "size": "12085",
142
+ "refcount": "1"
143
+ },
144
+ "dm_log": {
145
+ "size": "9930",
146
+ "refcount": "2"
147
+ },
148
+ "dm_mod": {
149
+ "size": "84209",
150
+ "refcount": "11"
151
+ }
152
+ },
153
+ "os": "GNU/Linux"
154
+ },
155
+ "os": "linux",
156
+ "os_version": "2.6.32-431.el6.x86_64",
157
+ "lsb": {
158
+ },
159
+ "platform": "centos",
160
+ "platform_version": "6.5",
161
+ "platform_family": "rhel",
162
+ "dmi": {
163
+ },
164
+ "cpu": {
165
+ "real": 1,
166
+ "total": 1
167
+ },
168
+ "ohai_time": 1388461807.0050683,
169
+ "command": {
170
+ "ps": "ps -ef"
171
+ },
172
+ "filesystem": {
173
+ "/dev/mapper/VolGroup-lv_root": {
174
+ "kb_size": "51606140",
175
+ "kb_used": "1055764",
176
+ "kb_available": "47928936",
177
+ "percent_used": "3%",
178
+ "mount": "/",
179
+ "fs_type": "ext4",
180
+ "mount_options": [
181
+ "rw"
182
+ ],
183
+ "uuid": "325c3ba2-cd9b-49df-bec7-1cdbf46bae23"
184
+ },
185
+ "tmpfs": {
186
+ "kb_size": "957280",
187
+ "kb_used": "0",
188
+ "kb_available": "957280",
189
+ "percent_used": "0%",
190
+ "mount": "/dev/shm",
191
+ "fs_type": "tmpfs",
192
+ "mount_options": [
193
+ "rw",
194
+ "rootcontext=\"system_u:object_r:tmpfs_t:s0\""
195
+ ]
196
+ },
197
+ "/dev/sda1": {
198
+ "kb_size": "495844",
199
+ "kb_used": "54334",
200
+ "kb_available": "415910",
201
+ "percent_used": "12%",
202
+ "mount": "/boot",
203
+ "fs_type": "ext4",
204
+ "mount_options": [
205
+ "rw"
206
+ ],
207
+ "uuid": "8e8ea2fb-4332-49ba-93dd-ab08792c0789"
208
+ },
209
+ "/dev/mapper/VolGroup-lv_home": {
210
+ "kb_size": "74933408",
211
+ "kb_used": "184084",
212
+ "kb_available": "70942912",
213
+ "percent_used": "1%",
214
+ "mount": "/home",
215
+ "fs_type": "ext4",
216
+ "mount_options": [
217
+ "rw"
218
+ ],
219
+ "uuid": "42cf9ed8-73a6-43c0-b5d9-bbecda8a995a"
220
+ },
221
+ "proc": {
222
+ "mount": "/proc",
223
+ "fs_type": "proc",
224
+ "mount_options": [
225
+ "rw"
226
+ ]
227
+ },
228
+ "sysfs": {
229
+ "mount": "/sys",
230
+ "fs_type": "sysfs",
231
+ "mount_options": [
232
+ "rw"
233
+ ]
234
+ },
235
+ "devpts": {
236
+ "mount": "/dev/pts",
237
+ "fs_type": "devpts",
238
+ "mount_options": [
239
+ "rw",
240
+ "gid=5",
241
+ "mode=620"
242
+ ]
243
+ },
244
+ "none": {
245
+ "mount": "/proc/sys/fs/binfmt_misc",
246
+ "fs_type": "binfmt_misc",
247
+ "mount_options": [
248
+ "rw"
249
+ ]
250
+ },
251
+ "/dev/sda2": {
252
+ "fs_type": "LVM2_member",
253
+ "uuid": "dalh7h-mNdW-1FYH-f6AW-uCLJ-Ci2p-CdMfnI"
254
+ },
255
+ "/dev/mapper/VolGroup-lv_swap": {
256
+ "fs_type": "swap",
257
+ "uuid": "1cf0e6e1-d491-4585-974a-89ff7bcf8cb4"
258
+ },
259
+ "rootfs": {
260
+ "mount": "/",
261
+ "fs_type": "rootfs",
262
+ "mount_options": [
263
+ "rw"
264
+ ]
265
+ },
266
+ "devtmpfs": {
267
+ "mount": "/dev",
268
+ "fs_type": "devtmpfs",
269
+ "mount_options": [
270
+ "rw",
271
+ "seclabel",
272
+ "relatime",
273
+ "size=948012k",
274
+ "nr_inodes=237003",
275
+ "mode=755"
276
+ ]
277
+ },
278
+ "/proc/bus/usb": {
279
+ "mount": "/proc/bus/usb",
280
+ "fs_type": "usbfs",
281
+ "mount_options": [
282
+ "rw",
283
+ "relatime"
284
+ ]
285
+ }
286
+ },
287
+ "languages": {
288
+ "ruby": {
289
+ "bin_dir": "/usr/local/bin",
290
+ "gem_bin": "/usr/local/bin/gem",
291
+ "gems_dir": "/usr/local/gems",
292
+ "ruby_bin": "/usr/local/bin/ruby"
293
+ }
294
+ },
295
+ "chef_packages": {
296
+ "chef": {
297
+ "version": "11.8.2",
298
+ "chef_root": "/usr/local/gems/chef-11.8.2/lib"
299
+ },
300
+ "ohai": {
301
+ "version": "6.20.0",
302
+ "ohai_root": "/usr/local/gems/ohai-6.20.0/lib/ohai"
303
+ }
304
+ },
305
+ "counters": {
306
+ "network": {
307
+ "interfaces": {
308
+ "eth0": {
309
+ "rx": {
310
+ "bytes": "0",
311
+ "packets": "0",
312
+ "errors": "0",
313
+ "drop": 0,
314
+ "overrun": 0,
315
+ "frame": 0,
316
+ "compressed": 0,
317
+ "multicast": 0
318
+ },
319
+ "tx": {
320
+ "bytes": "342",
321
+ "packets": "0",
322
+ "errors": "0",
323
+ "drop": 0,
324
+ "overrun": 0,
325
+ "collisions": "0",
326
+ "carrier": 0,
327
+ "compressed": 0
328
+ }
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "current_user": "fauxhai",
334
+ "domain": "local",
335
+ "etc": {
336
+ "passwd": {
337
+ "fauxhai": {
338
+ "dir": "/home/fauxhai",
339
+ "gid": 0,
340
+ "uid": 0,
341
+ "shell": "/bin/bash",
342
+ "gecos": "Fauxhai"
343
+ }
344
+ },
345
+ "group": {
346
+ "fauxhai": {
347
+ "gid": 0,
348
+ "members": [
349
+ "fauxhai"
350
+ ]
351
+ }
352
+ }
353
+ },
354
+ "hostname": "Fauxhai",
355
+ "fqdn": "fauxhai.local",
356
+ "ipaddress": "10.0.0.2",
357
+ "keys": {
358
+ "ssh": {
359
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
360
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
361
+ }
362
+ },
363
+ "macaddress": "11:11:11:11:11:11",
364
+ "network": {
365
+ "default_gateway": "10.0.0.1",
366
+ "default_interface": "eth0",
367
+ "settings": {
368
+ },
369
+ "interfaces": {
370
+ "eth0": {
371
+ "addresses": {
372
+ "10.0.0.2": {
373
+ "broadcast": "10.0.0.255",
374
+ "family": "inet",
375
+ "netmask": "255.255.255.0",
376
+ "prefixlen": "23",
377
+ "scope": "Global"
378
+ }
379
+ },
380
+ "arp": {
381
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
382
+ },
383
+ "encapsulation": "Ethernet",
384
+ "flags": [
385
+ "BROADCAST",
386
+ "MULTICAST",
387
+ "UP",
388
+ "LOWER_UP"
389
+ ],
390
+ "mtu": "1500",
391
+ "number": "0",
392
+ "routes": {
393
+ "10.0.0.0/255": {
394
+ "scope": "link",
395
+ "src": "10.0.0.2"
396
+ }
397
+ },
398
+ "state": "up",
399
+ "type": "eth"
400
+ }
401
+ }
402
+ },
403
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
404
+ "uptime_seconds": 2646450
405
+ }