controlrepo 2.0.3 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6f1e530d2aac6db832e66b31b06ccda1536595e
4
- data.tar.gz: c4de4272d509eae7a31ea656b6681f524956f6ef
3
+ metadata.gz: ca0e652346d47d0383c8397521b62e99bc58a2f3
4
+ data.tar.gz: 1bccf7aea0f1edc08bf68e0e8ce3100cf122d53e
5
5
  SHA512:
6
- metadata.gz: df2d05bb540e4b6f287745d563f609ab56ed660a51085100b2ff1890417924a6161d8304e03f4617207768aa206052b3a1e2921359fec71d484a27abe071dec2
7
- data.tar.gz: d157c35ed069a7b32dceef4fdecf42f01091d8a71288db187915282dcf816304d84d501b9ac78fc21dbbae284c2f9229f54f47b1f2ba67875e119d8f7fdd302a
6
+ metadata.gz: 01d3774044136a039da6e1af72aa98a9cf113f6e7c8dc1f983e18144e59aec0fb61633259472caeac4eb632ca813400523b97a1d1348a0116c295b817a974049
7
+ data.tar.gz: 37dbea15fb95d51478988387c534a2b0e36bf8a43c152e08c2934ff88a8fb19203461b9dc0a650698df8607a179ee40d4654f2b534aa884282b841c88c53bc15
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
 
4
4
  gem 'rubygems-tasks'
5
5
  gem 'git'
6
+ gem 'rake'
data/Gemfile.lock CHANGED
@@ -2,6 +2,7 @@ GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
4
  git (1.2.9.1)
5
+ rake (10.5.0)
5
6
  rubygems-tasks (0.2.4)
6
7
 
7
8
  PLATFORMS
@@ -9,6 +10,7 @@ PLATFORMS
9
10
 
10
11
  DEPENDENCIES
11
12
  git
13
+ rake
12
14
  rubygems-tasks
13
15
 
14
16
  BUNDLED WITH
