fauxhai 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +27 -3
- data/fauxhai.gemspec +2 -1
- data/lib/fauxhai.rb +4 -4
- data/lib/fauxhai/mocker.rb +12 -3
- data/lib/fauxhai/platforms/centos/6.0.json +1 -0
- data/lib/fauxhai/platforms/centos/6.3.json +583 -0
- data/lib/fauxhai/platforms/mac_os_x/10.6.8.json +833 -0
- data/lib/fauxhai/platforms/ubuntu/12.04.json +422 -0
- metadata +21 -2
data/README.md
CHANGED
@@ -2,7 +2,7 @@ Fauxhai
|
|
2
2
|
=======
|
3
3
|
Fauxhai is a gem for mocking out [ohai](https://github.com/opscode/ohai) data in your chef testing. Fauxhai is community supported, so we need **your help** to populate our dataset. Here's an example for testing my "awesome_cookbook" on Ubuntu:
|
4
4
|
|
5
|
-
|
5
|
+
Fauxhai finally stable! Pull Requests are still welcome though :)
|
6
6
|
|
7
7
|
```ruby
|
8
8
|
require 'chefspec'
|
@@ -119,6 +119,29 @@ describe 'awesome_cookbook::default' do
|
|
119
119
|
end
|
120
120
|
```
|
121
121
|
|
122
|
+
Testing Multiple Versions
|
123
|
+
-------------------------
|
124
|
+
It's a common use case to test multiple version of the same operating system. Here's a simple example to get your started. This is more rspec-related that fauxhai related, but here ya go:
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
require 'chefspec'
|
128
|
+
|
129
|
+
describe 'awesome_cookbook::default' do
|
130
|
+
['12.04', '11.06', '10.04'].each do |version|
|
131
|
+
context "on Ubuntu #{version}" do
|
132
|
+
before do
|
133
|
+
Fauxhai.mock(platform: 'ubuntu', version: version)
|
134
|
+
end
|
135
|
+
|
136
|
+
it 'should install awesome' do
|
137
|
+
@runner = ChefSpec::ChefRunner.new.converge('tmpreaper::default')
|
138
|
+
@runner.should install_package 'awesome'
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
122
145
|
Contributing
|
123
146
|
------------
|
124
147
|
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):
|
@@ -145,14 +168,15 @@ Fauxhai is community-maintained and updated. Aside from the initial files, all o
|
|
145
168
|
Windows XP add_windows_xp
|
146
169
|
|
147
170
|
**Q:** Is there a reason for this super-specific naming convention?
|
171
|
+
|
148
172
|
**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.
|
149
173
|
|
150
|
-
8. Create a new json file in `fauxhai/[os]/[version].json` (e.g. `fauxhai/ubuntu/
|
174
|
+
8. Create a new json file in `fauxhai/platforms/[os]/[version].json` (e.g. `fauxhai/platforms/ubuntu/12.04.json`)
|
151
175
|
9. Copy-paste the contents of the file from `Step 4` into this file and save
|
152
176
|
10. Verify the installation was successful by doing the following:
|
153
177
|
|
154
178
|
irb -rubygems -rfauxhai
|
155
|
-
Fauxhai.mock('[os]
|
179
|
+
Fauxhai.mock('platform: [os], version: [version]') # e.g. Fauxhai.mock(platform:'ubuntu', version:'12.04')
|
156
180
|
|
157
181
|
As long as that does not throw an error, you're good to go!
|
158
182
|
|
data/fauxhai.gemspec
CHANGED
@@ -2,7 +2,7 @@ lib = File.expand_path('../lib', __FILE__)
|
|
2
2
|
$:.unshift(lib) unless $:.include?(lib)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.version = '0.0.
|
5
|
+
gem.version = '0.0.3'
|
6
6
|
gem.authors = ['Seth Vargo']
|
7
7
|
gem.email = ['svargo@customink.com']
|
8
8
|
gem.description = %q{Easily mock out ohai data}
|
@@ -16,5 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ['lib']
|
17
17
|
|
18
18
|
gem.add_runtime_dependency 'chef'
|
19
|
+
gem.add_runtime_dependency 'httparty'
|
19
20
|
gem.add_runtime_dependency 'net-ssh'
|
20
21
|
end
|
data/lib/fauxhai.rb
CHANGED
@@ -7,11 +7,11 @@ module Fauxhai
|
|
7
7
|
@@root ||= File.expand_path('../../', __FILE__)
|
8
8
|
end
|
9
9
|
|
10
|
-
def self.mock(*args)
|
11
|
-
Fauxhai::Mocker.new(*args)
|
10
|
+
def self.mock(*args, &block)
|
11
|
+
Fauxhai::Mocker.new(*args, &block)
|
12
12
|
end
|
13
13
|
|
14
|
-
def self.fetch(*args)
|
15
|
-
Fauxhai::Fetcher.new(*args)
|
14
|
+
def self.fetch(*args, &block)
|
15
|
+
Fauxhai::Fetcher.new(*args, &block)
|
16
16
|
end
|
17
17
|
end
|
data/lib/fauxhai/mocker.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'httparty'
|
2
3
|
|
3
4
|
module Fauxhai
|
4
5
|
class Mocker
|
@@ -11,7 +12,7 @@ module Fauxhai
|
|
11
12
|
if defined?(ChefSpec)
|
12
13
|
data = @data
|
13
14
|
::ChefSpec::ChefRunner.send :define_method, :fake_ohai do |ohai|
|
14
|
-
data.each_pair do |attribute,value|
|
15
|
+
data.each_pair do |attribute, value|
|
15
16
|
ohai[attribute] = value
|
16
17
|
end
|
17
18
|
end
|
@@ -52,8 +53,16 @@ module Fauxhai
|
|
52
53
|
|
53
54
|
if File.exists?(filepath)
|
54
55
|
JSON.parse( File.read(filepath) )
|
55
|
-
|
56
|
-
|
56
|
+
elsif
|
57
|
+
# Try loading from github (in case someone submitted a PR with a new file, but we haven't
|
58
|
+
# yet updated the gem version). Cache the response locally so it's faster next time.
|
59
|
+
response = HTTParty.get("https://raw.github.com/customink/fauxhai/master/lib/fauxhai/platforms/#{platform}/#{version}.json")
|
60
|
+
if response.code == 200
|
61
|
+
File.open(filepath, 'w'){ |f| f.write(response.body) }
|
62
|
+
return JSON.parse(response.body)
|
63
|
+
else
|
64
|
+
raise Fauxhai::Exception::InvalidVersion.new("Could not find version #{@options[:version]} in any of the sources!")
|
65
|
+
end
|
57
66
|
end
|
58
67
|
end.call
|
59
68
|
end
|
@@ -0,0 +1,583 @@
|
|
1
|
+
{
|
2
|
+
"ipaddress": "10.0.0.2",
|
3
|
+
"command": {
|
4
|
+
"ps": "ps -ef"
|
5
|
+
},
|
6
|
+
"platform": "centos",
|
7
|
+
"domain": "local",
|
8
|
+
"network": {
|
9
|
+
"eth0": {
|
10
|
+
"arp": {
|
11
|
+
"10.0.0.1": "fe:ff:ff:ff:ff:ff"
|
12
|
+
},
|
13
|
+
"encapsulation": "Ethernet",
|
14
|
+
"flags": [
|
15
|
+
"BROADCAST",
|
16
|
+
"MULTICAST",
|
17
|
+
"UP",
|
18
|
+
"LOWER_UP"
|
19
|
+
],
|
20
|
+
"routes": {
|
21
|
+
"10.0.0.0/255": {
|
22
|
+
"scope": "link",
|
23
|
+
"src": "10.0.0.2"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"type": "eth",
|
27
|
+
"addresses": {
|
28
|
+
"10.0.0.2": {
|
29
|
+
"scope": "Global",
|
30
|
+
"broadcast": "10.0.0.255",
|
31
|
+
"netmask": "255.255.255.0",
|
32
|
+
"prefixlen": "23",
|
33
|
+
"family": "inet"
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"mtu": "1500",
|
37
|
+
"state": "up",
|
38
|
+
"number": "0"
|
39
|
+
},
|
40
|
+
"default_interface": "eth0",
|
41
|
+
"default_gateway": "10.0.0.1"
|
42
|
+
},
|
43
|
+
"platform_family": "rhel",
|
44
|
+
"kernel": {
|
45
|
+
"modules": {
|
46
|
+
"cxgb3": {
|
47
|
+
"size": "153148",
|
48
|
+
"refcount": "1"
|
49
|
+
},
|
50
|
+
"cxgb4": {
|
51
|
+
"size": "98749",
|
52
|
+
"refcount": "1"
|
53
|
+
},
|
54
|
+
"cnic": {
|
55
|
+
"size": "54703",
|
56
|
+
"refcount": "2"
|
57
|
+
},
|
58
|
+
"ahci": {
|
59
|
+
"size": "40871",
|
60
|
+
"refcount": "2"
|
61
|
+
},
|
62
|
+
"sr_mod": {
|
63
|
+
"size": "16228",
|
64
|
+
"refcount": "0"
|
65
|
+
},
|
66
|
+
"i2c_core": {
|
67
|
+
"size": "31276",
|
68
|
+
"refcount": "1"
|
69
|
+
},
|
70
|
+
"parport_pc": {
|
71
|
+
"size": "22978",
|
72
|
+
"refcount": "0"
|
73
|
+
},
|
74
|
+
"ip6_tables": {
|
75
|
+
"size": "19458",
|
76
|
+
"refcount": "1"
|
77
|
+
},
|
78
|
+
"scsi_transport_fc": {
|
79
|
+
"size": "55235",
|
80
|
+
"refcount": "3"
|
81
|
+
},
|
82
|
+
"vboxsf": {
|
83
|
+
"size": "37175",
|
84
|
+
"refcount": "1"
|
85
|
+
},
|
86
|
+
"libcxgbi": {
|
87
|
+
"size": "52381",
|
88
|
+
"refcount": "2"
|
89
|
+
},
|
90
|
+
"crc_t10dif": {
|
91
|
+
"size": "1541",
|
92
|
+
"refcount": "1"
|
93
|
+
},
|
94
|
+
"ip6t_REJECT": {
|
95
|
+
"size": "4628",
|
96
|
+
"refcount": "2"
|
97
|
+
},
|
98
|
+
"libfcoe": {
|
99
|
+
"size": "39764",
|
100
|
+
"refcount": "2"
|
101
|
+
},
|
102
|
+
"dm_mirror": {
|
103
|
+
"size": "14101",
|
104
|
+
"refcount": "0"
|
105
|
+
},
|
106
|
+
"pata_acpi": {
|
107
|
+
"size": "3701",
|
108
|
+
"refcount": "0"
|
109
|
+
},
|
110
|
+
"sd_mod": {
|
111
|
+
"size": "39488",
|
112
|
+
"refcount": "3"
|
113
|
+
},
|
114
|
+
"sg": {
|
115
|
+
"size": "30124",
|
116
|
+
"refcount": "0"
|
117
|
+
},
|
118
|
+
"nf_defrag_ipv6": {
|
119
|
+
"size": "12182",
|
120
|
+
"refcount": "1"
|
121
|
+
},
|
122
|
+
"nf_defrag_ipv4": {
|
123
|
+
"size": "1483",
|
124
|
+
"refcount": "1"
|
125
|
+
},
|
126
|
+
"sunrpc": {
|
127
|
+
"size": "263516",
|
128
|
+
"refcount": "1"
|
129
|
+
},
|
130
|
+
"qla4xxx": {
|
131
|
+
"size": "180923",
|
132
|
+
"refcount": "0"
|
133
|
+
},
|
134
|
+
"ata_piix": {
|
135
|
+
"size": "22846",
|
136
|
+
"refcount": "0"
|
137
|
+
},
|
138
|
+
"ata_generic": {
|
139
|
+
"size": "3837",
|
140
|
+
"refcount": "0"
|
141
|
+
},
|
142
|
+
"i2c_piix4": {
|
143
|
+
"size": "12608",
|
144
|
+
"refcount": "0"
|
145
|
+
},
|
146
|
+
"ppdev": {
|
147
|
+
"size": "8729",
|
148
|
+
"refcount": "0"
|
149
|
+
},
|
150
|
+
"llc": {
|
151
|
+
"size": "5642",
|
152
|
+
"refcount": "2"
|
153
|
+
},
|
154
|
+
"be2iscsi": {
|
155
|
+
"size": "78947",
|
156
|
+
"refcount": "0"
|
157
|
+
},
|
158
|
+
"jbd2": {
|
159
|
+
"size": "93312",
|
160
|
+
"refcount": "1"
|
161
|
+
},
|
162
|
+
"ip6table_filter": {
|
163
|
+
"size": "2889",
|
164
|
+
"refcount": "1"
|
165
|
+
},
|
166
|
+
"iptable_filter": {
|
167
|
+
"size": "2793",
|
168
|
+
"refcount": "1"
|
169
|
+
},
|
170
|
+
"ipt_REJECT": {
|
171
|
+
"size": "2351",
|
172
|
+
"refcount": "2"
|
173
|
+
},
|
174
|
+
"iscsi_boot_sysfs": {
|
175
|
+
"size": "9650",
|
176
|
+
"refcount": "2"
|
177
|
+
},
|
178
|
+
"cxgb4i": {
|
179
|
+
"size": "28201",
|
180
|
+
"refcount": "0"
|
181
|
+
},
|
182
|
+
"ipv6": {
|
183
|
+
"size": "322541",
|
184
|
+
"refcount": "26"
|
185
|
+
},
|
186
|
+
"dm_mod": {
|
187
|
+
"size": "81692",
|
188
|
+
"refcount": "8"
|
189
|
+
},
|
190
|
+
"dm_log": {
|
191
|
+
"size": "10122",
|
192
|
+
"refcount": "2"
|
193
|
+
},
|
194
|
+
"8021q": {
|
195
|
+
"size": "25058",
|
196
|
+
"refcount": "0"
|
197
|
+
},
|
198
|
+
"fcoe": {
|
199
|
+
"size": "22334",
|
200
|
+
"refcount": "0"
|
201
|
+
},
|
202
|
+
"libiscsi_tcp": {
|
203
|
+
"size": "17020",
|
204
|
+
"refcount": "3"
|
205
|
+
},
|
206
|
+
"uio": {
|
207
|
+
"size": "10974",
|
208
|
+
"refcount": "1"
|
209
|
+
},
|
210
|
+
"e1000": {
|
211
|
+
"size": "170646",
|
212
|
+
"refcount": "0"
|
213
|
+
},
|
214
|
+
"vboxguest": {
|
215
|
+
"size": "241679",
|
216
|
+
"refcount": "2"
|
217
|
+
},
|
218
|
+
"garp": {
|
219
|
+
"size": "7344",
|
220
|
+
"refcount": "1"
|
221
|
+
},
|
222
|
+
"libfc": {
|
223
|
+
"size": "108727",
|
224
|
+
"refcount": "3"
|
225
|
+
},
|
226
|
+
"libiscsi": {
|
227
|
+
"size": "47617",
|
228
|
+
"refcount": "7"
|
229
|
+
},
|
230
|
+
"bnx2i": {
|
231
|
+
"size": "47766",
|
232
|
+
"refcount": "0"
|
233
|
+
},
|
234
|
+
"cdrom": {
|
235
|
+
"size": "39803",
|
236
|
+
"refcount": "1"
|
237
|
+
},
|
238
|
+
"xt_state": {
|
239
|
+
"size": "1492",
|
240
|
+
"refcount": "4"
|
241
|
+
},
|
242
|
+
"mbcache": {
|
243
|
+
"size": "8144",
|
244
|
+
"refcount": "1"
|
245
|
+
},
|
246
|
+
"ip_tables": {
|
247
|
+
"size": "17831",
|
248
|
+
"refcount": "1"
|
249
|
+
},
|
250
|
+
"stp": {
|
251
|
+
"size": "2173",
|
252
|
+
"refcount": "1"
|
253
|
+
},
|
254
|
+
"scsi_tgt": {
|
255
|
+
"size": "12173",
|
256
|
+
"refcount": "1"
|
257
|
+
},
|
258
|
+
"bnx2fc": {
|
259
|
+
"size": "122225",
|
260
|
+
"refcount": "0"
|
261
|
+
},
|
262
|
+
"scsi_transport_iscsi": {
|
263
|
+
"size": "53047",
|
264
|
+
"refcount": "5"
|
265
|
+
},
|
266
|
+
"mdio": {
|
267
|
+
"size": "4732",
|
268
|
+
"refcount": "1"
|
269
|
+
},
|
270
|
+
"cxgb3i": {
|
271
|
+
"size": "24970",
|
272
|
+
"refcount": "0"
|
273
|
+
},
|
274
|
+
"dm_region_hash": {
|
275
|
+
"size": "12170",
|
276
|
+
"refcount": "1"
|
277
|
+
},
|
278
|
+
"ext4": {
|
279
|
+
"size": "371331",
|
280
|
+
"refcount": "2"
|
281
|
+
},
|
282
|
+
"parport": {
|
283
|
+
"size": "37265",
|
284
|
+
"refcount": "2"
|
285
|
+
},
|
286
|
+
"nf_conntrack": {
|
287
|
+
"size": "79453",
|
288
|
+
"refcount": "3"
|
289
|
+
},
|
290
|
+
"nf_conntrack_ipv6": {
|
291
|
+
"size": "8748",
|
292
|
+
"refcount": "2"
|
293
|
+
},
|
294
|
+
"nf_conntrack_ipv4": {
|
295
|
+
"size": "9506",
|
296
|
+
"refcount": "2"
|
297
|
+
}
|
298
|
+
},
|
299
|
+
"os": "GNU/Linux",
|
300
|
+
"version": "#1 SMP Fri Jun 22 12:19:21 UTC 2012",
|
301
|
+
"release": "2.6.32-279.el6.x86_64",
|
302
|
+
"name": "Linux",
|
303
|
+
"machine": "x86_64"
|
304
|
+
},
|
305
|
+
"chef_packages": {
|
306
|
+
"chef": {
|
307
|
+
"chef_root": "/usr/local/gems/chef-10.12.0/lib",
|
308
|
+
"version": "10.12.0"
|
309
|
+
},
|
310
|
+
"ohai": {
|
311
|
+
"ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai",
|
312
|
+
"version": "6.14.0"
|
313
|
+
}
|
314
|
+
},
|
315
|
+
"uptime_seconds": 2646450,
|
316
|
+
"counters": {
|
317
|
+
"network": {
|
318
|
+
"interfaces": {
|
319
|
+
"eth0": {
|
320
|
+
"rx": {
|
321
|
+
"bytes": "0",
|
322
|
+
"drop": 0,
|
323
|
+
"packets": "0",
|
324
|
+
"compressed": 0,
|
325
|
+
"multicast": 0,
|
326
|
+
"overrun": 0,
|
327
|
+
"errors": "0",
|
328
|
+
"frame": 0
|
329
|
+
},
|
330
|
+
"tx": {
|
331
|
+
"collisions": "0",
|
332
|
+
"bytes": "342",
|
333
|
+
"drop": 0,
|
334
|
+
"packets": "0",
|
335
|
+
"carrier": 0,
|
336
|
+
"compressed": 0,
|
337
|
+
"overrun": 0,
|
338
|
+
"errors": "0"
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
},
|
344
|
+
"current_user": "fauxhai",
|
345
|
+
"etc": {
|
346
|
+
"group": {
|
347
|
+
"fauxhai": {
|
348
|
+
"gid": 0,
|
349
|
+
"members": [
|
350
|
+
"fauxhai"
|
351
|
+
]
|
352
|
+
}
|
353
|
+
},
|
354
|
+
"passwd": {
|
355
|
+
"fauxhai": {
|
356
|
+
"shell": "/bin/bash",
|
357
|
+
"dir": "/home/fauxhai",
|
358
|
+
"gecos": "Fauxhai",
|
359
|
+
"gid": 0,
|
360
|
+
"uid": 0
|
361
|
+
}
|
362
|
+
}
|
363
|
+
},
|
364
|
+
"os_version": "2.6.32-279.el6.x86_64",
|
365
|
+
"platform_version": "6.3",
|
366
|
+
"filesystem": {
|
367
|
+
"/dev/mapper/VolGroup-lv_root": {
|
368
|
+
"fs_type": "ext4",
|
369
|
+
"mount_options": [
|
370
|
+
"rw"
|
371
|
+
],
|
372
|
+
"uuid": "cc9f548c-9b33-4996-9631-d12e7329dbd5",
|
373
|
+
"kb_available": "7391352",
|
374
|
+
"kb_size": "8776988",
|
375
|
+
"kb_used": "939788",
|
376
|
+
"percent_used": "12%",
|
377
|
+
"mount": "/"
|
378
|
+
},
|
379
|
+
"devpts": {
|
380
|
+
"fs_type": "devpts",
|
381
|
+
"mount_options": [
|
382
|
+
"rw",
|
383
|
+
"gid=5",
|
384
|
+
"mode=620"
|
385
|
+
],
|
386
|
+
"mount": "/dev/pts"
|
387
|
+
},
|
388
|
+
"sysfs": {
|
389
|
+
"fs_type": "sysfs",
|
390
|
+
"mount_options": [
|
391
|
+
"rw"
|
392
|
+
],
|
393
|
+
"mount": "/sys"
|
394
|
+
},
|
395
|
+
"sunrpc": {
|
396
|
+
"fs_type": "rpc_pipefs",
|
397
|
+
"mount_options": [
|
398
|
+
"rw"
|
399
|
+
],
|
400
|
+
"mount": "/var/lib/nfs/rpc_pipefs"
|
401
|
+
},
|
402
|
+
"tmpfs": {
|
403
|
+
"fs_type": "tmpfs",
|
404
|
+
"mount_options": [
|
405
|
+
"rw"
|
406
|
+
],
|
407
|
+
"kb_available": "234900",
|
408
|
+
"kb_size": "234900",
|
409
|
+
"kb_used": "0",
|
410
|
+
"percent_used": "0%",
|
411
|
+
"mount": "/dev/shm"
|
412
|
+
},
|
413
|
+
"devtmpfs": {
|
414
|
+
"fs_type": "devtmpfs",
|
415
|
+
"mount_options": [
|
416
|
+
"rw",
|
417
|
+
"nosuid",
|
418
|
+
"relatime",
|
419
|
+
"size=221296k",
|
420
|
+
"nr_inodes=55324",
|
421
|
+
"mode=755"
|
422
|
+
],
|
423
|
+
"mount": "/dev"
|
424
|
+
},
|
425
|
+
"/dev/mapper/VolGroup-lv_swap": {
|
426
|
+
"fs_type": "swap",
|
427
|
+
"uuid": "988cd40b-b5d3-4dc5-9926-10e2c79fe51a"
|
428
|
+
},
|
429
|
+
"/proc/bus/usb": {
|
430
|
+
"fs_type": "usbfs",
|
431
|
+
"mount_options": [
|
432
|
+
"rw",
|
433
|
+
"relatime"
|
434
|
+
],
|
435
|
+
"mount": "/proc/bus/usb"
|
436
|
+
},
|
437
|
+
"/dev/sda2": {
|
438
|
+
"fs_type": "LVM2_member",
|
439
|
+
"uuid": "xMbTwo-T6um-ROi2-mYbm-a8j7-UkB7-k31lDf"
|
440
|
+
},
|
441
|
+
"none": {
|
442
|
+
"fs_type": "binfmt_misc",
|
443
|
+
"mount_options": [
|
444
|
+
"rw"
|
445
|
+
],
|
446
|
+
"mount": "/proc/sys/fs/binfmt_misc"
|
447
|
+
},
|
448
|
+
"/dev/sda1": {
|
449
|
+
"fs_type": "ext4",
|
450
|
+
"mount_options": [
|
451
|
+
"rw"
|
452
|
+
],
|
453
|
+
"uuid": "54ec6f76-e3e1-469e-b6b8-a8666ffbe859",
|
454
|
+
"kb_available": "429527",
|
455
|
+
"kb_size": "495844",
|
456
|
+
"kb_used": "40717",
|
457
|
+
"percent_used": "9%",
|
458
|
+
"mount": "/boot"
|
459
|
+
},
|
460
|
+
"rootfs": {
|
461
|
+
"fs_type": "rootfs",
|
462
|
+
"mount_options": [
|
463
|
+
"rw"
|
464
|
+
],
|
465
|
+
"mount": "/"
|
466
|
+
},
|
467
|
+
"proc": {
|
468
|
+
"fs_type": "proc",
|
469
|
+
"mount_options": [
|
470
|
+
"rw"
|
471
|
+
],
|
472
|
+
"mount": "/proc"
|
473
|
+
},
|
474
|
+
"v-root": {
|
475
|
+
"fs_type": "vboxsf",
|
476
|
+
"mount_options": [
|
477
|
+
"uid=501",
|
478
|
+
"gid=501",
|
479
|
+
"rw"
|
480
|
+
],
|
481
|
+
"kb_available": "84496380",
|
482
|
+
"kb_size": "244277768",
|
483
|
+
"kb_used": "159781388",
|
484
|
+
"percent_used": "66%",
|
485
|
+
"mount": "/vagrant"
|
486
|
+
}
|
487
|
+
},
|
488
|
+
"ohai_time": 1346614637.208,
|
489
|
+
"os": "linux",
|
490
|
+
"hostname": "Fauxhai",
|
491
|
+
"fqdn": "fauxhai.local",
|
492
|
+
"macaddress": "11:11:11:11:11:11",
|
493
|
+
"uptime": "30 days 15 hours 07 minutes 30 seconds",
|
494
|
+
"keys": {
|
495
|
+
"ssh": {
|
496
|
+
"host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
|
497
|
+
"host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
|
498
|
+
}
|
499
|
+
},
|
500
|
+
"languages": {
|
501
|
+
"ruby": {
|
502
|
+
"gems_dir": "/usr/local/gems",
|
503
|
+
"gem_bin": "/usr/local/bin/gem",
|
504
|
+
"platform": "x86_64-linux",
|
505
|
+
"bin_dir": "/usr/local/bin",
|
506
|
+
"target": "x86_64-redhat-linux-gnu",
|
507
|
+
"host_vendor": "redhat",
|
508
|
+
"host": "x86_64-redhat-linux-gnu",
|
509
|
+
"host_os": "linux-gnu",
|
510
|
+
"target_os": "linux",
|
511
|
+
"release_date": "2011-06-30",
|
512
|
+
"ruby_bin": "/usr/local/bin/ruby",
|
513
|
+
"host_cpu": "x86_64",
|
514
|
+
"target_cpu": "x86_64",
|
515
|
+
"version": "1.8.7",
|
516
|
+
"target_vendor": "redhat"
|
517
|
+
}
|
518
|
+
},
|
519
|
+
"dmi": {
|
520
|
+
"system": {
|
521
|
+
"wake_up_type": "Power Switch",
|
522
|
+
"uuid": "9604B212-0712-4447-88F7-CDA0BC77464F",
|
523
|
+
"serial_number": "0",
|
524
|
+
"manufacturer": "innotek GmbH",
|
525
|
+
"product_name": "VirtualBox",
|
526
|
+
"all_records": [
|
527
|
+
{
|
528
|
+
"size": "1",
|
529
|
+
"SKU Number": "Not Specified",
|
530
|
+
"Manufacturer": "innotek GmbH",
|
531
|
+
"Version": "1.2",
|
532
|
+
"Product Name": "VirtualBox",
|
533
|
+
"Family": "Virtual Machine",
|
534
|
+
"Wake-up Type": "Power Switch",
|
535
|
+
"UUID": "9604B212-0712-4447-88F7-CDA0BC77464F",
|
536
|
+
"Serial Number": "0",
|
537
|
+
"application_identifier": "End Of Table",
|
538
|
+
"record_id": "0x0001"
|
539
|
+
}
|
540
|
+
],
|
541
|
+
"version": "1.2",
|
542
|
+
"family": "Virtual Machine",
|
543
|
+
"sku_number": "Not Specified"
|
544
|
+
},
|
545
|
+
"dmidecode_version": "2.11",
|
546
|
+
"structures": {
|
547
|
+
"size": "352",
|
548
|
+
"count": "5"
|
549
|
+
},
|
550
|
+
"smbios_version": "2.5",
|
551
|
+
"bios": {
|
552
|
+
"vendor": "innotek GmbH",
|
553
|
+
"address": "0xE0000",
|
554
|
+
"rom_size": "128 kB",
|
555
|
+
"release_date": "12/01/2006",
|
556
|
+
"runtime_size": "128 kB",
|
557
|
+
"all_records": [
|
558
|
+
{
|
559
|
+
"Release Date": "12/01/2006",
|
560
|
+
"size": "0",
|
561
|
+
"Vendor": "innotek GmbH",
|
562
|
+
"Address": "0xE0000",
|
563
|
+
"Characteristics": {
|
564
|
+
"CGA/mono video services are supported (int 10h)": null,
|
565
|
+
"Boot from CD is supported": null,
|
566
|
+
"Selectable boot is supported": null,
|
567
|
+
"ACPI is supported": null,
|
568
|
+
"8042 keyboard services are supported (int 9h)": null,
|
569
|
+
"PCI is supported": null,
|
570
|
+
"ISA is supported": null
|
571
|
+
},
|
572
|
+
"Version": "VirtualBox",
|
573
|
+
"ROM Size": "128 kB",
|
574
|
+
"Runtime Size": "128 kB",
|
575
|
+
"application_identifier": "BIOS Information",
|
576
|
+
"record_id": "0x0000"
|
577
|
+
}
|
578
|
+
],
|
579
|
+
"version": "VirtualBox"
|
580
|
+
},
|
581
|
+
"table_location": "0x000E1000"
|
582
|
+
}
|
583
|
+
}
|