fauxhai 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/CHANGELOG.md +16 -0
- data/fauxhai.gemspec +16 -16
- data/lib/fauxhai/mocker.rb +9 -3
- data/lib/fauxhai/platforms/opensuse/12.3.json +528 -0
- data/lib/fauxhai/runner.rb +0 -1
- metadata +7 -5
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p429
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# 1.0.0 / 2013-05-09
|
2
|
+
|
3
|
+
- Support `path` option to specify the fixture data ([#21][])
|
4
|
+
- Require `version` option for platform, drop (undocumented) support for default versions ([#25][], [#26][])
|
5
|
+
- Update gem paths on Ubuntu 10.04 data ([#18][], [#19][])
|
6
|
+
- Add SmartOS joyent_20130111T180733Z ([#23][])
|
7
|
+
- Add Debian 7.0 (Wheezy) ([#24][])
|
8
|
+
|
9
|
+
<!--- The following link definition list is generated by PimpMyChangelog --->
|
10
|
+
[#18]: https://github.com/customink/fauxhai/issues/18
|
11
|
+
[#19]: https://github.com/customink/fauxhai/issues/19
|
12
|
+
[#21]: https://github.com/customink/fauxhai/issues/21
|
13
|
+
[#23]: https://github.com/customink/fauxhai/issues/23
|
14
|
+
[#24]: https://github.com/customink/fauxhai/issues/24
|
15
|
+
[#25]: https://github.com/customink/fauxhai/issues/25
|
16
|
+
[#26]: https://github.com/customink/fauxhai/issues/26
|
data/fauxhai.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
lib = File.expand_path('../lib', __FILE__)
|
2
2
|
$:.unshift(lib) unless $:.include?(lib)
|
3
3
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = 'fauxhai'
|
6
|
+
spec.version = '1.1.0'
|
7
|
+
spec.authors = ['Seth Vargo']
|
8
|
+
spec.email = ['sethvargo@gmail.com']
|
9
|
+
spec.description = %q{Easily mock out ohai data}
|
10
|
+
spec.summary = %q{Fauxhai provides an easy way to mock out your ohai data for testing with chefspec!}
|
11
|
+
spec.homepage = 'https://github.com/customink/fauxhai'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
gem.require_paths = ['lib']
|
13
|
+
spec.files = `git ls-files`.split($\)
|
14
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
+
spec.require_paths = ['lib']
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
spec.add_runtime_dependency 'httparty'
|
19
|
+
spec.add_runtime_dependency 'net-ssh'
|
20
|
+
spec.add_runtime_dependency 'ohai'
|
21
21
|
|
22
|
-
|
22
|
+
spec.add_development_dependency 'rake'
|
23
23
|
end
|
data/lib/fauxhai/mocker.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
require 'json'
|
2
1
|
require 'httparty'
|
2
|
+
require 'json'
|
3
|
+
require 'pathname'
|
3
4
|
|
4
5
|
module Fauxhai
|
5
6
|
class Mocker
|
@@ -53,8 +54,13 @@ module Fauxhai
|
|
53
54
|
elsif
|
54
55
|
# Try loading from github (in case someone submitted a PR with a new file, but we haven't
|
55
56
|
# yet updated the gem version). Cache the response locally so it's faster next time.
|
56
|
-
|
57
|
-
|
57
|
+
url = "https://raw.github.com/customink/fauxhai/master/lib/fauxhai/platforms/#{platform}/#{version}.json"
|
58
|
+
response = HTTParty.get(url)
|
59
|
+
|
60
|
+
if response.code.to_i == 200
|
61
|
+
path = Pathname.new(filepath)
|
62
|
+
FileUtils.mkdir_p(path.dirname)
|
63
|
+
|
58
64
|
File.open(filepath, 'w'){ |f| f.write(response.body) }
|
59
65
|
return JSON.parse(response.body)
|
60
66
|
else
|
@@ -0,0 +1,528 @@
|
|
1
|
+
{
|
2
|
+
"kernel": {
|
3
|
+
"name": "Linux",
|
4
|
+
"release": "3.7.10-1.1-desktop",
|
5
|
+
"version": "#1 SMP PREEMPT Thu Feb 28 15:06:29 UTC 2013 (82d3f21)",
|
6
|
+
"machine": "x86_64",
|
7
|
+
"modules": {
|
8
|
+
"af_packet": {
|
9
|
+
"size": "39587",
|
10
|
+
"refcount": "0"
|
11
|
+
},
|
12
|
+
"xt_tcpudp": {
|
13
|
+
"size": "12885",
|
14
|
+
"refcount": "6"
|
15
|
+
},
|
16
|
+
"xt_pkttype": {
|
17
|
+
"size": "12505",
|
18
|
+
"refcount": "3"
|
19
|
+
},
|
20
|
+
"xt_LOG": {
|
21
|
+
"size": "17522",
|
22
|
+
"refcount": "12"
|
23
|
+
},
|
24
|
+
"xt_limit": {
|
25
|
+
"size": "12712",
|
26
|
+
"refcount": "12"
|
27
|
+
},
|
28
|
+
"ppdev": {
|
29
|
+
"size": "17679",
|
30
|
+
"refcount": "0"
|
31
|
+
},
|
32
|
+
"ip6t_REJECT": {
|
33
|
+
"size": "12940",
|
34
|
+
"refcount": "3"
|
35
|
+
},
|
36
|
+
"nf_conntrack_ipv6": {
|
37
|
+
"size": "14684",
|
38
|
+
"refcount": "3"
|
39
|
+
},
|
40
|
+
"nf_defrag_ipv6": {
|
41
|
+
"size": "18262",
|
42
|
+
"refcount": "1"
|
43
|
+
},
|
44
|
+
"ip6table_raw": {
|
45
|
+
"size": "12684",
|
46
|
+
"refcount": "1"
|
47
|
+
},
|
48
|
+
"ipt_REJECT": {
|
49
|
+
"size": "12542",
|
50
|
+
"refcount": "3"
|
51
|
+
},
|
52
|
+
"iptable_raw": {
|
53
|
+
"size": "12679",
|
54
|
+
"refcount": "1"
|
55
|
+
},
|
56
|
+
"xt_CT": {
|
57
|
+
"size": "12869",
|
58
|
+
"refcount": "4"
|
59
|
+
},
|
60
|
+
"iptable_filter": {
|
61
|
+
"size": "12811",
|
62
|
+
"refcount": "1"
|
63
|
+
},
|
64
|
+
"microcode": {
|
65
|
+
"size": "35785",
|
66
|
+
"refcount": "0"
|
67
|
+
},
|
68
|
+
"ip6table_mangle": {
|
69
|
+
"size": "12701",
|
70
|
+
"refcount": "0"
|
71
|
+
},
|
72
|
+
"vboxvideo": {
|
73
|
+
"size": "12612",
|
74
|
+
"refcount": "0"
|
75
|
+
},
|
76
|
+
"nf_conntrack_netbios_ns": {
|
77
|
+
"size": "12666",
|
78
|
+
"refcount": "0"
|
79
|
+
},
|
80
|
+
"nf_conntrack_broadcast": {
|
81
|
+
"size": "12590",
|
82
|
+
"refcount": "1"
|
83
|
+
},
|
84
|
+
"drm": {
|
85
|
+
"size": "293115",
|
86
|
+
"refcount": "1"
|
87
|
+
},
|
88
|
+
"snd_intel8x0": {
|
89
|
+
"size": "38140",
|
90
|
+
"refcount": "0"
|
91
|
+
},
|
92
|
+
"nf_conntrack_ipv4": {
|
93
|
+
"size": "15013",
|
94
|
+
"refcount": "3"
|
95
|
+
},
|
96
|
+
"nf_defrag_ipv4": {
|
97
|
+
"size": "12730",
|
98
|
+
"refcount": "1"
|
99
|
+
},
|
100
|
+
"ip_tables": {
|
101
|
+
"size": "27240",
|
102
|
+
"refcount": "2"
|
103
|
+
},
|
104
|
+
"xt_conntrack": {
|
105
|
+
"size": "12761",
|
106
|
+
"refcount": "6"
|
107
|
+
},
|
108
|
+
"nf_conntrack": {
|
109
|
+
"size": "98519",
|
110
|
+
"refcount": "6"
|
111
|
+
},
|
112
|
+
"vboxsf": {
|
113
|
+
"size": "43658",
|
114
|
+
"refcount": "0"
|
115
|
+
},
|
116
|
+
"ip6table_filter": {
|
117
|
+
"size": "12816",
|
118
|
+
"refcount": "1"
|
119
|
+
},
|
120
|
+
"snd_ac97_codec": {
|
121
|
+
"size": "134367",
|
122
|
+
"refcount": "1"
|
123
|
+
},
|
124
|
+
"ip6_tables": {
|
125
|
+
"size": "27208",
|
126
|
+
"refcount": "3"
|
127
|
+
},
|
128
|
+
"ac97_bus": {
|
129
|
+
"size": "12767",
|
130
|
+
"refcount": "1"
|
131
|
+
},
|
132
|
+
"x_tables": {
|
133
|
+
"size": "34060",
|
134
|
+
"refcount": "15"
|
135
|
+
},
|
136
|
+
"i2c_piix4": {
|
137
|
+
"size": "13915",
|
138
|
+
"refcount": "0"
|
139
|
+
},
|
140
|
+
"joydev": {
|
141
|
+
"size": "17378",
|
142
|
+
"refcount": "0"
|
143
|
+
},
|
144
|
+
"pcspkr": {
|
145
|
+
"size": "12719",
|
146
|
+
"refcount": "0"
|
147
|
+
},
|
148
|
+
"mperf": {
|
149
|
+
"size": "12668",
|
150
|
+
"refcount": "0"
|
151
|
+
},
|
152
|
+
"snd_pcm": {
|
153
|
+
"size": "110154",
|
154
|
+
"refcount": "2"
|
155
|
+
},
|
156
|
+
"snd_timer": {
|
157
|
+
"size": "29371",
|
158
|
+
"refcount": "1"
|
159
|
+
},
|
160
|
+
"parport_pc": {
|
161
|
+
"size": "37266",
|
162
|
+
"refcount": "0"
|
163
|
+
},
|
164
|
+
"snd": {
|
165
|
+
"size": "91489",
|
166
|
+
"refcount": "4"
|
167
|
+
},
|
168
|
+
"e1000": {
|
169
|
+
"size": "153672",
|
170
|
+
"refcount": "0"
|
171
|
+
},
|
172
|
+
"parport": {
|
173
|
+
"size": "46311",
|
174
|
+
"refcount": "2"
|
175
|
+
},
|
176
|
+
"soundcore": {
|
177
|
+
"size": "15048",
|
178
|
+
"refcount": "1"
|
179
|
+
},
|
180
|
+
"sg": {
|
181
|
+
"size": "36525",
|
182
|
+
"refcount": "0"
|
183
|
+
},
|
184
|
+
"vboxguest": {
|
185
|
+
"size": "243642",
|
186
|
+
"refcount": "1"
|
187
|
+
},
|
188
|
+
"snd_page_alloc": {
|
189
|
+
"size": "18711",
|
190
|
+
"refcount": "2"
|
191
|
+
},
|
192
|
+
"ac": {
|
193
|
+
"size": "13133",
|
194
|
+
"refcount": "0"
|
195
|
+
},
|
196
|
+
"sr_mod": {
|
197
|
+
"size": "22296",
|
198
|
+
"refcount": "0"
|
199
|
+
},
|
200
|
+
"cdrom": {
|
201
|
+
"size": "46688",
|
202
|
+
"refcount": "1"
|
203
|
+
},
|
204
|
+
"button": {
|
205
|
+
"size": "13953",
|
206
|
+
"refcount": "0"
|
207
|
+
},
|
208
|
+
"autofs4": {
|
209
|
+
"size": "42771",
|
210
|
+
"refcount": "2"
|
211
|
+
},
|
212
|
+
"processor": {
|
213
|
+
"size": "44950",
|
214
|
+
"refcount": "0"
|
215
|
+
},
|
216
|
+
"thermal_sys": {
|
217
|
+
"size": "24957",
|
218
|
+
"refcount": "1"
|
219
|
+
},
|
220
|
+
"scsi_dh_alua": {
|
221
|
+
"size": "17162",
|
222
|
+
"refcount": "0"
|
223
|
+
},
|
224
|
+
"scsi_dh_emc": {
|
225
|
+
"size": "17259",
|
226
|
+
"refcount": "0"
|
227
|
+
},
|
228
|
+
"scsi_dh_hp_sw": {
|
229
|
+
"size": "12895",
|
230
|
+
"refcount": "0"
|
231
|
+
},
|
232
|
+
"scsi_dh_rdac": {
|
233
|
+
"size": "17409",
|
234
|
+
"refcount": "0"
|
235
|
+
},
|
236
|
+
"scsi_dh": {
|
237
|
+
"size": "14844",
|
238
|
+
"refcount": "4"
|
239
|
+
},
|
240
|
+
"ata_generic": {
|
241
|
+
"size": "12911",
|
242
|
+
"refcount": "0"
|
243
|
+
},
|
244
|
+
"ata_piix": {
|
245
|
+
"size": "35039",
|
246
|
+
"refcount": "0"
|
247
|
+
}
|
248
|
+
},
|
249
|
+
"os": "GNU/Linux"
|
250
|
+
},
|
251
|
+
"os": "linux",
|
252
|
+
"os_version": "3.7.10-1.1-desktop",
|
253
|
+
"platform": "suse",
|
254
|
+
"platform_version": "12.3",
|
255
|
+
"platform_family": "suse",
|
256
|
+
"dmi": {
|
257
|
+
},
|
258
|
+
"ohai_time": 1368710374.8632581,
|
259
|
+
"command": {
|
260
|
+
"ps": "ps -ef"
|
261
|
+
},
|
262
|
+
"filesystem": {
|
263
|
+
"devtmpfs": {
|
264
|
+
"kb_size": "1024452",
|
265
|
+
"kb_used": "56",
|
266
|
+
"kb_available": "1024396",
|
267
|
+
"percent_used": "1%",
|
268
|
+
"mount": "/dev",
|
269
|
+
"fs_type": "devtmpfs",
|
270
|
+
"mount_options": [
|
271
|
+
"rw",
|
272
|
+
"relatime",
|
273
|
+
"size=1024452k",
|
274
|
+
"nr_inodes=256113",
|
275
|
+
"mode=755"
|
276
|
+
]
|
277
|
+
},
|
278
|
+
"tmpfs": {
|
279
|
+
"kb_size": "1027572",
|
280
|
+
"kb_used": "2280",
|
281
|
+
"kb_available": "1025292",
|
282
|
+
"percent_used": "1%",
|
283
|
+
"mount": "/var/lock",
|
284
|
+
"fs_type": "tmpfs",
|
285
|
+
"mount_options": [
|
286
|
+
"rw",
|
287
|
+
"nosuid",
|
288
|
+
"nodev",
|
289
|
+
"relatime",
|
290
|
+
"mode=755"
|
291
|
+
]
|
292
|
+
},
|
293
|
+
"/dev/sda1": {
|
294
|
+
"kb_size": "8255928",
|
295
|
+
"kb_used": "1129632",
|
296
|
+
"kb_available": "6706920",
|
297
|
+
"percent_used": "15%",
|
298
|
+
"mount": "/",
|
299
|
+
"fs_type": "ext4",
|
300
|
+
"mount_options": [
|
301
|
+
"rw",
|
302
|
+
"relatime",
|
303
|
+
"data=ordered"
|
304
|
+
],
|
305
|
+
"uuid": "0de35a97-9b1a-4fbe-8f89-d52772527eb0"
|
306
|
+
},
|
307
|
+
"devpts": {
|
308
|
+
"mount": "/dev/pts",
|
309
|
+
"fs_type": "devpts",
|
310
|
+
"mount_options": [
|
311
|
+
"rw",
|
312
|
+
"relatime",
|
313
|
+
"gid=5",
|
314
|
+
"mode=620",
|
315
|
+
"ptmxmode=000"
|
316
|
+
]
|
317
|
+
},
|
318
|
+
"proc": {
|
319
|
+
"mount": "/proc",
|
320
|
+
"fs_type": "proc",
|
321
|
+
"mount_options": [
|
322
|
+
"rw",
|
323
|
+
"relatime"
|
324
|
+
]
|
325
|
+
},
|
326
|
+
"sysfs": {
|
327
|
+
"mount": "/sys",
|
328
|
+
"fs_type": "sysfs",
|
329
|
+
"mount_options": [
|
330
|
+
"rw",
|
331
|
+
"relatime"
|
332
|
+
]
|
333
|
+
},
|
334
|
+
"securityfs": {
|
335
|
+
"mount": "/sys/kernel/security",
|
336
|
+
"fs_type": "securityfs",
|
337
|
+
"mount_options": [
|
338
|
+
"rw",
|
339
|
+
"nosuid",
|
340
|
+
"nodev",
|
341
|
+
"noexec",
|
342
|
+
"relatime"
|
343
|
+
]
|
344
|
+
},
|
345
|
+
"cgroup": {
|
346
|
+
"mount": "/sys/fs/cgroup/hugetlb",
|
347
|
+
"fs_type": "cgroup",
|
348
|
+
"mount_options": [
|
349
|
+
"rw",
|
350
|
+
"nosuid",
|
351
|
+
"nodev",
|
352
|
+
"noexec",
|
353
|
+
"relatime",
|
354
|
+
"hugetlb"
|
355
|
+
]
|
356
|
+
},
|
357
|
+
"systemd-1": {
|
358
|
+
"mount": "/proc/sys/fs/binfmt_misc",
|
359
|
+
"fs_type": "autofs",
|
360
|
+
"mount_options": [
|
361
|
+
"rw",
|
362
|
+
"relatime",
|
363
|
+
"fd=22",
|
364
|
+
"pgrp=1",
|
365
|
+
"timeout=300",
|
366
|
+
"minproto=5",
|
367
|
+
"maxproto=5",
|
368
|
+
"direct"
|
369
|
+
]
|
370
|
+
},
|
371
|
+
"mqueue": {
|
372
|
+
"mount": "/dev/mqueue",
|
373
|
+
"fs_type": "mqueue",
|
374
|
+
"mount_options": [
|
375
|
+
"rw",
|
376
|
+
"relatime"
|
377
|
+
]
|
378
|
+
},
|
379
|
+
"hugetlbfs": {
|
380
|
+
"mount": "/dev/hugepages",
|
381
|
+
"fs_type": "hugetlbfs",
|
382
|
+
"mount_options": [
|
383
|
+
"rw",
|
384
|
+
"relatime"
|
385
|
+
]
|
386
|
+
},
|
387
|
+
"debugfs": {
|
388
|
+
"mount": "/sys/kernel/debug",
|
389
|
+
"fs_type": "debugfs",
|
390
|
+
"mount_options": [
|
391
|
+
"rw",
|
392
|
+
"relatime"
|
393
|
+
]
|
394
|
+
},
|
395
|
+
"rootfs": {
|
396
|
+
"mount": "/",
|
397
|
+
"fs_type": "rootfs",
|
398
|
+
"mount_options": [
|
399
|
+
"rw"
|
400
|
+
]
|
401
|
+
}
|
402
|
+
},
|
403
|
+
"languages": {
|
404
|
+
"ruby": {
|
405
|
+
"platform": "x86_64-linux",
|
406
|
+
"version": "1.9.3",
|
407
|
+
"release_date": "2013-02-06",
|
408
|
+
"target": "x86_64-suse-linux-gnu",
|
409
|
+
"target_cpu": "x86_64",
|
410
|
+
"target_vendor": "suse",
|
411
|
+
"target_os": "linux",
|
412
|
+
"host": "x86_64-suse-linux-gnu",
|
413
|
+
"host_cpu": "x86_64",
|
414
|
+
"host_os": "linux-gnu",
|
415
|
+
"host_vendor": "suse",
|
416
|
+
"bin_dir": "/usr/local/bin",
|
417
|
+
"ruby_bin": "/usr/local/bin/ruby",
|
418
|
+
"gems_dir": "/usr/local/gems",
|
419
|
+
"gem_bin": "/usr/local/bin/gem"
|
420
|
+
}
|
421
|
+
},
|
422
|
+
"chef_packages": {
|
423
|
+
"chef": {
|
424
|
+
"version": "10.24.0",
|
425
|
+
"chef_root": "/usr/local/gems/chef-10.24.0/lib"
|
426
|
+
},
|
427
|
+
"ohai": {
|
428
|
+
"version": "6.14.0",
|
429
|
+
"ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai"
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"counters": {
|
433
|
+
"network": {
|
434
|
+
"interfaces": {
|
435
|
+
"eth0": {
|
436
|
+
"rx": {
|
437
|
+
"bytes": "0",
|
438
|
+
"packets": "0",
|
439
|
+
"errors": "0",
|
440
|
+
"drop": 0,
|
441
|
+
"overrun": 0,
|
442
|
+
"frame": 0,
|
443
|
+
"compressed": 0,
|
444
|
+
"multicast": 0
|
445
|
+
},
|
446
|
+
"tx": {
|
447
|
+
"bytes": "342",
|
448
|
+
"packets": "0",
|
449
|
+
"errors": "0",
|
450
|
+
"drop": 0,
|
451
|
+
"overrun": 0,
|
452
|
+
"collisions": "0",
|
453
|
+
"carrier": 0,
|
454
|
+
"compressed": 0
|
455
|
+
}
|
456
|
+
}
|
457
|
+
}
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"current_user": "fauxhai",
|
461
|
+
"domain": "local",
|
462
|
+
"etc": {
|
463
|
+
"passwd": {
|
464
|
+
"fauxhai": {
|
465
|
+
"dir": "/home/fauxhai",
|
466
|
+
"gid": 0,
|
467
|
+
"uid": 0,
|
468
|
+
"shell": "/bin/bash",
|
469
|
+
"gecos": "Fauxhai"
|
470
|
+
}
|
471
|
+
},
|
472
|
+
"group": {
|
473
|
+
"fauxhai": {
|
474
|
+
"gid": 0,
|
475
|
+
"members": [
|
476
|
+
"fauxhai"
|
477
|
+
]
|
478
|
+
}
|
479
|
+
}
|
480
|
+
},
|
481
|
+
"hostname": "Fauxhai",
|
482
|
+
"fqdn": "fauxhai.local",
|
483
|
+
"ipaddress": "10.0.0.2",
|
484
|
+
"keys": {
|
485
|
+
"ssh": {
|
486
|
+
"host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
|
487
|
+
"host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
|
488
|
+
}
|
489
|
+
},
|
490
|
+
"macaddress": "11:11:11:11:11:11",
|
491
|
+
"network": {
|
492
|
+
"default_gateway": "10.0.0.1",
|
493
|
+
"default_interface": "eth0",
|
494
|
+
"eth0": {
|
495
|
+
"addresses": {
|
496
|
+
"10.0.0.2": {
|
497
|
+
"broadcast": "10.0.0.255",
|
498
|
+
"family": "inet",
|
499
|
+
"netmask": "255.255.255.0",
|
500
|
+
"prefixlen": "23",
|
501
|
+
"scope": "Global"
|
502
|
+
}
|
503
|
+
},
|
504
|
+
"arp": {
|
505
|
+
"10.0.0.1": "fe:ff:ff:ff:ff:ff"
|
506
|
+
},
|
507
|
+
"encapsulation": "Ethernet",
|
508
|
+
"flags": [
|
509
|
+
"BROADCAST",
|
510
|
+
"MULTICAST",
|
511
|
+
"UP",
|
512
|
+
"LOWER_UP"
|
513
|
+
],
|
514
|
+
"mtu": "1500",
|
515
|
+
"number": "0",
|
516
|
+
"routes": {
|
517
|
+
"10.0.0.0/255": {
|
518
|
+
"scope": "link",
|
519
|
+
"src": "10.0.0.2"
|
520
|
+
}
|
521
|
+
},
|
522
|
+
"state": "up",
|
523
|
+
"type": "eth"
|
524
|
+
}
|
525
|
+
},
|
526
|
+
"uptime": "30 days 15 hours 07 minutes 30 seconds",
|
527
|
+
"uptime_seconds": 2646450
|
528
|
+
}
|
data/lib/fauxhai/runner.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fauxhai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: httparty
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: net-ssh
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: ohai
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -85,6 +85,7 @@ extra_rdoc_files: []
|
|
85
85
|
files:
|
86
86
|
- .gitignore
|
87
87
|
- .ruby-version
|
88
|
+
- CHANGELOG.md
|
88
89
|
- Gemfile
|
89
90
|
- LICENSE
|
90
91
|
- README.md
|
@@ -113,6 +114,7 @@ files:
|
|
113
114
|
- lib/fauxhai/platforms/mac_os_x/10.7.4.json
|
114
115
|
- lib/fauxhai/platforms/mac_os_x/10.8.2.json
|
115
116
|
- lib/fauxhai/platforms/omnios/151002.json
|
117
|
+
- lib/fauxhai/platforms/opensuse/12.3.json
|
116
118
|
- lib/fauxhai/platforms/redhat/5.8.json
|
117
119
|
- lib/fauxhai/platforms/redhat/6.3.json
|
118
120
|
- lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json
|