data/README.md CHANGED
@@ -21,9 +21,10 @@
21
21
  - [Using hiera data (In manual tests)](#using-hiera-data-in-manual-tests)
22
22
  - [Extra Configuration](#extra-configuration)
23
23
  - [Rake tasks](#rake-tasks)
24
- - [generate_fixtures](#generate_fixtures)
25
- - [generate_nodesets](#generate_nodesets)
26
- - [hiera_setup](#hiera_setup)
24
+ - [generate_fixtures](#generate_fixtures)
25
+ - [generate_controlrepo_yaml](#generate_controlrepo_yaml)
26
+ - [generate_nodesets](#generate_nodesets)
27
+ - [hiera_setup](#hiera_setup)
27
28
 
28
29
  ## Quick Start
29
30
 
@@ -63,7 +64,7 @@ Generate your [nodesets](#nodesets):
63
64
 
64
65
  Run spec tests:
65
66
 
66
- `bundle exec rake controlrepo_spec `
67
+ `bundle exec rake controlrepo_spec`
67
68
 
68
69
  Run acceptance tests:
69
70
 
@@ -191,6 +192,8 @@ The number of runs to try before checking that it is idempotent. Required for so
191
192
 
192
193
  ### factsets
193
194
 
195
+ This gem comes with a few pre-canned factsets. These are listed under `nodes` when you run `bundle exec rake generate_controlrepo_yaml`. You can also add your own factsets by putting them in:
196
+
194
197
  `spec/factsets/*.yaml`
195
198
 
196
199
  Factsets are used by the controlrepo gem to generate spec tests, which compile a given class against a certain set of facts. To create these factsets all we need to do is log onto a real machine that has puppet installed and run:
@@ -491,7 +494,7 @@ The tasks are as follows:
491
494
 
492
495
  `bundle exec rake generate_fixtures`
493
496
 
494
- This task will go though your Puppetfile, grab all of the modules in there and convert them into a `.fixtures.yml` file. It will also take the `environment.conf` file into account, check to see if you have any relative pathed directories and also include them into the `.fixtures.yml` as symlinks. e.g. If your files look like this:
497
+ This task will go though your Puppetfile, grab all of the modules in there and convert them into a `.fixtures.yml` file. (You only need this if you are writing your own custom spec tests) It will also take the `environment.conf` file into account, check to see if you have any relative pathed directories and also include them into the `.fixtures.yml` as symlinks. e.g. If your files look like this:
495
498
 
496
499
  **Puppetfile**
497
500
  ```ruby
@@ -527,11 +530,25 @@ fixtures:
527
530
 
528
531
  Notice that the symlinks are not the ones that we provided in `environment.conf`? This is because the rake task will go into each of directories, find the modules and create a symlink for each of them (This is what rspec expects).
529
532
 
533
+ #### generate_controlrepo_yaml
534
+
535
+ `bundle exec rake generate_controlrepo_yaml`
536
+
537
+ This will try to generate a `controlrepo.yaml` file, it will:
538
+
539
+ - Parse your environment.conf to work out where your roles and profiles might live
540
+ - Find your roles classes and pre-polulate them into the "classes" section
541
+ - Look though all of the factsets that ship with the gem, and also the ones you have created under `spec/factsets/*.json`
542
+ - Populate the "nodes" section with all of the factsets it finds
543
+ - Create node groups of windows and non-windows nodes
544
+ - Create a basic test_matrix
545
+
546
+
530
547
  #### generate_nodesets
531
548
 
532
549
  `bundle exec rake generate_nodesets`
533
550
 
534
- This task will generate nodeset file required by beaker, based on the fact sets that exist in the repository. If you have any fact sets for which puppetlabs has a compatible vagrant box (i.e. centos, debian, ubuntu) it will detect the version specifics and set up the nodeset file, complete with box URL. If it doesn't know how to deal with a fact set it will output a boilerplate nodeset file that will need to be altered before it can be used.
551
+ This task will generate nodeset file required by beaker, based on the factsets that exist in the repository. If you have any fact sets for which puppetlabs has a compatible vagrant box (i.e. centos, debian, ubuntu) it will detect the version specifics and set up the nodeset file, complete with box URL. If it doesn't know how to deal with a fact set it will output a boilerplate nodeset section and comment it out.
535
552
 
536
553
  #### hiera_setup
537
554
 
data/controlrepo.gemspec CHANGED
@@ -3,12 +3,12 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "controlrepo"
6
- s.version = "2.0.3"
6
+ s.version = "2.0.5"
7
7
  s.authors = ["Dylan Ratcliffe"]
8
8
  s.email = ["dylan.ratcliffe@puppetlabs.com"]
9
- s.homepage = ""
10
- s.summary = ""
11
- s.description = ""
9
+ s.homepage = "https://github.com/dylanratcliffe/controlrepo_gem"
10
+ s.summary = "Testing tools for Puppet controlrepos"
11
+ s.description = "Testing tools for Puppet controlrepos"
12
12
  s.licenses = 'Apache-2.0'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
@@ -0,0 +1,263 @@
1
+ {
2
+ "name": "localhost.localdomain",
3
+ "values": {
4
+ "architecture": "i386",
5
+ "augeas": {
6
+ "version": "1.4.0"
7
+ },
8
+ "augeasversion": "1.4.0",
9
+ "blockdevice_hda_size": 0,
10
+ "blockdevices": "hda",
11
+ "dhcp_servers": {
12
+ "eth0": "10.0.2.2",
13
+ "system": "10.0.2.2"
14
+ },
15
+ "disks": {
16
+ "hda": {
17
+ "size": "20.00 GiB",
18
+ "size_bytes": 0
19
+ }
20
+ },
21
+ "domain": "localdomain",
22
+ "facterversion": "3.0.2",
23
+ "filesystems": "ext2,ext3,iso9660",
24
+ "fqdn": "localhost.localdomain",
25
+ "gid": "root",
26
+ "hardwareisa": "i686",
27
+ "hardwaremodel": "i686",
28
+ "hostname": "localhost",
29
+ "id": "root",
30
+ "identity": {
31
+ "gid": 0,
32
+ "group": "root",
33
+ "uid": 0,
34
+ "user": "root"
35
+ },
36
+ "interfaces": "eth0,lo,sit0",
37
+ "ipaddress": "10.0.2.15",
38
+ "ipaddress6": "fe80::a00:27ff:febf:56",
39
+ "ipaddress6_eth0": "fe80::a00:27ff:febf:56",
40
+ "ipaddress6_lo": "::1",
41
+ "ipaddress_eth0": "10.0.2.15",
42
+ "ipaddress_lo": "127.0.0.1",
43
+ "is_virtual": true,
44
+ "kernel": "Linux",
45
+ "kernelmajversion": "2.6",
46
+ "kernelrelease": "2.6.18-398.el5",
47
+ "kernelversion": "2.6.18",
48
+ "load_averages": {
49
+ "15m": 0.11,
50
+ "1m": 0.28,
51
+ "5m": 0.22
52
+ },
53
+ "lsbdistcodename": "Final",
54
+ "lsbdistdescription": "CentOS release 5.11 (Final)",
55
+ "lsbdistid": "CentOS",
56
+ "lsbdistrelease": "5.11",
57
+ "lsbmajdistrelease": "5",
58
+ "lsbminordistrelease": "11",
59
+ "lsbrelease": ":core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch",
60
+ "macaddress": "08:00:27:bf:00:56",
61
+ "macaddress_eth0": "08:00:27:bf:00:56",
62
+ "memory": {
63
+ "swap": {
64
+ "available": "1023.99 MiB",
65
+ "available_bytes": 1073733632,
66
+ "capacity": "0%",
67
+ "total": "1023.99 MiB",
68
+ "total_bytes": 1073733632,
69
+ "used": "0 bytes",
70
+ "used_bytes": 0
71
+ },
72
+ "system": {
73
+ "available": "429.48 MiB",
74
+ "available_bytes": 450342912,
75
+ "capacity": "14.58%",
76
+ "total": "502.80 MiB",
77
+ "total_bytes": 527220736,
78
+ "used": "73.32 MiB",
79
+ "used_bytes": 76877824
80
+ }
81
+ },
82
+ "memoryfree": "429.48 MiB",
83
+ "memoryfree_mb": 429.48046875,
84
+ "memorysize": "502.80 MiB",
85
+ "memorysize_mb": 502.796875,
86
+ "mountpoints": {
87
+ "/": {
88
+ "available": "1.09 GiB",
89
+ "available_bytes": 1171632128,
90
+ "capacity": "52.22%",
91
+ "device": "/dev/mapper/VolGroup00-LogVol00",
92
+ "filesystem": "ext3",
93
+ "options": [
94
+ "rw"
95
+ ],
96
+ "size": "2.28 GiB",
97
+ "size_bytes": -1842671616,
98
+ "used": "1.19 GiB",
99
+ "used_bytes": 1280663552
100
+ },
101
+ "/boot": {
102
+ "available": "86.58 MiB",
103
+ "available_bytes": 90790912,
104
+ "capacity": "12.29%",
105
+ "device": "/dev/hda1",
106
+ "filesystem": "ext3",
107
+ "options": [
108
+ "rw"
109
+ ],
110
+ "size": "98.72 MiB",
111
+ "size_bytes": 103512064,
112
+ "used": "12.13 MiB",
113
+ "used_bytes": 12721152
114
+ }
115
+ },
116
+ "mtu_eth0": 1500,
117
+ "mtu_lo": 16436,
118
+ "mtu_sit0": 1480,
119
+ "netmask": "255.255.255.0",
120
+ "netmask6": "ffff:ffff:ffff:ffff::",
121
+ "netmask6_eth0": "ffff:ffff:ffff:ffff::",
122
+ "netmask6_lo": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
123
+ "netmask_eth0": "255.255.255.0",
124
+ "netmask_lo": "255.0.0.0",
125
+ "network": "10.0.2.0",
126
+ "network6": "fe80::",
127
+ "network6_eth0": "fe80::",
128
+ "network6_lo": "::1",
129
+ "network_eth0": "10.0.2.0",
130
+ "network_lo": "127.0.0.0",
131
+ "networking": {
132
+ "dhcp": "10.0.2.2",
133
+ "domain": "localdomain",
134
+ "fqdn": "localhost.localdomain",
135
+ "hostname": "localhost",
136
+ "interfaces": {
137
+ "eth0": {
138
+ "dhcp": "10.0.2.2",
139
+ "ip": "10.0.2.15",
140
+ "ip6": "fe80::a00:27ff:febf:56",
141
+ "mac": "08:00:27:bf:00:56",
142
+ "mtu": 1500,
143
+ "netmask": "255.255.255.0",
144
+ "netmask6": "ffff:ffff:ffff:ffff::",
145
+ "network": "10.0.2.0",
146
+ "network6": "fe80::"
147
+ },
148
+ "lo": {
149
+ "ip": "127.0.0.1",
150
+ "ip6": "::1",
151
+ "mtu": 16436,
152
+ "netmask": "255.0.0.0",
153
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
154
+ "network": "127.0.0.0",
155
+ "network6": "::1"
156
+ },
157
+ "sit0": {
158
+ "mtu": 1480
159
+ }
160
+ },
161
+ "ip": "10.0.2.15",
162
+ "ip6": "fe80::a00:27ff:febf:56",
163
+ "mac": "08:00:27:bf:00:56",
164
+ "mtu": 1500,
165
+ "netmask": "255.255.255.0",
166
+ "netmask6": "ffff:ffff:ffff:ffff::",
167
+ "network": "10.0.2.0",
168
+ "network6": "fe80::"
169
+ },
170
+ "operatingsystem": "CentOS",
171
+ "operatingsystemmajrelease": "5",
172
+ "operatingsystemrelease": "5.11",
173
+ "os": {
174
+ "architecture": "i386",
175
+ "distro": {
176
+ "codename": "Final",
177
+ "description": "CentOS release 5.11 (Final)",
178
+ "id": "CentOS",
179
+ "release": {
180
+ "full": "5.11",
181
+ "major": "5",
182
+ "minor": "11"
183
+ },
184
+ "specification": ":core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch"
185
+ },
186
+ "family": "RedHat",
187
+ "hardware": "i686",
188
+ "name": "CentOS",
189
+ "release": {
190
+ "full": "5.11",
191
+ "major": "5",
192
+ "minor": "11"
193
+ },
194
+ "selinux": {
195
+ "enabled": false
196
+ }
197
+ },
198
+ "osfamily": "RedHat",
199
+ "path": "/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin",
200
+ "physicalprocessorcount": 1,
201
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
202
+ "processorcount": 1,
203
+ "processors": {
204
+ "count": 1,
205
+ "isa": "i686",
206
+ "models": [
207
+ "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz"
208
+ ],
209
+ "physicalcount": 1
210
+ },
211
+ "puppetversion": "4.2.1",
212
+ "ruby": {
213
+ "platform": "i686-linux",
214
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
215
+ "version": "2.1.6"
216
+ },
217
+ "rubyplatform": "i686-linux",
218
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
219
+ "rubyversion": "2.1.6",
220
+ "selinux": false,
221
+ "ssh": {
222
+ "dsa": {
223
+ "fingerprints": {
224
+ "sha1": "SSHFP 2 1 3a63a36b70f2d9a56a9dc3a1159a64ff9f89536f",
225
+ "sha256": "SSHFP 2 2 610f5aaa0dc46e30df3fb0ecac0eb3e00e7cac79d610c8c9a2a1eac341244940"
226
+ },
227
+ "key": "AAAAB3NzaC1kc3MAAACBANIQgUl4dqCF84m1riBm7rlb5j6v6Dco/P7w0+AE0by81oHLA/i2V89okSrenm2scb4/u57ZpR/GeyVaLzicLyUjBICBwPOsv/+eLnVUtL/+vXwnVleBqaZn+2FUswdkz+J4QiDRSyl78kAkLMAFqEfNimMUB12DirtvgYIFqKaZAAAAFQDTiJhQ0rCPN0ax1rHbjLAMYYoCLwAAAIBWYAzgNYnG5TCzHWSdQZHeJPItH3MUrLFgggb3H9kFZBKCLSBW/EWV1s27G8a1Hd9JAsGEwDGBHn2VLz4uMSssEbJpdJY4jeRmeqeyqZ7My+83XLu0stm2xu6Tt7dwH//DPTTS1XmFXYdx/3tR5JWBIUm6yTb1WS43WUTSyxyPCQAAAIEAzyoULrHnqiBjuJeLB/2OF1vnRT58D53Vd3cQW1xZwyzsPSralv2lMGW0rGaduGrFQjCrDQk0k1fajZnjFX3qfdxaflFCgz2I1W46AcrGXeFy7AlRlCIE1LZtYGd04l3ERiqcUQT+vk2Jv54qMUwSQeyYWY67XcAnglf5GLqwqMo="
228
+ },
229
+ "rsa": {
230
+ "fingerprints": {
231
+ "sha1": "SSHFP 1 1 6b3dbcd02fe71fb6106ad074454f8f16917327b5",
232
+ "sha256": "SSHFP 1 2 913a32e7a0b2c81b5419903654c1dc42680df07f4fe04c82d7d70892b77b824b"
233
+ },
234
+ "key": "AAAAB3NzaC1yc2EAAAABIwAAAQEAsNcmWEvgjOkr4XA4uYa9aAfcxv1IygDmFnM/zIFbcMUmCxoza/WWZwm/mDO319xq71YqpVtvhgpSTHLGek6Iwb1rZukQvbwZnlzrIe0G8Bc4JpSAmyZkZceve1cau6nOXEI8eDrlbRLtrUNeptaIVHaa85KJqv7Ksc+NxGIRS/xBTWus3rxx3cQaurcyIK1rBHLiL5VpN+ove3Nl3zsHyyOym6FjbqIQuVMStr5j0+lQ3B+AqZpJixwbGKaxSIKZUcQla1pGCchBt7BuAq+A4XE+XIdsi2gRks2IjPGMkOXh0IiYud1ph7JaO7iLjSalylvF9qZSO/70J3w7nKLJYQ=="
235
+ }
236
+ },
237
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBANIQgUl4dqCF84m1riBm7rlb5j6v6Dco/P7w0+AE0by81oHLA/i2V89okSrenm2scb4/u57ZpR/GeyVaLzicLyUjBICBwPOsv/+eLnVUtL/+vXwnVleBqaZn+2FUswdkz+J4QiDRSyl78kAkLMAFqEfNimMUB12DirtvgYIFqKaZAAAAFQDTiJhQ0rCPN0ax1rHbjLAMYYoCLwAAAIBWYAzgNYnG5TCzHWSdQZHeJPItH3MUrLFgggb3H9kFZBKCLSBW/EWV1s27G8a1Hd9JAsGEwDGBHn2VLz4uMSssEbJpdJY4jeRmeqeyqZ7My+83XLu0stm2xu6Tt7dwH//DPTTS1XmFXYdx/3tR5JWBIUm6yTb1WS43WUTSyxyPCQAAAIEAzyoULrHnqiBjuJeLB/2OF1vnRT58D53Vd3cQW1xZwyzsPSralv2lMGW0rGaduGrFQjCrDQk0k1fajZnjFX3qfdxaflFCgz2I1W46AcrGXeFy7AlRlCIE1LZtYGd04l3ERiqcUQT+vk2Jv54qMUwSQeyYWY67XcAnglf5GLqwqMo=",
238
+ "sshfp_dsa": "SSHFP 2 1 3a63a36b70f2d9a56a9dc3a1159a64ff9f89536f\nSSHFP 2 2 610f5aaa0dc46e30df3fb0ecac0eb3e00e7cac79d610c8c9a2a1eac341244940",
239
+ "sshfp_rsa": "SSHFP 1 1 6b3dbcd02fe71fb6106ad074454f8f16917327b5\nSSHFP 1 2 913a32e7a0b2c81b5419903654c1dc42680df07f4fe04c82d7d70892b77b824b",
240
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEAsNcmWEvgjOkr4XA4uYa9aAfcxv1IygDmFnM/zIFbcMUmCxoza/WWZwm/mDO319xq71YqpVtvhgpSTHLGek6Iwb1rZukQvbwZnlzrIe0G8Bc4JpSAmyZkZceve1cau6nOXEI8eDrlbRLtrUNeptaIVHaa85KJqv7Ksc+NxGIRS/xBTWus3rxx3cQaurcyIK1rBHLiL5VpN+ove3Nl3zsHyyOym6FjbqIQuVMStr5j0+lQ3B+AqZpJixwbGKaxSIKZUcQla1pGCchBt7BuAq+A4XE+XIdsi2gRks2IjPGMkOXh0IiYud1ph7JaO7iLjSalylvF9qZSO/70J3w7nKLJYQ==",
241
+ "swapfree": "1023.99 MiB",
242
+ "swapfree_mb": 1023.9921875,
243
+ "swapsize": "1023.99 MiB",
244
+ "swapsize_mb": 1023.9921875,
245
+ "system_uptime": {
246
+ "days": 0,
247
+ "hours": 0,
248
+ "seconds": 1067,
249
+ "uptime": "0:17 hours"
250
+ },
251
+ "timezone": "UTC",
252
+ "uptime": "0:17 hours",
253
+ "uptime_days": 0,
254
+ "uptime_hours": 0,
255
+ "uptime_seconds": 1067,
256
+ "virtual": "virtualbox",
257
+ "clientcert": "localhost.localdomain",
258
+ "clientversion": "4.2.1",
259
+ "clientnoop": false
260
+ },
261
+ "timestamp": "2015-11-22T03:20:00.444178217+00:00",
262
+ "expiration": "2015-11-22T03:50:00.444436539+00:00"
263
+ }
@@ -0,0 +1,263 @@
1
+ {
2
+ "name": "localhost.localdomain",
3
+ "values": {
4
+ "architecture": "x86_64",
5
+ "augeas": {
6
+ "version": "1.4.0"
7
+ },
8
+ "augeasversion": "1.4.0",
9
+ "blockdevice_hda_size": 21474836480,
10
+ "blockdevices": "hda",
11
+ "dhcp_servers": {
12
+ "eth0": "10.0.2.2",
13
+ "system": "10.0.2.2"
14
+ },
15
+ "disks": {
16
+ "hda": {
17
+ "size": "20.00 GiB",
18
+ "size_bytes": 21474836480
19
+ }
20
+ },
21
+ "domain": "localdomain",
22
+ "facterversion": "3.0.2",
23
+ "filesystems": "ext2,ext3,iso9660",
24
+ "fqdn": "localhost.localdomain",
25
+ "gid": "root",
26
+ "hardwareisa": "x86_64",
27
+ "hardwaremodel": "x86_64",
28
+ "hostname": "localhost",
29
+ "id": "root",
30
+ "identity": {
31
+ "gid": 0,
32
+ "group": "root",
33
+ "uid": 0,
34
+ "user": "root"
35
+ },
36
+ "interfaces": "eth0,lo,sit0",
37
+ "ipaddress": "10.0.2.15",
38
+ "ipaddress6": "fe80::a00:27ff:fe3e:4987",
39
+ "ipaddress6_eth0": "fe80::a00:27ff:fe3e:4987",
40
+ "ipaddress6_lo": "::1",
41
+ "ipaddress_eth0": "10.0.2.15",
42
+ "ipaddress_lo": "127.0.0.1",
43
+ "is_virtual": true,
44
+ "kernel": "Linux",
45
+ "kernelmajversion": "2.6",
46
+ "kernelrelease": "2.6.18-398.el5",
47
+ "kernelversion": "2.6.18",
48
+ "load_averages": {
49
+ "15m": 0.0,
50
+ "1m": 0.0,
51
+ "5m": 0.0
52
+ },
53
+ "lsbdistcodename": "Final",
54
+ "lsbdistdescription": "CentOS release 5.11 (Final)",
55
+ "lsbdistid": "CentOS",
56
+ "lsbdistrelease": "5.11",
57
+ "lsbmajdistrelease": "5",
58
+ "lsbminordistrelease": "11",
59
+ "lsbrelease": ":core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch",
60
+ "macaddress": "08:00:27:3e:49:87",
61
+ "macaddress_eth0": "08:00:27:3e:49:87",
62
+ "memory": {
63
+ "swap": {
64
+ "available": "1023.99 MiB",
65
+ "available_bytes": 1073733632,
66
+ "capacity": "0%",
67
+ "total": "1023.99 MiB",
68
+ "total_bytes": 1073733632,
69
+ "used": "0 bytes",
70
+ "used_bytes": 0
71
+ },
72
+ "system": {
73
+ "available": "389.45 MiB",
74
+ "available_bytes": 408363008,
75
+ "capacity": "21.76%",
76
+ "total": "497.78 MiB",
77
+ "total_bytes": 521961472,
78
+ "used": "108.34 MiB",
79
+ "used_bytes": 113598464
80
+ }
81
+ },
82
+ "memoryfree": "389.45 MiB",
83
+ "memoryfree_mb": 389.4453125,
84
+ "memorysize": "497.78 MiB",
85
+ "memorysize_mb": 497.78125,
86
+ "mountpoints": {
87
+ "/": {
88
+ "available": "16.96 GiB",
89
+ "available_bytes": 18212638720,
90
+ "capacity": "7.23%",
91
+ "device": "/dev/mapper/VolGroup00-LogVol00",
92
+ "filesystem": "ext3",
93
+ "options": [
94
+ "rw"
95
+ ],
96
+ "size": "18.28 GiB",
97
+ "size_bytes": 19632164864,
98
+ "used": "1.32 GiB",
99
+ "used_bytes": 1419526144
100
+ },
101
+ "/boot": {
102
+ "available": "86.04 MiB",
103
+ "available_bytes": 90215424,
104
+ "capacity": "12.85%",
105
+ "device": "/dev/hda1",
106
+ "filesystem": "ext3",
107
+ "options": [
108
+ "rw"
109
+ ],
110
+ "size": "98.72 MiB",
111
+ "size_bytes": 103512064,
112
+ "used": "12.68 MiB",
113
+ "used_bytes": 13296640
114
+ }
115
+ },
116
+ "mtu_eth0": 1500,
117
+ "mtu_lo": 16436,
118
+ "mtu_sit0": 1480,
119
+ "netmask": "255.255.255.0",
120
+ "netmask6": "ffff:ffff:ffff:ffff::",
121
+ "netmask6_eth0": "ffff:ffff:ffff:ffff::",
122
+ "netmask6_lo": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
123
+ "netmask_eth0": "255.255.255.0",
124
+ "netmask_lo": "255.0.0.0",
125
+ "network": "10.0.2.0",
126
+ "network6": "fe80::",
127
+ "network6_eth0": "fe80::",
128
+ "network6_lo": "::1",
129
+ "network_eth0": "10.0.2.0",
130
+ "network_lo": "127.0.0.0",
131
+ "networking": {
132
+ "dhcp": "10.0.2.2",
133
+ "domain": "localdomain",
134
+ "fqdn": "localhost.localdomain",
135
+ "hostname": "localhost",
136
+ "interfaces": {
137
+ "eth0": {
138
+ "dhcp": "10.0.2.2",
139
+ "ip": "10.0.2.15",
140
+ "ip6": "fe80::a00:27ff:fe3e:4987",
141
+ "mac": "08:00:27:3e:49:87",
142
+ "mtu": 1500,
143
+ "netmask": "255.255.255.0",
144
+ "netmask6": "ffff:ffff:ffff:ffff::",
145
+ "network": "10.0.2.0",
146
+ "network6": "fe80::"
147
+ },
148
+ "lo": {
149
+ "ip": "127.0.0.1",
150
+ "ip6": "::1",
151
+ "mtu": 16436,
152
+ "netmask": "255.0.0.0",
153
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
154
+ "network": "127.0.0.0",
155
+ "network6": "::1"
156
+ },
157
+ "sit0": {
158
+ "mtu": 1480
159
+ }
160
+ },
161
+ "ip": "10.0.2.15",
162
+ "ip6": "fe80::a00:27ff:fe3e:4987",
163
+ "mac": "08:00:27:3e:49:87",
164
+ "mtu": 1500,
165
+ "netmask": "255.255.255.0",
166
+ "netmask6": "ffff:ffff:ffff:ffff::",
167
+ "network": "10.0.2.0",
168
+ "network6": "fe80::"
169
+ },
170
+ "operatingsystem": "CentOS",
171
+ "operatingsystemmajrelease": "5",
172
+ "operatingsystemrelease": "5.11",
173
+ "os": {
174
+ "architecture": "x86_64",
175
+ "distro": {
176
+ "codename": "Final",
177
+ "description": "CentOS release 5.11 (Final)",
178
+ "id": "CentOS",
179
+ "release": {
180
+ "full": "5.11",
181
+ "major": "5",
182
+ "minor": "11"
183
+ },
184
+ "specification": ":core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch"
185
+ },
186
+ "family": "RedHat",
187
+ "hardware": "x86_64",
188
+ "name": "CentOS",
189
+ "release": {
190
+ "full": "5.11",
191
+ "major": "5",
192
+ "minor": "11"
193
+ },
194
+ "selinux": {
195
+ "enabled": false
196
+ }
197
+ },
198
+ "osfamily": "RedHat",
199
+ "path": "/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin",
200
+ "physicalprocessorcount": 1,
201
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
202
+ "processorcount": 1,
203
+ "processors": {
204
+ "count": 1,
205
+ "isa": "x86_64",
206
+ "models": [
207
+ "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz"
208
+ ],
209
+ "physicalcount": 1
210
+ },
211
+ "puppetversion": "4.2.1",
212
+ "ruby": {
213
+ "platform": "x86_64-linux",
214
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
215
+ "version": "2.1.6"
216
+ },
217
+ "rubyplatform": "x86_64-linux",
218
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
219
+ "rubyversion": "2.1.6",
220
+ "selinux": false,
221
+ "ssh": {
222
+ "dsa": {
223
+ "fingerprints": {
224
+ "sha1": "SSHFP 2 1 1139f2967264a610088812d1ed3ea8db448c417d",
225
+ "sha256": "SSHFP 2 2 ddb6064607ac29a8c83978d33e46ed56e677f27ed727341142a08156906bc9bb"
226
+ },
227
+ "key": "AAAAB3NzaC1kc3MAAACBAK4mrAWHX3BUGyimNDl6+rtP3BXx8hvZ8UCfySeFw3vliSb5uzCLSdbcLmNZxqVrYv9skhO7wIaRFo4xwLSBPbwMffwuO8/2kIXGxkkVKnucsYmsNNaaLAgrfTR+d2lj089fs/PBDGUiJThPPsbNLMVxDEy1SOuby5FAZvNGQTlxAAAAFQCivnpYKhk5wFrpmn1mZv7ayD8HLwAAAIBQ64m92s3WWK+tdChTH2rEvfn3lJlatruRDeZaXrTuuzA7K9uJhtfqg3KAs9gtZup6vOGNJbJWZVxTG+I3jLXgA2Mfd/lAcbtA1RXnqgUITgg2/sd/TkEkCrke/NVjBaiiXVhsly63OIv/JAvq4ulmNxvUT7Pj6Fz9dKvV1elbJQAAAIBqHveIC7RZnN4bGEc+rZZ63aOYI7Pm/9OE2soVjjvGYgk9Iew9S7xwDmcrDKICqSCwzE3ISalkGAkqXKBJnKx/gKziLWdj1VOoNv16X4nVTwxaL7u9nAg1cQ+H5whnWQ+KDoLJPtc8bCpnamGMY4W89a08Qv0U5RECNhv92AQcqQ=="
228
+ },
229
+ "rsa": {
230
+ "fingerprints": {
231
+ "sha1": "SSHFP 1 1 29e63bdd87c88c24251d791b474a8f3b56d581f7",
232
+ "sha256": "SSHFP 1 2 cfc171e3db64806593cd26571556b360882507938c9a71e477478837cfa6ea9c"
233
+ },
234
+ "key": "AAAAB3NzaC1yc2EAAAABIwAAAQEA7Z6GmWepCT3oXq1qGkIq736GM5oXr4ISMuJtGF2+8yOyM+qqvM83zgnZVkCSkNwtiLOODfzbFmmfKKdLoN30xE6oRP+hu9LH7dzRnnIwsx2DBgaX6QPdbcsIG1dnfH34PO1/AvZGRU4YRwrBSVsURR5wow6BYTs56qznYUd6VALvDg0iOLde7eniqQlVbzfLsR+GFeQ9zp9qMI4JjL17RJYBeVam0wP3cYXglE5PsMYuJwVLP6aOIFx3nQPem76bh5fyTVFsav+jsdamw+dZ7uZn6lkRlCtqyxQzFyyT3RgCUW1qVwdus42xsJm8GPojfIcqhQ3HUEDZ61D5dgZjIQ=="
235
+ }
236
+ },
237
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAK4mrAWHX3BUGyimNDl6+rtP3BXx8hvZ8UCfySeFw3vliSb5uzCLSdbcLmNZxqVrYv9skhO7wIaRFo4xwLSBPbwMffwuO8/2kIXGxkkVKnucsYmsNNaaLAgrfTR+d2lj089fs/PBDGUiJThPPsbNLMVxDEy1SOuby5FAZvNGQTlxAAAAFQCivnpYKhk5wFrpmn1mZv7ayD8HLwAAAIBQ64m92s3WWK+tdChTH2rEvfn3lJlatruRDeZaXrTuuzA7K9uJhtfqg3KAs9gtZup6vOGNJbJWZVxTG+I3jLXgA2Mfd/lAcbtA1RXnqgUITgg2/sd/TkEkCrke/NVjBaiiXVhsly63OIv/JAvq4ulmNxvUT7Pj6Fz9dKvV1elbJQAAAIBqHveIC7RZnN4bGEc+rZZ63aOYI7Pm/9OE2soVjjvGYgk9Iew9S7xwDmcrDKICqSCwzE3ISalkGAkqXKBJnKx/gKziLWdj1VOoNv16X4nVTwxaL7u9nAg1cQ+H5whnWQ+KDoLJPtc8bCpnamGMY4W89a08Qv0U5RECNhv92AQcqQ==",
238
+ "sshfp_dsa": "SSHFP 2 1 1139f2967264a610088812d1ed3ea8db448c417d\nSSHFP 2 2 ddb6064607ac29a8c83978d33e46ed56e677f27ed727341142a08156906bc9bb",
239
+ "sshfp_rsa": "SSHFP 1 1 29e63bdd87c88c24251d791b474a8f3b56d581f7\nSSHFP 1 2 cfc171e3db64806593cd26571556b360882507938c9a71e477478837cfa6ea9c",
240
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEA7Z6GmWepCT3oXq1qGkIq736GM5oXr4ISMuJtGF2+8yOyM+qqvM83zgnZVkCSkNwtiLOODfzbFmmfKKdLoN30xE6oRP+hu9LH7dzRnnIwsx2DBgaX6QPdbcsIG1dnfH34PO1/AvZGRU4YRwrBSVsURR5wow6BYTs56qznYUd6VALvDg0iOLde7eniqQlVbzfLsR+GFeQ9zp9qMI4JjL17RJYBeVam0wP3cYXglE5PsMYuJwVLP6aOIFx3nQPem76bh5fyTVFsav+jsdamw+dZ7uZn6lkRlCtqyxQzFyyT3RgCUW1qVwdus42xsJm8GPojfIcqhQ3HUEDZ61D5dgZjIQ==",
241
+ "swapfree": "1023.99 MiB",
242
+ "swapfree_mb": 1023.9921875,
243
+ "swapsize": "1023.99 MiB",
244
+ "swapsize_mb": 1023.9921875,
245
+ "system_uptime": {
246
+ "days": 0,
247
+ "hours": 0,
248
+ "seconds": 847,
249
+ "uptime": "0:14 hours"
250
+ },
251
+ "timezone": "UTC",
252
+ "uptime": "0:14 hours",
253
+ "uptime_days": 0,
254
+ "uptime_hours": 0,
255
+ "uptime_seconds": 847,
256
+ "virtual": "virtualbox",
257
+ "clientcert": "localhost.localdomain",
258
+ "clientversion": "4.2.1",
259
+ "clientnoop": false
260
+ },
261
+ "timestamp": "2015-11-22T03:25:18.983724000+00:00",
262
+ "expiration": "2015-11-22T03:55:18.983987000+00:00"
263
+ }