fauxhai 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -150,7 +150,7 @@ Fauxhai is community-maintained and updated. Aside from the initial files, all o
150
150
  2. Install chef, ohai, and fauxhai
151
151
  3. Run the following at the command line:
152
152
 
153
- sudo fauxhai
153
+ sudo fauxhai > /tmp/fauxhai.json
154
154
 
155
155
  4. This will create a file `/tmp/fauxhai.json`
156
156
  5. Copy the contents of this file to your local development machine (using scp or sftp, for example)
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.3'
5
+ gem.version = '0.0.4'
6
6
  gem.authors = ['Seth Vargo']
7
7
  gem.email = ['svargo@customink.com']
8
8
  gem.description = %q{Easily mock out ohai data}
@@ -0,0 +1,291 @@
1
+ {
2
+ "kernel": {
3
+ "name": "Linux",
4
+ "release": "3.2.30-49.59.amzn1.x86_64",
5
+ "version": "#1 SMP Wed Oct 3 19:54:33 UTC 2012",
6
+ "machine": "x86_64",
7
+ "modules": {
8
+ "ext3": {
9
+ "size": "211770",
10
+ "refcount": "1"
11
+ },
12
+ "jbd": {
13
+ "size": "77405",
14
+ "refcount": "1"
15
+ },
16
+ "ipv6": {
17
+ "size": "317151",
18
+ "refcount": "10"
19
+ },
20
+ "binfmt_misc": {
21
+ "size": "7368",
22
+ "refcount": "1"
23
+ },
24
+ "scsi_mod": {
25
+ "size": "199543",
26
+ "refcount": "0"
27
+ },
28
+ "ext4": {
29
+ "size": "456530",
30
+ "refcount": "1"
31
+ },
32
+ "mbcache": {
33
+ "size": "7109",
34
+ "refcount": "2"
35
+ },
36
+ "jbd2": {
37
+ "size": "86650",
38
+ "refcount": "1"
39
+ },
40
+ "crc16": {
41
+ "size": "1527",
42
+ "refcount": "1"
43
+ },
44
+ "dm_mirror": {
45
+ "size": "13888",
46
+ "refcount": "0"
47
+ },
48
+ "dm_region_hash": {
49
+ "size": "9528",
50
+ "refcount": "1"
51
+ },
52
+ "dm_log": {
53
+ "size": "9143",
54
+ "refcount": "2"
55
+ },
56
+ "dm_mod": {
57
+ "size": "74308",
58
+ "refcount": "2"
59
+ }
60
+ },
61
+ "os": "GNU/Linux"
62
+ },
63
+ "os": "linux",
64
+ "os_version": "3.2.30-49.59.amzn1.x86_64",
65
+ "platform": "amazon",
66
+ "platform_version": "2012.09",
67
+ "platform_family": "rhel",
68
+ "ohai_time": 1352176490.6813455,
69
+ "dmi": {
70
+ },
71
+ "command": {
72
+ "ps": "ps -ef"
73
+ },
74
+ "filesystem": {
75
+ "/dev/xvda1": {
76
+ "kb_size": "8256952",
77
+ "kb_used": "1022016",
78
+ "kb_available": "7151052",
79
+ "percent_used": "13%",
80
+ "mount": "/",
81
+ "fs_type": "ext4",
82
+ "mount_options": [
83
+ "rw",
84
+ "noatime"
85
+ ],
86
+ "uuid": "ebbf1f1c-fb71-40aa-93a3-056b455e5127",
87
+ "label": "/"
88
+ },
89
+ "tmpfs": {
90
+ "kb_size": "848480",
91
+ "kb_used": "0",
92
+ "kb_available": "848480",
93
+ "percent_used": "0%",
94
+ "mount": "/dev/shm",
95
+ "fs_type": "tmpfs",
96
+ "mount_options": [
97
+ "rw"
98
+ ]
99
+ },
100
+ "/dev/xvda2": {
101
+ "kb_size": "153899044",
102
+ "kb_used": "192068",
103
+ "kb_available": "145889352",
104
+ "percent_used": "1%",
105
+ "mount": "/media/ephemeral0",
106
+ "fs_type": "ext3",
107
+ "mount_options": [
108
+ "rw"
109
+ ],
110
+ "uuid": "05ed183c-12fd-465b-afc1-4c5081537b08"
111
+ },
112
+ "proc": {
113
+ "mount": "/proc",
114
+ "fs_type": "proc",
115
+ "mount_options": [
116
+ "rw"
117
+ ]
118
+ },
119
+ "sysfs": {
120
+ "mount": "/sys",
121
+ "fs_type": "sysfs",
122
+ "mount_options": [
123
+ "rw"
124
+ ]
125
+ },
126
+ "devpts": {
127
+ "mount": "/dev/pts",
128
+ "fs_type": "devpts",
129
+ "mount_options": [
130
+ "rw",
131
+ "gid=5",
132
+ "mode=620"
133
+ ]
134
+ },
135
+ "none": {
136
+ "mount": "/proc/sys/fs/binfmt_misc",
137
+ "fs_type": "binfmt_misc",
138
+ "mount_options": [
139
+ "rw"
140
+ ]
141
+ },
142
+ "/dev/xvda3": {
143
+ "fs_type": "swap",
144
+ "uuid": "0e291033-975c-419d-a126-7dc4418001c4"
145
+ },
146
+ "rootfs": {
147
+ "mount": "/",
148
+ "fs_type": "rootfs",
149
+ "mount_options": [
150
+ "rw"
151
+ ]
152
+ },
153
+ "devtmpfs": {
154
+ "mount": "/dev",
155
+ "fs_type": "devtmpfs",
156
+ "mount_options": [
157
+ "rw",
158
+ "nosuid",
159
+ "relatime",
160
+ "size=837648k",
161
+ "nr_inodes=209412",
162
+ "mode=755"
163
+ ]
164
+ }
165
+ },
166
+ "languages": {
167
+ "ruby": {
168
+ "platform": "x86_64-linux",
169
+ "version": "1.8.7",
170
+ "release_date": "2012-02-08",
171
+ "target": "x86_64-amazon-linux-gnu",
172
+ "target_cpu": "x86_64",
173
+ "target_vendor": "amazon",
174
+ "target_os": "linux",
175
+ "host": "x86_64-redhat-linux-gnu",
176
+ "host_cpu": "x86_64",
177
+ "host_os": "linux-gnu",
178
+ "host_vendor": "redhat",
179
+ "bin_dir": "/usr/local/bin",
180
+ "ruby_bin": "/usr/local/bin/ruby",
181
+ "gems_dir": "/usr/local/gems",
182
+ "gem_bin": "/usr/local/bin/gem"
183
+ }
184
+ },
185
+ "chef_packages": {
186
+ "chef": {
187
+ "version": "10.16.2",
188
+ "chef_root": "/usr/local/gems/chef-10.16.2/lib"
189
+ },
190
+ "ohai": {
191
+ "version": "6.14.0",
192
+ "ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai"
193
+ }
194
+ },
195
+ "counters": {
196
+ "network": {
197
+ "interfaces": {
198
+ "eth0": {
199
+ "rx": {
200
+ "bytes": "0",
201
+ "packets": "0",
202
+ "errors": "0",
203
+ "drop": 0,
204
+ "overrun": 0,
205
+ "frame": 0,
206
+ "compressed": 0,
207
+ "multicast": 0
208
+ },
209
+ "tx": {
210
+ "bytes": "342",
211
+ "packets": "0",
212
+ "errors": "0",
213
+ "drop": 0,
214
+ "overrun": 0,
215
+ "collisions": "0",
216
+ "carrier": 0,
217
+ "compressed": 0
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ "current_user": "fauxhai",
224
+ "domain": "local",
225
+ "etc": {
226
+ "passwd": {
227
+ "fauxhai": {
228
+ "dir": "/home/fauxhai",
229
+ "gid": 0,
230
+ "uid": 0,
231
+ "shell": "/bin/bash",
232
+ "gecos": "Fauxhai"
233
+ }
234
+ },
235
+ "group": {
236
+ "fauxhai": {
237
+ "gid": 0,
238
+ "members": [
239
+ "fauxhai"
240
+ ]
241
+ }
242
+ }
243
+ },
244
+ "hostname": "Fauxhai",
245
+ "fqdn": "fauxhai.local",
246
+ "ipaddress": "10.0.0.2",
247
+ "keys": {
248
+ "ssh": {
249
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
250
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
251
+ }
252
+ },
253
+ "macaddress": "11:11:11:11:11:11",
254
+ "network": {
255
+ "default_gateway": "10.0.0.1",
256
+ "default_interface": "eth0",
257
+ "eth0": {
258
+ "addresses": {
259
+ "10.0.0.2": {
260
+ "broadcast": "10.0.0.255",
261
+ "family": "inet",
262
+ "netmask": "255.255.255.0",
263
+ "prefixlen": "23",
264
+ "scope": "Global"
265
+ }
266
+ },
267
+ "arp": {
268
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
269
+ },
270
+ "encapsulation": "Ethernet",
271
+ "flags": [
272
+ "BROADCAST",
273
+ "MULTICAST",
274
+ "UP",
275
+ "LOWER_UP"
276
+ ],
277
+ "mtu": "1500",
278
+ "number": "0",
279
+ "routes": {
280
+ "10.0.0.0/255": {
281
+ "scope": "link",
282
+ "src": "10.0.0.2"
283
+ }
284
+ },
285
+ "state": "up",
286
+ "type": "eth"
287
+ }
288
+ },
289
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
290
+ "uptime_seconds": 2646450
291
+ }
@@ -0,0 +1,280 @@
1
+ {
2
+ "kernel": {
3
+ "name": "Linux",
4
+ "release": "2.6.32-5-amd64",
5
+ "version": "#1 SMP Sun May 6 04:00:17 UTC 2012",
6
+ "machine": "x86_64",
7
+ "modules": {
8
+ "ext2": {
9
+ "size": "52905",
10
+ "refcount": "1"
11
+ },
12
+ "loop": {
13
+ "size": "11799",
14
+ "refcount": "0"
15
+ },
16
+ "dm_crypt": {
17
+ "size": "10664",
18
+ "refcount": "0"
19
+ },
20
+ "snd_pcm": {
21
+ "size": "60487",
22
+ "refcount": "0"
23
+ },
24
+ "snd_timer": {
25
+ "size": "15598",
26
+ "refcount": "1"
27
+ },
28
+ "parport_pc": {
29
+ "size": "18855",
30
+ "refcount": "0"
31
+ },
32
+ "ac": {
33
+ "size": "2192",
34
+ "refcount": "0"
35
+ },
36
+ "parport": {
37
+ "size": "27954",
38
+ "refcount": "1"
39
+ },
40
+ "snd": {
41
+ "size": "46526",
42
+ "refcount": "2"
43
+ },
44
+ "processor": {
45
+ "size": "29935",
46
+ "refcount": "0"
47
+ },
48
+ "soundcore": {
49
+ "size": "4598",
50
+ "refcount": "1"
51
+ },
52
+ "evdev": {
53
+ "size": "7352",
54
+ "refcount": "3"
55
+ },
56
+ "psmouse": {
57
+ "size": "49985",
58
+ "refcount": "0"
59
+ },
60
+ "snd_page_alloc": {
61
+ "size": "6249",
62
+ "refcount": "1"
63
+ },
64
+ "i2c_piix4": {
65
+ "size": "8328",
66
+ "refcount": "0"
67
+ },
68
+ "serio_raw": {
69
+ "size": "3752",
70
+ "refcount": "0"
71
+ },
72
+ "button": {
73
+ "size": "4650",
74
+ "refcount": "0"
75
+ },
76
+ "pcspkr": {
77
+ "size": "1699",
78
+ "refcount": "0"
79
+ },
80
+ "i2c_core": {
81
+ "size": "15819",
82
+ "refcount": "1"
83
+ },
84
+ "ext3": {
85
+ "size": "106710",
86
+ "refcount": "1"
87
+ },
88
+ "jbd": {
89
+ "size": "37317",
90
+ "refcount": "1"
91
+ },
92
+ "mbcache": {
93
+ "size": "5050",
94
+ "refcount": "2"
95
+ },
96
+ "dm_mod": {
97
+ "size": "53946",
98
+ "refcount": "7"
99
+ },
100
+ "sg": {
101
+ "size": "24069",
102
+ "refcount": "0"
103
+ },
104
+ "sd_mod": {
105
+ "size": "29937",
106
+ "refcount": "3"
107
+ },
108
+ "crc_t10dif": {
109
+ "size": "1276",
110
+ "refcount": "1"
111
+ },
112
+ "sr_mod": {
113
+ "size": "12602",
114
+ "refcount": "0"
115
+ },
116
+ "cdrom": {
117
+ "size": "29351",
118
+ "refcount": "1"
119
+ },
120
+ "ata_generic": {
121
+ "size": "3239",
122
+ "refcount": "0"
123
+ },
124
+ "ata_piix": {
125
+ "size": "21124",
126
+ "refcount": "0"
127
+ },
128
+ "ahci": {
129
+ "size": "32870",
130
+ "refcount": "2"
131
+ },
132
+ "thermal": {
133
+ "size": "11674",
134
+ "refcount": "0"
135
+ },
136
+ "libata": {
137
+ "size": "133776",
138
+ "refcount": "3"
139
+ },
140
+ "thermal_sys": {
141
+ "size": "11942",
142
+ "refcount": "2"
143
+ },
144
+ "e1000": {
145
+ "size": "85517",
146
+ "refcount": "0"
147
+ },
148
+ "scsi_mod": {
149
+ "size": "126725",
150
+ "refcount": "4"
151
+ }
152
+ },
153
+ "os": "GNU/Linux"
154
+ },
155
+ "os": "linux",
156
+ "os_version": "2.6.32-5-amd64",
157
+ "ohai_time": 1352153831.333865,
158
+ "command": {
159
+ "ps": "ps -ef"
160
+ },
161
+ "dmi": {
162
+ },
163
+ "platform": "debian",
164
+ "platform_version": "6.0.5",
165
+ "platform_family": "debian",
166
+ "languages": {
167
+ "ruby": {
168
+ "bin_dir": "/usr/local/bin",
169
+ "gem_bin": "/usr/local/bin/gem",
170
+ "gems_dir": "/usr/local/gems",
171
+ "ruby_bin": "/usr/local/bin/ruby"
172
+ }
173
+ },
174
+ "chef_packages": {
175
+ "chef": {
176
+ "version": "10.14.4",
177
+ "chef_root": "/usr/local/gems/chef-10.14.4/lib"
178
+ },
179
+ "ohai": {
180
+ "version": "6.14.0",
181
+ "ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai"
182
+ }
183
+ },
184
+ "counters": {
185
+ "network": {
186
+ "interfaces": {
187
+ "eth0": {
188
+ "rx": {
189
+ "bytes": "0",
190
+ "packets": "0",
191
+ "errors": "0",
192
+ "drop": 0,
193
+ "overrun": 0,
194
+ "frame": 0,
195
+ "compressed": 0,
196
+ "multicast": 0
197
+ },
198
+ "tx": {
199
+ "bytes": "342",
200
+ "packets": "0",
201
+ "errors": "0",
202
+ "drop": 0,
203
+ "overrun": 0,
204
+ "collisions": "0",
205
+ "carrier": 0,
206
+ "compressed": 0
207
+ }
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "current_user": "fauxhai",
213
+ "domain": "local",
214
+ "etc": {
215
+ "passwd": {
216
+ "fauxhai": {
217
+ "dir": "/home/fauxhai",
218
+ "gid": 0,
219
+ "uid": 0,
220
+ "shell": "/bin/bash",
221
+ "gecos": "Fauxhai"
222
+ }
223
+ },
224
+ "group": {
225
+ "fauxhai": {
226
+ "gid": 0,
227
+ "members": [
228
+ "fauxhai"
229
+ ]
230
+ }
231
+ }
232
+ },
233
+ "hostname": "Fauxhai",
234
+ "fqdn": "fauxhai.local",
235
+ "ipaddress": "10.0.0.2",
236
+ "keys": {
237
+ "ssh": {
238
+ "host_dsa_public": "ssh-dss AAAAB3NzaC1kc3MAAACBAJFo9BLAw4WKEs5hgipk5m423FzBsDXCZSMcC9ca/om/1VYzMqImixGe3uICDzNFUWxFoLJTQAOccyzo6MXZiQqwWJDLFi5qOSr6w2XcMyE+zd4wOyMoDiVM5fizmG8K3FzrqvGjwBcHcBdOQnavSijoj38DN25J9zhrid5BY4WlAAAAFQDxXrCyG52XCzn3FV4ej38wJBkomQAAAIBovGPJ4mP2P6BK8lHl0PPbktwQbWlpJ13oz6REJFDVcUi7vV26bX/BjQX+ohzZQzljdz1SpUbPc/8nuA4darYkVh91eBi307EN8IdxRHj2eBgp/ZG4yshIebG3WHrwJD/xUjjZ1MRfyDT1ermVi4LvjjPgWDxLZnPpMaR6S1nzgQAAAIEAj0Vd6DCWslvlsZ8+N53HWsqPi3gnx35JoLPz9Z2epkKIKqmEHav+93G3hdfztVa4I4t3phoPniQchYryF5+RNg8hqxKzjNtrIqUYCeuf2NJrksNsH7OZygPHZpqt4kTuwAGZxjxEGfAI0y8DhkU2ntp2LnzRnWH106BQBCmcXwo= fauxhai.local",
239
+ "host_rsa_public": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtLCeqtqr/HbnORckw1ukdLhpfGoOPFi5/esKEokzTqq1gsgQ2V8emmyjfq1i6XXfRtSBxkdlHv/GWdP5wBTuE2G85MzBkVSQPvmwQN8lX/JMPEEtKXkeOo0o92/PiSmvY4eRsdF0mw40Uvg7jtE3f3fxj497kzh5fKtkrHnF4x9gXCbVdr3FqXJfggR5IJwAxToerbK7x/uRS+7YuZI9Pip3tt14nv9ezwXcuGb/tvjWOZINiFl8izVIFKi7sxfTX09p4NgamxRS7TD2Yd0jT8nEoF9UZTsgXcJ1kDSx7N7NxFfNfP6rCdOGRRz4gUhXtsUjG/XkxPeCwZ7A9VnOD fauxhai.local"
240
+ }
241
+ },
242
+ "macaddress": "11:11:11:11:11:11",
243
+ "network": {
244
+ "default_gateway": "10.0.0.1",
245
+ "default_interface": "eth0",
246
+ "eth0": {
247
+ "addresses": {
248
+ "10.0.0.2": {
249
+ "broadcast": "10.0.0.255",
250
+ "family": "inet",
251
+ "netmask": "255.255.255.0",
252
+ "prefixlen": "23",
253
+ "scope": "Global"
254
+ }
255
+ },
256
+ "arp": {
257
+ "10.0.0.1": "fe:ff:ff:ff:ff:ff"
258
+ },
259
+ "encapsulation": "Ethernet",
260
+ "flags": [
261
+ "BROADCAST",
262
+ "MULTICAST",
263
+ "UP",
264
+ "LOWER_UP"
265
+ ],
266
+ "mtu": "1500",
267
+ "number": "0",
268
+ "routes": {
269
+ "10.0.0.0/255": {
270
+ "scope": "link",
271
+ "src": "10.0.0.2"
272
+ }
273
+ },
274
+ "state": "up",
275
+ "type": "eth"
276
+ }
277
+ },
278
+ "uptime": "30 days 15 hours 07 minutes 30 seconds",
279
+ "uptime_seconds": 2646450
280
+ }