facterdb 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,251 @@
1
+ {
2
+ "augeas": {
3
+ "version": "1.4.0"
4
+ },
5
+ "disks": {
6
+ "sda": {
7
+ "model": "VBOX HARDDISK",
8
+ "size": "100.00 GiB",
9
+ "size_bytes": 107374182400,
10
+ "vendor": "ATA"
11
+ }
12
+ },
13
+ "dmi": {
14
+ "bios": {
15
+ "release_date": "12/01/2006",
16
+ "vendor": "innotek GmbH",
17
+ "version": "VirtualBox"
18
+ },
19
+ "board": {
20
+ "manufacturer": "Oracle Corporation",
21
+ "product": "VirtualBox",
22
+ "serial_number": "0"
23
+ },
24
+ "chassis": {
25
+ "type": "Other"
26
+ },
27
+ "manufacturer": "innotek GmbH",
28
+ "product": {
29
+ "name": "VirtualBox",
30
+ "serial_number": "0",
31
+ "uuid": "9E3BB187-2A3E-4FB3-8472-1B57CAA24BC2"
32
+ }
33
+ },
34
+ "facterversion": "3.1.5",
35
+ "filesystems": "btrfs,ext2,ext3,ext4,vfat",
36
+ "identity": {
37
+ "gid": 0,
38
+ "group": "root",
39
+ "uid": 0,
40
+ "user": "root"
41
+ },
42
+ "is_virtual": true,
43
+ "kernel": "Linux",
44
+ "kernelmajversion": "4.3",
45
+ "kernelrelease": "4.3.0-7-generic",
46
+ "kernelversion": "4.3.0",
47
+ "load_averages": {
48
+ "15m": 0.07,
49
+ "1m": 0.8,
50
+ "5m": 0.22
51
+ },
52
+ "memory": {
53
+ "swap": {
54
+ "available": "504.26 MiB",
55
+ "available_bytes": 528752640,
56
+ "capacity": "0.93%",
57
+ "total": "509.00 MiB",
58
+ "total_bytes": 533721088,
59
+ "used": "4.74 MiB",
60
+ "used_bytes": 4968448
61
+ },
62
+ "system": {
63
+ "available": "408.30 MiB",
64
+ "available_bytes": 428134400,
65
+ "capacity": "16.48%",
66
+ "total": "488.86 MiB",
67
+ "total_bytes": 512606208,
68
+ "used": "80.56 MiB",
69
+ "used_bytes": 84471808
70
+ }
71
+ },
72
+ "mountpoints": {
73
+ "/": {
74
+ "available": "95.57 GiB",
75
+ "available_bytes": 102617001984,
76
+ "capacity": "2.29%",
77
+ "device": "/dev/sda1",
78
+ "filesystem": "ext4",
79
+ "options": [
80
+ "rw",
81
+ "relatime",
82
+ "errors=remount-ro",
83
+ "data=ordered"
84
+ ],
85
+ "size": "97.81 GiB",
86
+ "size_bytes": 105026748416,
87
+ "used": "2.24 GiB",
88
+ "used_bytes": 2409746432
89
+ }
90
+ },
91
+ "networking": {
92
+ "dhcp": "10.0.2.2",
93
+ "domain": "example.com",
94
+ "fqdn": "foo.example.com",
95
+ "hostname": "foo",
96
+ "interfaces": {
97
+ "enp0s3": {
98
+ "bindings": [
99
+ {
100
+ "address": "10.0.2.15",
101
+ "netmask": "255.255.255.0",
102
+ "network": "10.0.2.0"
103
+ }
104
+ ],
105
+ "bindings6": [
106
+ {
107
+ "address": "fe80::a00:27ff:fe58:ed99",
108
+ "netmask": "ffff:ffff:ffff:ffff::",
109
+ "network": "fe80::"
110
+ }
111
+ ],
112
+ "dhcp": "10.0.2.2",
113
+ "ip": "10.0.2.15",
114
+ "ip6": "fe80::a00:27ff:fe58:ed99",
115
+ "mac": "08:00:27:58:ed:99",
116
+ "mtu": 1500,
117
+ "netmask": "255.255.255.0",
118
+ "netmask6": "ffff:ffff:ffff:ffff::",
119
+ "network": "10.0.2.0",
120
+ "network6": "fe80::"
121
+ },
122
+ "lo": {
123
+ "bindings": [
124
+ {
125
+ "address": "127.0.0.1",
126
+ "netmask": "255.0.0.0",
127
+ "network": "127.0.0.0"
128
+ }
129
+ ],
130
+ "bindings6": [
131
+ {
132
+ "address": "::1",
133
+ "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
134
+ "network": "::1"
135
+ }
136
+ ],
137
+ "ip": "127.0.0.1",
138
+ "ip6": "::1",
139
+ "mtu": 65536,
140
+ "netmask": "255.0.0.0",
141
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
142
+ "network": "127.0.0.0",
143
+ "network6": "::1"
144
+ }
145
+ },
146
+ "ip": "10.0.2.15",
147
+ "ip6": "fe80::a00:27ff:fe58:ed99",
148
+ "mac": "08:00:27:58:ed:99",
149
+ "mtu": 1500,
150
+ "netmask": "255.255.255.0",
151
+ "netmask6": "ffff:ffff:ffff:ffff::",
152
+ "network": "10.0.2.0",
153
+ "network6": "fe80::",
154
+ "primary": "enp0s3"
155
+ },
156
+ "os": {
157
+ "architecture": "amd64",
158
+ "distro": {
159
+ "codename": "xenial",
160
+ "description": "Ubuntu Xenial Xerus (development branch)",
161
+ "id": "Ubuntu",
162
+ "release": {
163
+ "full": "16.04",
164
+ "major": "16.04"
165
+ }
166
+ },
167
+ "family": "Debian",
168
+ "hardware": "x86_64",
169
+ "name": "Ubuntu",
170
+ "release": {
171
+ "full": "16.04",
172
+ "major": "16.04"
173
+ },
174
+ "selinux": {
175
+ "enabled": false
176
+ }
177
+ },
178
+ "partitions": {
179
+ "/dev/sda1": {
180
+ "filesystem": "ext4",
181
+ "mount": "/",
182
+ "partuuid": "5f76d2dc-01",
183
+ "size": "99.50 GiB",
184
+ "size_bytes": 106837311488,
185
+ "uuid": "a54622a6-2b00-4467-8a15-7044cdd6b63c"
186
+ },
187
+ "/dev/sda2": {
188
+ "size": "1.00 KiB",
189
+ "size_bytes": 1024
190
+ },
191
+ "/dev/sda5": {
192
+ "filesystem": "swap",
193
+ "partuuid": "5f76d2dc-05",
194
+ "size": "509.00 MiB",
195
+ "size_bytes": 533725184,
196
+ "uuid": "8b5ad9a1-bea3-4bf2-a0ab-0b94477d7633"
197
+ }
198
+ },
199
+ "path": "/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
200
+ "processors": {
201
+ "count": 1,
202
+ "isa": "x86_64",
203
+ "models": [
204
+ "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz"
205
+ ],
206
+ "physicalcount": 1
207
+ },
208
+ "ruby": {
209
+ "platform": "x86_64-linux",
210
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
211
+ "version": "2.1.8"
212
+ },
213
+ "ssh": {
214
+ "dsa": {
215
+ "fingerprints": {
216
+ "sha1": "SSHFP 2 1 30e6bce09e05217869bbe6221d28acc8ddd907e3",
217
+ "sha256": "SSHFP 2 2 724f3bfa142097e486c94ee378443b8cedaf12c9544debe67f70686913a9e6a6"
218
+ },
219
+ "key": "AAAAB3NzaC1kc3MAAACBAMCZFMJJn5tbnJ4zbftqfjQH0oZhCWTWKGVsvU/52ANFkXcaD507q4h32KQK0EasAMINSr4yBhIF/R6LcOuFAMoePxNb7neZpO2KIM+sPv3Uu+i/xRG0BFBKnTyE4WyMqx5+zzuLO8lkHub3DNrSR4ZQwd0xZoxmvyAHmS2d02J5AAAAFQC/10eBwdFXaExTmX6mxUwdNvz7GQAAAIBKZdwlHkpoQTXP9KGkZsC5lD3O9QLjbEjKGDsRigHYV8h7B//tbLmLJaLmgcMh9x7Jpf6dWL7lEmLtB95NWJ26djTEvmkS58eED1unYufJ7/lQqAnK8LNzV8EMf2s4yqkL8/2p3cQheNdeFXysERnnAZ/6iVB93KtJYa0OlLutrAAAAIEAknaxtBrISye3nSwqzz3DmRqnyeNLpdw0+pBS1mVpGY44ZXntUAruJ5RpZexid0k7RmGW0Tz+pgjkG2J9Ec4vKvmoRGR2xQgAC/5mk/IR9pNtAEkEnYxk7ad0P+f/q3cgTHU6ikIgDnfkcMjpl54+2nEHY9KY9v3oNIGPlZhdMGU="
220
+ },
221
+ "ecdsa": {
222
+ "fingerprints": {
223
+ "sha1": "SSHFP 3 1 dcc45e1701f18d875b897f26d14d69de3388471f",
224
+ "sha256": "SSHFP 3 2 625837cc91c256a0849600af3e0be78324b6844d0e761444b5f3f87f36e5ea95"
225
+ },
226
+ "key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCxyBt3iYpR2ZRyWp3FWO4OiQqysk4Ej8/J4aWNaspXhmf6LbLfQCgY8eDNp7yrjDQy9EDzzbs2hQrPhzx8m1E0="
227
+ },
228
+ "ed25519": {
229
+ "fingerprints": {
230
+ "sha1": "SSHFP 4 1 2c59de3f66777a744a22a8c8403201a138660f0a",
231
+ "sha256": "SSHFP 4 2 a62ca3bcb8b0ee949fe0e7fb3f8492ae762d6aead95f27729efe7e89b511090e"
232
+ },
233
+ "key": "AAAAC3NzaC1lZDI1NTE5AAAAIANUH6T0Vlo2cl7dFGfDymBj3sX6W6BGONZpv9S1pDJ/"
234
+ },
235
+ "rsa": {
236
+ "fingerprints": {
237
+ "sha1": "SSHFP 1 1 314d35d575928e9af0063663758342f8870b3845",
238
+ "sha256": "SSHFP 1 2 f662e585524173409c0b8bc81711960d561a990419ccc2127ee9fb577168f70e"
239
+ },
240
+ "key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC3YWpsknik4trl+KJEIScOmi0vrcqdS2aAAvyiXpsj4gPDn10Zn+V9xaxxY4rz6Wvsr+H0Xe4FJQBbcn3HivU9ZyeYpuSLmeHHbKlshtZ4uVJYQp2Nx3LaA0/JoioDZz75CuX/4Lxjwvk4GdGGb6+n5wi8sW02KlFA+LazpGA9pYc5LZaF/kjQZjy5O2eCa4Ltrz2Q7SvTOaXRq4B3q73vzfeNJOcywOlp7PBl5iRgDr1YTjh4/UuhMjONIF1JCqM2AtRVva9lDeqptcckbuh2UfHPuxizCi2bHB+IxPOg2cqCLD50LGvLiegWd/wng+0/GqkcuUyFma2j9q7NGbMN"
241
+ }
242
+ },
243
+ "system_uptime": {
244
+ "days": 0,
245
+ "hours": 0,
246
+ "seconds": 45,
247
+ "uptime": "0:00 hours"
248
+ },
249
+ "timezone": "EDT",
250
+ "virtual": "virtualbox"
251
+ }
data/facts/Vagrantfile CHANGED
@@ -73,6 +73,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
73
73
  host.vm.provision "shell", path: "get_facts.sh"
