fauxhai 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a7255d1f6926c73a10a3b4a01b2cb9d3dd8a931a
4
+ data.tar.gz: c72fd48c79410c165dc860f4a7015108b316cdde
5
+ SHA512:
6
+ metadata.gz: 0ea54914a406b17a62fe110fbb0dd699476475fa4c185e7adccfe83bd68444acf0d29df7f9621f3cec7f84e4f47e79bf925074d43c9f41a76ab66299a2cb6220
7
+ data.tar.gz: f88fd006a1d983d080fce4ed93472111d2373b5f4bf7125c6f911f3d659b4717a0748397cf357337c282c85a79a7f5bcde0e9864f423490551117f381d6af319
@@ -1,7 +1,20 @@
1
1
  Fauxhai Changelog
2
2
  =================
3
3
 
4
- v1.0.1
4
+ v2.0.0
5
+ ------
6
+ Released 2013-11-06
7
+
8
+ - Remove dependency on HTTParty
9
+ - Require Ruby 1.9
10
+
11
+ v1.1.1
12
+ ------
13
+ Released 2013-06-03
14
+
15
+ - Add new LSB release information([@pschultz][], [#32][])
16
+
17
+ v1.1.0
5
18
  ------
6
19
  Released: 2013-05-21
7
20
 
@@ -31,7 +44,9 @@ Released: 2013-05-09
31
44
  [#26]: https://github.com/customink/fauxhai/issues/26
32
45
  [#29]: https://github.com/customink/fauxhai/issues/29
33
46
  [#30]: https://github.com/customink/fauxhai/issues/30
47
+ [#32]: https://github.com/customink/fauxhai/issues/32
34
48
  [@anujbiyani]: https://github.com/anujbiyani
35
49
  [@mapleoin]: https://github.com/mapleoin
36
50
  [@sax]: https://github.com/sax
37
51
  [@tmatilai]: https://github.com/tmatilai
52
+ [@pschultz]: https://github.com/pschultz
@@ -0,0 +1,47 @@
1
+ Contributing to Fauxhai
2
+ =======================
3
+ Fauxhai is community-maintained and updated. Aside from the initial files, all of the ohai system mocks have been created by the community. If you have a system that you think would benefit the community, here's how you get it into [fauxhai](https://github.com/customink/fauxhai):
4
+
5
+ 1. Build a system to your liking (on a virtual machine, for example)
6
+ 2. Install chef, ohai, and fauxhai
7
+ 3. Run the following at the command line:
8
+
9
+ Unix:
10
+
11
+ sudo fauxhai > /tmp/fauxhai.json
12
+
13
+ Windows (in Administrator mode):
14
+
15
+ fauxhai > C:\SomePath\fauxhai.json
16
+
17
+ 4. This will create a file `fauxhai.json` at the specified path. As with any tool, inspect the contents of the file before continuing.
18
+ 5. Copy the contents of this file to your local development machine (using scp or sftp, for example)
19
+ 6. Clone and `bundle` this repo:
20
+
21
+ git clone git@github.com:customink/fauxhai.git
22
+ cd fauxhai
23
+ bundle
24
+
25
+ 7. Create a new branch named `add_[platform]_[version]` (e.g. `add_ubuntu_12_04`) without dashes and dots replaced with underscores. Be sure to use the official version number, not a package name (e.g. '12_04', not 'precise') if avaliable:
26
+
27
+ Ubuntu Precise, 12.04 add_ubuntu_12_04
28
+ Ubuntu Lucid, 11.5 add_ubuntu_11_5
29
+ OSX Lion, 10.7.4 add_osx_10_7_4
30
+ Windows XP add_windows_xp
31
+
32
+ **Q:** Is there a reason for this super-specific naming convention?
33
+
34
+ **A:** No, but it helps in tracking problems and analyzing pull requests. Ultimately it just ensures your pull request is merged as quickly as possible.
35
+
36
+ 8. Create a new json file in `lib/fauxhai/platforms/[os]/[version].json` (e.g. `lib/fauxhai/platforms/ubuntu/12.04.json`)
37
+ 9. Copy-paste the contents of the file from `Step 4` into this file and save
38
+ 10. Verify the installation was successful by doing the following:
39
+
40
+ irb -rubygems -rfauxhai
41
+ Fauxhai.mock('platform: [os], version: [version]') # e.g. Fauxhai.mock(platform: 'ubuntu', version: '12.04')
42
+
43
+ As long as that does not throw an error, you're good to go!
44
+
45
+ 11. Submit a pull request on github
46
+
47
+ **Note:** I do *not* need to release a new version of Fauxhai for your changes to be pulled and used. Unless you are updating an existing platform, Fauxhai will automatically pull new versions from GitHub via HTTP automatically and cache them.
data/README.md CHANGED
@@ -172,40 +172,4 @@ end
172
172
 
173
173
  Contributing
174
174
  ------------
175
- Fauxhai is community-maintained and updated. Aside from the initial files, all of the ohai system mocks have been created by the community. If you have a system that you think would benefit the community, here's how you get it into [fauxhai](https://github.com/customink/fauxhai):
176
-
177
- 1. Build a system to your liking (on a virtual machine, for example)
178
- 2. Install chef, ohai, and fauxhai
179
- 3. Run the following at the command line:
180
-
181
- sudo fauxhai > /tmp/fauxhai.json
182
-
183
- 4. This will create a file `/tmp/fauxhai.json`
184
- 5. Copy the contents of this file to your local development machine (using scp or sftp, for example)
185
- 6. Clone and `bundle` this repo:
186
-
187
- git clone git@github.com:customink/fauxhai.git
188
- cd fauxhai
189
- bundle
190
-
191
- 7. Create a new branch named `add_[platform]_[version]` (e.g. `add_ubuntu_12_04`) without dashes and dots replaced with underscores. Be sure to use the official version number, not a package name (e.g. '12_04', not 'precise') if avaliable:
192
-
193
- Ubuntu Precise, 12.04 add_ubuntu_12_04
194
- Ubuntu Lucid, 11.5 add_ubuntu_11_5
195
- OSX Lion, 10.7.4 add_osx_10_7_4
196
- Windows XP add_windows_xp
197
-
198
- **Q:** Is there a reason for this super-specific naming convention?
199
-
200
- **A:** No, but it helps in tracking problems and analyzing pull requests. Ultimately it just ensures your pull request is merged as quickly as possible.
201
-
202
- 8. Create a new json file in `lib/fauxhai/platforms/[os]/[version].json` (e.g. `lib/fauxhai/platforms/ubuntu/12.04.json`)
203
- 9. Copy-paste the contents of the file from `Step 4` into this file and save
204
- 10. Verify the installation was successful by doing the following:
205
-
206
- irb -rubygems -rfauxhai
207
- Fauxhai.mock('platform: [os], version: [version]') # e.g. Fauxhai.mock(platform: 'ubuntu', version: '12.04')
208
-
209
- As long as that does not throw an error, you're good to go!
210
-
211
- 11. Submit a pull request on github
175
+ See [CONTRIBUTING.md](https://github.com/customink/fauxhai/blob/master/CONTRIBUTING.md).
@@ -3,19 +3,20 @@ $:.unshift(lib) unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'fauxhai'
6
- spec.version = '1.1.1'
6
+ spec.version = '2.0.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
12
 
13
+ spec.required_ruby_version = '>= 1.9'
14
+
13
15
  spec.files = `git ls-files`.split($\)
14
16
  spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
18
  spec.require_paths = ['lib']
17
19
 
18
- spec.add_runtime_dependency 'httparty'
19
20
  spec.add_runtime_dependency 'net-ssh'
20
21
  spec.add_runtime_dependency 'ohai'
21
22
 
@@ -1,9 +1,12 @@
1
- require 'httparty'
2
1
  require 'json'
2
+ require 'net/http'
3
3
  require 'pathname'
4
4
 
5
5
  module Fauxhai
6
6
  class Mocker
7
+ # The base URL for the GitHub project (raw)
8
+ RAW_BASE = 'https://raw.github.com/customink/fauxhai/master'
9
+
7
10
  # @return [Hash] The raw ohai data for the given Mock
8
11
  attr_reader :data
9
12
 
@@ -54,8 +57,7 @@ module Fauxhai
54
57
  elsif
55
58
  # Try loading from github (in case someone submitted a PR with a new file, but we haven't
56
59
  # yet updated the gem version). Cache the response locally so it's faster next time.
57
- url = "https://raw.github.com/customink/fauxhai/master/lib/fauxhai/platforms/#{platform}/#{version}.json"
58
- response = HTTParty.get(url)
60
+ response = get("#{RAW_BASE}/lib/fauxhai/platforms/#{platform}/#{version}.json")
59
61
 
60
62
  if response.code.to_i == 200
61
63
  path = Pathname.new(filepath)
@@ -85,5 +87,14 @@ module Fauxhai
85
87
  def chefspec_version
86
88
  platform == 'chefspec' ? '0.6.1' : nil
87
89
  end
90
+
91
+ def get(url)
92
+ url = URI.parse(url)
93
+ http = Net::HTTP.new(url.host, url.port)
94
+ http.use_ssl = true
95
+
96
+ request = Net::HTTP::Get.new(url.path)
97
+ http.start { |http| http.request(request) }
98
+ end
88
99
  end
89
100
  end
@@ -0,0 +1,757 @@
1
+ {
2
+ "kernel": {
3
+ "name": "Linux",
4
+ "release": "2.6.18-308.el5",
5
+ "version": "#1 SMP Tue Feb 21 20:06:06 EST 2012",
6
+ "machine": "x86_64",
7
+ "modules": {
8
+ "loop": {
9
+ "size": "48593",
10
+ "refcount": "0"
11
+ },
12
+ "vboxsf": {
13
+ "size": "71520",
14
+ "refcount": "1"
15
+ },
16
+ "autofs4": {
17
+ "size": "62281",
18
+ "refcount": "3"
19
+ },
20
+ "lockd": {
21
+ "size": "101425",
22
+ "refcount": "0"
23
+ },
24
+ "sunrpc": {
25
+ "size": "203145",
26
+ "refcount": "2"
27
+ },
28
+ "be2iscsi": {
29
+ "size": "94685",
30
+ "refcount": "0"
31
+ },
32
+ "ib_iser": {
33
+ "size": "68161",
34
+ "refcount": "0"
35
+ },
36
+ "rdma_cm": {
37
+ "size": "68689",
38
+ "refcount": "1"
39
+ },
40
+ "ib_cm": {
41
+ "size": "72809",
42
+ "refcount": "1"
43
+ },
44
+ "iw_cm": {
45
+ "size": "43465",
46
+ "refcount": "1"
47
+ },
48
+ "ib_sa": {
49
+ "size": "74953",
50
+ "refcount": "2"
51
+ },
52
+ "ib_mad": {
53
+ "size": "70757",
54
+ "refcount": "2"
55
+ },
56
+ "ib_core": {
57
+ "size": "104901",
58
+ "refcount": "6"
59
+ },
60
+ "ib_addr": {
61
+ "size": "41673",
62
+ "refcount": "1"
63
+ },
64
+ "iscsi_tcp": {
65
+ "size": "50893",
66
+ "refcount": "0"
67
+ },
68
+ "bnx2i": {
69
+ "size": "81249",
70
+ "refcount": "0"
71
+ },
72
+ "cnic": {
73
+ "size": "85481",
74
+ "refcount": "1"
75
+ },
76
+ "ipv6": {
77
+ "size": "437857",
78
+ "refcount": "11"
79
+ },
80
+ "xfrm_nalgo": {
81
+ "size": "43333",
82
+ "refcount": "1"
83
+ },
84
+ "crypto_api": {
85
+ "size": "42945",
86
+ "refcount": "1"
87
+ },
88
+ "uio": {
89
+ "size": "45777",
90
+ "refcount": "1"
91
+ },
92
+ "cxgb3i": {
93
+ "size": "64849",
94
+ "refcount": "0"
95
+ },
96
+ "libcxgbi": {
97
+ "size": "91597",
98
+ "refcount": "1"
99
+ },
100
+ "cxgb3": {
101
+ "size": "216241",
102
+ "refcount": "1"
103
+ },
104
+ "8021q": {
105
+ "size": "58449",
106
+ "refcount": "1"
107
+ },
108
+ "libiscsi_tcp": {
109
+ "size": "53573",
110
+ "refcount": "3"
111
+ },
112
+ "libiscsi2": {
113
+ "size": "77765",
114
+ "refcount": "7"
115
+ },
116
+ "scsi_transport_iscsi2": {
117
+ "size": "73945",
118
+ "refcount": "8"
119
+ },
120
+ "scsi_transport_iscsi": {
121
+ "size": "35017",
122
+ "refcount": "1"
123
+ },
124
+ "dm_multipath": {
125
+ "size": "58969",
126
+ "refcount": "0"
127
+ },
128
+ "scsi_dh": {
129
+ "size": "42561",
130
+ "refcount": "1"
131
+ },
132
+ "video": {
133
+ "size": "53197",
134
+ "refcount": "0"
135
+ },
136
+ "backlight": {
137
+ "size": "39872",
138
+ "refcount": "1"
139
+ },
140
+ "sbs": {
141
+ "size": "49921",
142
+ "refcount": "0"
143
+ },
144
+ "power_meter": {
145
+ "size": "47053",
146
+ "refcount": "0"
147
+ },
148
+ "hwmon": {
149
+ "size": "36553",
150
+ "refcount": "1"
151
+ },
152
+ "i2c_ec": {
153
+ "size": "38593",
154
+ "refcount": "1"
155
+ },
156
+ "dell_wmi": {
157
+ "size": "37601",
158
+ "refcount": "0"
159
+ },
160
+ "wmi": {
161
+ "size": "41985",
162
+ "refcount": "1"
163
+ },
164
+ "button": {
165
+ "size": "40545",
166
+ "refcount": "0"
167
+ },
168
+ "battery": {
169
+ "size": "43849",
170
+ "refcount": "0"
171
+ },
172
+ "asus_acpi": {
173
+ "size": "50917",
174
+ "refcount": "0"
175
+ },
176
+ "acpi_memhotplug": {
177
+ "size": "40517",
178
+ "refcount": "0"
179
+ },
180
+ "ac": {
181
+ "size": "38729",
182
+ "refcount": "0"
183
+ },
184
+ "lp": {
185
+ "size": "47121",
186
+ "refcount": "0"
187
+ },
188
+ "sg": {
189
+ "size": "70649",
190
+ "refcount": "0"
191
+ },
192
+ "i2c_piix4": {
193
+ "size": "43725",
194
+ "refcount": "0"
195
+ },
196
+ "i2c_core": {
197
+ "size": "57537",
198
+ "refcount": "2"
199
+ },
200
+ "serio_raw": {
201
+ "size": "40517",
202
+ "refcount": "0"
203
+ },
204
+ "pcspkr": {
205
+ "size": "36289",
206
+ "refcount": "0"
207
+ },
208
+ "ide_cd": {
209
+ "size": "73825",
210
+ "refcount": "0"
211
+ },
212
+ "parport_pc": {
213
+ "size": "62953",
214
+ "refcount": "0"
215
+ },
216
+ "parport": {
217
+ "size": "73165",
218
+ "refcount": "2"
219
+ },
220
+ "e1000": {
221
+ "size": "162665",
222
+ "refcount": "0"
223
+ },
224
+ "vboxguest": {
225
+ "size": "260364",
226
+ "refcount": "2"
227
+ },
228
+ "tpm_tis": {
229
+ "size": "48077",
230
+ "refcount": "0"
231
+ },
232
+ "tpm": {
233
+ "size": "50273",
234
+ "refcount": "1"
235
+ },
236
+ "tpm_bios": {
237
+ "size": "40897",
238
+ "refcount": "1"
239
+ },
240
+ "cdrom": {
241
+ "size": "68713",
242
+ "refcount": "1"
243
+ },
244
+ "dm_raid45": {
245
+ "size": "99785",
246
+ "refcount": "0"
247
+ },
248
+ "dm_message": {
249
+ "size": "36289",
250
+ "refcount": "1"
251
+ },
252
+ "dm_region_hash": {
253
+ "size": "46145",
254
+ "refcount": "1"
255
+ },
256
+ "dm_mem_cache": {
257
+ "size": "38977",
258
+ "refcount": "1"
259
+ },
260
+ "dm_snapshot": {
261
+ "size": "52233",
262
+ "refcount": "0"
263
+ },
264
+ "dm_zero": {
265
+ "size": "35265",
266
+ "refcount": "0"
267
+ },
268
+ "dm_mirror": {
269
+ "size": "54737",
270
+ "refcount": "0"
271
+ },
272
+ "dm_log": {
273
+ "size": "44993",
274
+ "refcount": "3"
275
+ },
276
+ "dm_mod": {
277
+ "size": "102417",
278
+ "refcount": "11"
279
+ },
280
+ "ata_piix": {
281
+ "size": "57925",
282
+ "refcount": "0"
283
+ },
284
+ "ahci": {
285
+ "size": "73805",
286
+ "refcount": "2"
287
+ },
288
+ "libata": {
289
+ "size": "208977",
290
+ "refcount": "2"
291
+ },
292
+ "sd_mod": {
293
+ "size": "56513",
294
+ "refcount": "3"
295
+ },
296
+ "scsi_mod": {
297
+ "size": "199641",
298
+ "refcount": "11"
299
+ },
300
+ "ext3": {
301
+ "size": "169297",
302
+ "refcount": "2"
303
+ },
304
+ "jbd": {
305
+ "size": "94897",
306
+ "refcount": "1"
307
+ },
308
+ "uhci_hcd": {
309
+ "size": "57433",
310
+ "refcount": "0"
311
+ },
312
+ "ohci_hcd": {
313
+ "size": "56181",
314
+ "refcount": "0"
315
+ },
316
+ "ehci_hcd": {
317
+ "size": "66765",
318
+ "refcount": "0"
319
+ }
320
+ },
321
+ "os": "GNU/Linux"
322
+ },
323
+ "os": "linux",
324
+ "os_version": "2.6.18-308.el5",
325
+ "command": {
326
+ "ps": "ps -ef"
327
+ },
328
+ "ohai_time": 1355198209.604956,
329
+ "platform": "centos",
330
+ "platform_version": "5.9",
331
+ "platform_family": "rhel",
332
+ "dmi": {
333
+ "dmidecode_version": "2.11",
334
+ "smbios_version": "2.5",
335
+ "structures": {
336
+ "count": "9",
337
+ "size": "438"
338
+ },
339
+ "table_location": "0x000E1000",
340
+ "bios": {
341
+ "all_records": [
342
+ {
343
+ "record_id": "0x0000",
344
+ "size": "0",
345
+ "application_identifier": "BIOS Information",
346
+ "Vendor": "innotek GmbH",
347
+ "Version": "VirtualBox",
348
+ "Release Date": "12/01/2006",
349
+ "Address": "0xE0000",
350
+ "Runtime Size": "128 kB",
351
+ "ROM Size": "128 kB",
352
+ "Characteristics": {
353
+ "ISA is supported": null,
354
+ "PCI is supported": null,
355
+ "Boot from CD is supported": null,
356
+ "Selectable boot is supported": null,
357
+ "8042 keyboard services are supported (int 9h)": null,
358
+ "CGA/mono video services are supported (int 10h)": null,
359
+ "ACPI is supported": null
360
+ }
361
+ }
362
+ ],
363
+ "vendor": "innotek GmbH",
364
+ "version": "VirtualBox",
365
+ "release_date": "12/01/2006",
366
+ "address": "0xE0000",
367
+ "runtime_size": "128 kB",
368
+ "rom_size": "128 kB"
369
+ },
370
+ "system": {
371
+ "all_records": [
372
+ {
373
+ "record_id": "0x0001",
374
+ "size": "1",
375
+ "application_identifier": "System Information",
376
+ "Manufacturer": "innotek GmbH",
377
+ "Product Name": "VirtualBox",
378
+ "Version": "1.2",
379
+ "Serial Number": "0",
380
+ "UUID": "9C31075B-7780-40F5-BD00-A956C9DD60FC",
381
+ "Wake-up Type": "Power Switch",
382
+ "SKU Number": "Not Specified",
383
+ "Family": "Virtual Machine"
384
+ }
385
+ ],
386
+ "manufacturer": "innotek GmbH",
387
+ "product_name": "VirtualBox",
388
+ "version": "1.2",
389
+ "serial_number": "0",
390
+ "uuid": "9C31075B-7780-40F5-BD00-A956C9DD60FC",
391
+ "wake_up_type": "Power Switch",
392
+ "sku_number": "Not Specified",
393
+ "family": "Virtual Machine"
394
+ },
395
+ "base_board": {
396
+ "all_records": [
397
+ {
398
+ "record_id": "0x0008",
399
+ "size": "2",
400
+ "application_identifier": "Base Board Information",
401
+ "Manufacturer": "Oracle Corporation",
402
+ "Product Name": "VirtualBox",
403
+ "Version": "1.2",
404
+ "Serial Number": "0",
405
+ "Asset Tag": "Not Specified",
406
+ "Features": {
407
+ "Board is a hosting board": null
408
+ },
409
+ "Location In Chassis": "Not Specified",
410
+ "Chassis Handle": "0x0003",
411
+ "Type": "Motherboard",
412
+ "Contained Object Handles": "0"
413
+ }
414
+ ],
415
+ "manufacturer": "Oracle Corporation",
416
+ "product_name": "VirtualBox",
417
+ "version": "1.2",
418
+ "serial_number": "0",
419
+ "asset_tag": "Not Specified",
420
+ "location_in_chassis": "Not Specified",
421
+ "chassis_handle": "0x0003",
422
+ "type": "Motherboard",
423
+ "contained_object_handles": "0"
424
+ },
425
+ "chassis": {
426
+ "all_records": [
427
+ {
428
+ "record_id": "0x0003",
429
+ "size": "3",
430
+ "application_identifier": "Inactive",
431
+ "Manufacturer": "Oracle Corporation",
432
+ "Type": "Other",
433
+ "Lock": "Not Present",
434
+ "Version": "Not Specified",
435
+ "Serial Number": "Not Specified",
436
+ "Asset Tag": "Not Specified",
437
+ "Boot-up State": "Safe",
438
+ "Power Supply State": "Safe",
439
+ "Thermal State": "Safe",
440
+ "Security Status": "None"
441
+ }
442
+ ],
443
+ "manufacturer": "Oracle Corporation",
444
+ "type": "Other",
445
+ "lock": "Not Present",
446
+ "version": "Not Specified",
447
+ "serial_number": "Not Specified",
448
+ "asset_tag": "Not Specified",
449
+ "boot_up_state": "Safe",
450
+ "power_supply_state": "Safe",
451
+ "thermal_state": "Safe",
452
+ "security_status": "None"
453
+ },
454
+ "oem_strings": {
455
+ "all_records": [
456
+ {
457
+ "record_id": "0x0002",
458
+ "size": "11",
459
+ "application_identifier": "End Of Table",
460
+ "String 1": "vboxVer_4.2.4",
461
+ "String 2": "vboxRev_81684"
462
+ }
463
+ ],
464
+ "string_1": "vboxVer_4.2.4",
465
+ "string_2": "vboxRev_81684"
466
+ }
467
+ },
468
+ "filesystem": {
469
+ "/dev/mapper/VolGroup00-LogVol00": {
470
+ "kb_size": "39740792",
471
+ "kb_used": "1487588",
472
+ "kb_available": "36201928",
473
+ "percent_used": "4%",
474
+ "mount": "/",
475
+ "fs_type": "ext3",
476
+ "mount_options": [
477
+ "rw"
478
+ ],
479
+ "uuid": "9afc232f-1505-4448-8e66-ce203cd5a49c"
480
+ },
481
+ "/dev/sda1": {
482
+ "kb_size": "101086",
483
+ "kb_used": "12955",
484
+ "kb_available": "82912",
485
+ "percent_used": "14%",
486
+ "mount": "/boot",
487
+ "fs_type": "ext3",
488
+ "mount_options": [
489
+ "rw"
490
+ ],
491
+ "uuid": "6b8d2a29-bfc7-4ac3-860b-40ba6fba1e22",
492
+ "label": "/boot"
493
+ },
494
+ "tmpfs": {
495
+ "kb_size": "190232",
496
+ "kb_used": "0",
497
+ "kb_available": "190232",
498
+ "percent_used": "0%",
499
+ "mount": "/dev/shm",
500
+ "fs_type": "tmpfs",
501
+ "mount_options": [
502
+ "rw"
503
+ ]
504
+ },
505
+ "v-root": {
506
+ "kb_size": "244277768",
507
+ "kb_used": "86355068",
508
+ "kb_available": "157922700",
509
+ "percent_used": "36%",
510
+ "mount": "/vagrant",
511
+ "fs_type": "vboxsf",
512
+ "mount_options": [
513
+ "uid=900",
514
+ "gid=999",
515
+ "rw"
516
+ ]
517
+ },
518
+ "proc": {
519
+ "mount": "/proc",
520
+ "fs_type": "proc",
521
+ "mount_options": [
522
+ "rw"
523
+ ]
524
+ },
525
+ "sysfs": {
526
+ "mount": "/sys",
527
+ "fs_type": "sysfs",
528
+ "mount_options": [
529
+ "rw"
530
+ ]
531
+ },
532
+ "devpts": {
533
+ "mount": "/dev/pts",
534
+ "fs_type": "devpts",
535
+ "mount_options": [
536
+ "rw",
537
+ "gid=5",
538
+ "mode=620"
539
+ ]
540
+ },
541
+ "none": {
542
+ "mount": "/proc/sys/fs/binfmt_misc",
543
+ "fs_type": "binfmt_misc",
544
+ "mount_options": [
545
+ "rw"
546
+ ]
547
+ },
548
+ "sunrpc": {
549
+ "mount": "/var/lib/nfs/rpc_pipefs",
550
+ "fs_type": "rpc_pipefs",
551
+ "mount_options": [
552
+ "rw"
553
+ ]
554
+ },
555
+ "/dev/mapper/VolGroup00-LogVol01": {
556
+ "fs_type": "swap"
557
+ },
558
+ "/dev/hdc": {
559
+ "fs_type": "iso9660",
560
+ "label": "VBOXADDITIONS_4.1.22_80657"
561
+ },
562
+ "/dev/hda": {
563
+ "fs_type": "iso9660",
564
+ "label": "CentOS_5.9_Final"
565
+ },
566
+ "/dev/VolGroup00/LogVol00": {
567
+ "fs_type": "ext3",
568
+ "uuid": "9afc232f-1505-4448-8e66-ce203cd5a49c"
569
+ },
570
+ "/dev/VolGroup00/LogVol01": {
571
+ "fs_type": "swap"
572
+ },
573
+ "rootfs": {
574
+ "mount": "/",
575
+ "fs_type": "rootfs",
576
+ "mount_options": [
577
+ "rw"
578
+ ]
579
+ },
580
+ "/dev/root": {
581
+ "mount": "/",
582
+ "fs_type": "ext3",
583
+ "mount_options": [
584
+ "rw",
585
+ "data=ordered"
586
+ ]
587
+ },
588
+ "/dev": {
589
+ "mount": "/dev",
590
+ "fs_type": "tmpfs",
591
+ "mount_options": [
592
+ "rw"
593
+ ]
594
+ },
595
+ "/proc": {
596
+ "mount": "/proc",
597
+ "fs_type": "proc",
598
+ "mount_options": [
599
+ "rw"
600
+ ]
601
+ },
602
+ "/sys": {
603
+ "mount": "/sys",
604
+ "fs_type": "sysfs",
605
+ "mount_options": [
606
+ "rw"
607
+ ]
608
+ },
609
+ "/proc/bus/usb": {
610
+ "mount": "/proc/bus/usb",
611
+ "fs_type": "usbfs",
612
+ "mount_options": [
613
+ "rw"
614
+ ]
615
+ },
616
+ "/etc/auto.misc": {
617
+ "mount": "/misc",
618
+ "fs_type": "autofs",
619
+ "mount_options": [
620
+ "rw",
621
+ "fd=7",
622
+ "pgrp=2022",
623
+ "timeout=300",
624
+ "minproto=5",
625
+ "maxproto=5",
626
+ "indirect"
627
+ ]
628
+ },
629
+ "-hosts": {
630
+ "mount": "/net",
631
+ "fs_type": "autofs",
632
+ "mount_options": [
633
+ "rw",
634
+ "fd=13",
635
+ "pgrp=2022",
636
+ "timeout=300",
637
+ "minproto=5",
638
+ "maxproto=5",
639
+ "indirect"
640
+ ]
641
+ }
642
+ },
643
+ "languages": {
644
+ "ruby": {
645
+ "bin_dir": "/usr/local/bin",
646
+ "gem_bin": "/usr/local/bin/gem",
647
+ "gems_dir": "/usr/local/gems",
648
+ "ruby_bin": "/usr/local/bin/ruby"
649
+ }
650
+ },
651
+ "chef_packages": {
652
+ "chef": {
653
+ "version": "10.14.4",
654
+ "chef_root": "/usr/local/gems/chef-10.14.4/lib"
655
+ },
656
+ "ohai": {
657
+ "version": "6.14.0",
658
+ "ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai"
659
+ }
660
+ },
661
+ "counters": {
662
+ "network": {
663
+ "interfaces": {
664
+ "eth0": {
665
+ "rx": {
666
+ "bytes": "0",
667
+ "packets": "0",
668
+ "errors": "0",
669
+ "drop": 0,
670
+ "overrun": 0,
671
+ "frame": 0,
672
+ "compressed": 0,
673
+ "multicast": 0
674
+ },
675
+ "tx": {
676
+ "bytes": "342",
677
+ "packets": "0",
678
+ "errors": "0",
679
+ "drop": 0,
680
+ "overrun": 0,
681
+ "collisions": "0",
682
+ "carrier": 0,
683
+ "compressed": 0
684
+ }
685
+ }
686
+ }
687
+ }
688
+ },
689
+ "current_user": "fauxhai",
690
+ "domain": "local",
691
+ "etc": {
692
+ "passwd": {
693
+ "fauxhai": {
694
+ "dir": "/home/fauxhai",
695
+ "gid": 0,
696
+ "uid": 0,
697
+ "shell": "/bin/bash",
698
+ "gecos": "Fauxhai"
699
+ }
700
+ },
701
+ "group": {
702
+ "fauxhai": {
703
+ "gid": 0,
704
+ "members": [
705
+ "fauxhai"
706
+ ]
707
+ }
708
+ }
709
+ },
710
+ "hostname": "Fauxhai",
711
+ "fqdn": "fauxhai.local",
712
+ "ipaddress": "10.0.0.2",
713
+ "keys": {
714
+ "ssh": {
715
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
716
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
717
+ }
718
+ },
719
+ "macaddress": "11:11:11:11:11:11",
720
+ "network": {
721
+ "default_gateway": "10.0.0.1",
722
+ "default_interface": "eth0",
723
+ "eth0": {
724
+ "addresses": {
725
+ "10.0.0.2": {
726
+ "broadcast": "10.0.0.255",
727
+ "family": "inet",
728
+ "netmask": "255.255.255.0",
729
+ "prefixlen": "23",
730
+ "scope": "Global"
731
+ }
732
+ },
733
+ "arp": {
734
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
735
+ },
736
+ "encapsulation": "Ethernet",
737
+ "flags": [
738
+ "BROADCAST",
739
+ "MULTICAST",
740
+ "UP",
741
+ "LOWER_UP"
742
+ ],
743
+ "mtu": "1500",
744
+ "number": "0",
745
+ "routes": {
746
+ "10.0.0.0/255": {
747
+ "scope": "link",
748
+ "src": "10.0.0.2"
749
+ }
750
+ },
751
+ "state": "up",
752
+ "type": "eth"
753
+ }
754
+ },
755
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
756
+ "uptime_seconds": 2646450
757
+ }