74
74
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
75
75
  end
76
+ config.vm.define "ubuntu-16.04-x86_64" do |host|
77
+ host.vm.box = "ubuntu/xenial64"
78
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
79
+ host.vm.provision "shell", path: "get_facts.sh"
80
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
81
+ end
76
82
  config.vm.define "centos-5-x86_64" do |host|
77
83
  host.vm.box = "puppetlabs/centos-5.11-64-nocm"
78
84
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
data/facts/get_facts.sh CHANGED
@@ -21,7 +21,7 @@ case "${osfamily}" in
21
21
  'RedHat')
22
22
  wget "https://yum.puppetlabs.com/puppetlabs-release-pc1-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppetlabs-release-pc1.rpm
23
23
  rpm -ivh /tmp/puppetlabs-release-pc1.rpm
24
- for puppet_agent_version in 1.2.2 1.2.7; do
24
+ for puppet_agent_version in 1.2.2 1.4.1; do
25
25
  yum install -y puppet-agent-${puppet_agent_version}
26
26
  output_file="/vagrant/$(facter --version | cut -c1-3)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
27
27
  mkdir -p $(dirname ${output_file})
@@ -30,14 +30,14 @@ case "${osfamily}" in
30
30
  ;;
31
31
 
32
32
  'Debian')
33
- if [[ "wily" =~ ${lsbdistcodename} ]]; then
34
- lsbdistcodename='trusty'
33
+ if [[ "xenial" =~ ${lsbdistcodename} ]]; then
34
+ lsbdistcodename='wily'
35
35
  fi
36
36
  apt-get install -y wget
37
37
  wget "https://apt.puppetlabs.com/puppetlabs-release-pc1-${lsbdistcodename}.deb" -O /tmp/puppetlabs-release-pc1.deb
38
38
  dpkg --install /tmp/puppetlabs-release-pc1.deb
39
39
  apt-get update
40
- for puppet_agent_version in 1.2.2 1.2.7; do
40
+ for puppet_agent_version in 1.2.2 1.4.1; do
41
41
  apt-get -y --force-yes install puppet-agent=${puppet_agent_version}*
42
42
  output_file="/vagrant/$(facter --version | cut -c1-3)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
43
43
  mkdir -p $(dirname ${output_file})
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '0.3.2'
3
+ STRING = '0.3.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facterdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickaël Canévet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -179,6 +179,8 @@ files:
179
179
  - facts/1.6/ubuntu-15.04-x86_64.facts
180
180
  - facts/1.6/ubuntu-15.10-i386.facts
181
181
  - facts/1.6/ubuntu-15.10-x86_64.facts
182
+ - facts/1.6/ubuntu-16.04-i386.facts
183
+ - facts/1.6/ubuntu-16.04-x86_64.facts
182
184
  - facts/1.7/archlinux-i386.facts
183
185
  - facts/1.7/archlinux-x86_64.facts
184
186
  - facts/1.7/centos-5-i386.facts
@@ -241,6 +243,8 @@ files:
241
243
  - facts/1.7/ubuntu-15.04-x86_64.facts
242
244
  - facts/1.7/ubuntu-15.10-i386.facts
243
245
  - facts/1.7/ubuntu-15.10-x86_64.facts
246
+ - facts/1.7/ubuntu-16.04-i386.facts
247
+ - facts/1.7/ubuntu-16.04-x86_64.facts
244
248
  - facts/2.0/archlinux-i386.facts
245
249
  - facts/2.0/archlinux-x86_64.facts
246
250
  - facts/2.0/centos-5-i386.facts
@@ -304,6 +308,8 @@ files:
304
308
  - facts/2.0/ubuntu-15.04-x86_64.facts
305
309
  - facts/2.0/ubuntu-15.10-i386.facts
306
310
  - facts/2.0/ubuntu-15.10-x86_64.facts
311
+ - facts/2.0/ubuntu-16.04-i386.facts
312
+ - facts/2.0/ubuntu-16.04-x86_64.facts
307
313
  - facts/2.1/archlinux-i386.facts
308
314
  - facts/2.1/archlinux-x86_64.facts
309
315
  - facts/2.1/centos-5-i386.facts
@@ -367,6 +373,8 @@ files:
367
373
  - facts/2.1/ubuntu-15.04-x86_64.facts
368
374
  - facts/2.1/ubuntu-15.10-i386.facts
369
375
  - facts/2.1/ubuntu-15.10-x86_64.facts
376
+ - facts/2.1/ubuntu-16.04-i386.facts
377
+ - facts/2.1/ubuntu-16.04-x86_64.facts
370
378
  - facts/2.2/archlinux-i386.facts
371
379
  - facts/2.2/archlinux-x86_64.facts
372
380
  - facts/2.2/centos-5-i386.facts
@@ -430,6 +438,8 @@ files:
430
438
  - facts/2.2/ubuntu-15.04-x86_64.facts
431
439
  - facts/2.2/ubuntu-15.10-i386.facts
432
440
  - facts/2.2/ubuntu-15.10-x86_64.facts
441
+ - facts/2.2/ubuntu-16.04-i386.facts
442
+ - facts/2.2/ubuntu-16.04-x86_64.facts
433
443
  - facts/2.3/archlinux-i386.facts
434
444
  - facts/2.3/archlinux-x86_64.facts
435
445
  - facts/2.3/centos-5-i386.facts
@@ -493,6 +503,8 @@ files:
493
503
  - facts/2.3/ubuntu-15.04-x86_64.facts
494
504
  - facts/2.3/ubuntu-15.10-i386.facts
495
505
  - facts/2.3/ubuntu-15.10-x86_64.facts
506
+ - facts/2.3/ubuntu-16.04-i386.facts
507
+ - facts/2.3/ubuntu-16.04-x86_64.facts
496
508
  - facts/2.4/archlinux-i386.facts
497
509
  - facts/2.4/archlinux-x86_64.facts
498
510
  - facts/2.4/centos-5-i386.facts
@@ -556,6 +568,8 @@ files:
556
568
  - facts/2.4/ubuntu-15.04-x86_64.facts
557
569
  - facts/2.4/ubuntu-15.10-i386.facts
558
570
  - facts/2.4/ubuntu-15.10-x86_64.facts
571
+ - facts/2.4/ubuntu-16.04-i386.facts
572
+ - facts/2.4/ubuntu-16.04-x86_64.facts
559
573
  - facts/2.4/windows-2012 r2-x64.facts
560
574
  - facts/2.4/windows-7-x64.facts
561
575
  - facts/3.0/debian-6-i386.facts
@@ -578,6 +592,8 @@ files:
578
592
  - facts/3.1/debian-7-x86_64.facts
579
593
  - facts/3.1/ubuntu-15.10-i386.facts
580
594
  - facts/3.1/ubuntu-15.10-x86_64.facts
595
+ - facts/3.1/ubuntu-16.04-i386.facts
596
+ - facts/3.1/ubuntu-16.04-x86_64.facts
581
597
  - facts/3.1/windows-2012 r2-x86_64.facts
582
598
  - facts/3.1/windows-7-x86_64.facts
583
599
  - facts/Gemfile