facterdb 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -0
- data/facts/2.0/openbsd-5.8-i386.facts +138 -0
- data/facts/2.0/openbsd-5.8-x86_64.facts +138 -0
- data/facts/2.0/openbsd-5.9-i386.facts +138 -0
- data/facts/2.0/openbsd-5.9-x86_64.facts +138 -0
- data/facts/2.1/openbsd-5.8-i386.facts +91 -0
- data/facts/2.1/openbsd-5.8-x86_64.facts +91 -0
- data/facts/2.1/openbsd-5.9-i386.facts +91 -0
- data/facts/2.1/openbsd-5.9-x86_64.facts +91 -0
- data/facts/2.2/openbsd-5.8-i386.facts +137 -0
- data/facts/2.2/openbsd-5.8-x86_64.facts +137 -0
- data/facts/2.2/openbsd-5.9-i386.facts +137 -0
- data/facts/2.2/openbsd-5.9-x86_64.facts +137 -0
- data/facts/2.3/openbsd-5.8-i386.facts +138 -0
- data/facts/2.3/openbsd-5.8-x86_64.facts +138 -0
- data/facts/2.3/openbsd-5.9-i386.facts +138 -0
- data/facts/2.3/openbsd-5.9-x86_64.facts +138 -0
- data/facts/2.4/openbsd-5.8-i386.facts +138 -0
- data/facts/2.4/openbsd-5.8-x86_64.facts +138 -0
- data/facts/2.4/openbsd-5.9-i386.facts +138 -0
- data/facts/2.4/openbsd-5.9-x86_64.facts +138 -0
- data/facts/Vagrantfile +46 -0
- data/facts/get_facts.sh +11 -4
- data/lib/facterdb/version.rb +1 -1
- metadata +22 -2
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"gem_version": "~> 2.4.0",
|
3
|
+
"kernel": "OpenBSD",
|
4
|
+
"system_uptime": {
|
5
|
+
"seconds": 252,
|
6
|
+
"hours": 0,
|
7
|
+
"days": 0,
|
8
|
+
"uptime": "0:04 hours"
|
9
|
+
},
|
10
|
+
"gid": "wheel",
|
11
|
+
"hardwaremodel": "i386",
|
12
|
+
"kernelrelease": "5.9",
|
13
|
+
"rubyplatform": "i386-openbsd",
|
14
|
+
"path": "/home/vagrant/vendor/bundler/ruby/2.2/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin",
|
15
|
+
"partitions": {
|
16
|
+
"sd0a": {
|
17
|
+
"size": "229070",
|
18
|
+
"mount": "/",
|
19
|
+
"filesystem": "ffs"
|
20
|
+
},
|
21
|
+
"sd0k": {
|
22
|
+
"size": "2227662",
|
23
|
+
"mount": "/home",
|
24
|
+
"filesystem": "ffs"
|
25
|
+
},
|
26
|
+
"sd0d": {
|
27
|
+
"size": "358606",
|
28
|
+
"mount": "/tmp",
|
29
|
+
"filesystem": "ffs"
|
30
|
+
},
|
31
|
+
"sd0f": {
|
32
|
+
"size": "1053790",
|
33
|
+
"mount": "/usr",
|
34
|
+
"filesystem": "ffs"
|
35
|
+
},
|
36
|
+
"sd0g": {
|
37
|
+
"size": "605614",
|
38
|
+
"mount": "/usr/X11R6",
|
39
|
+
"filesystem": "ffs"
|
40
|
+
},
|
41
|
+
"sd0h": {
|
42
|
+
"size": "2361550",
|
43
|
+
"mount": "/usr/local",
|
44
|
+
"filesystem": "ffs"
|
45
|
+
},
|
46
|
+
"sd0j": {
|
47
|
+
"size": "1426446",
|
48
|
+
"mount": "/usr/obj",
|
49
|
+
"filesystem": "ffs"
|
50
|
+
},
|
51
|
+
"sd0i": {
|
52
|
+
"size": "1089630",
|
53
|
+
"mount": "/usr/src",
|
54
|
+
"filesystem": "ffs"
|
55
|
+
},
|
56
|
+
"sd0e": {
|
57
|
+
"size": "467374",
|
58
|
+
"mount": "/var",
|
59
|
+
"filesystem": "ffs"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"macaddress": "00:0c:29:a9:30:07",
|
63
|
+
"rubyversion": "2.2.4",
|
64
|
+
"hostname": "foo",
|
65
|
+
"operatingsystem": "OpenBSD",
|
66
|
+
"timezone": "UTC",
|
67
|
+
"facterversion": "2.4.6",
|
68
|
+
"processors": {
|
69
|
+
"count": 1,
|
70
|
+
"physicalcount": 1,
|
71
|
+
"speed": "2.19 GHz"
|
72
|
+
},
|
73
|
+
"uptime_seconds": 252,
|
74
|
+
"uptime": "0:04 hours",
|
75
|
+
"ps": "ps auxwww",
|
76
|
+
"operatingsystemmajrelease": "5",
|
77
|
+
"kernelversion": "5.9",
|
78
|
+
"virtual": "vmware",
|
79
|
+
"is_virtual": true,
|
80
|
+
"fqdn": "foo.example.com",
|
81
|
+
"netmask": "255.255.255.0",
|
82
|
+
"interfaces": "lo0,em0,enc0,pflog0",
|
83
|
+
"ipaddress_lo0": "127.0.0.1",
|
84
|
+
"netmask_lo0": "255.0.0.0",
|
85
|
+
"mtu_lo0": 32768,
|
86
|
+
"ipaddress_em0": "192.168.253.135",
|
87
|
+
"macaddress_em0": "00:0c:29:a9:30:07",
|
88
|
+
"netmask_em0": "255.255.255.0",
|
89
|
+
"mtu_em0": 1500,
|
90
|
+
"mtu_enc0": 0,
|
91
|
+
"mtu_pflog0": 33144,
|
92
|
+
"id": "root",
|
93
|
+
"os": {
|
94
|
+
"name": "OpenBSD",
|
95
|
+
"family": "OpenBSD",
|
96
|
+
"release": {
|
97
|
+
"major": "5",
|
98
|
+
"minor": "9",
|
99
|
+
"full": "5.9"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"architecture": "i386",
|
103
|
+
"operatingsystemrelease": "5.9",
|
104
|
+
"osfamily": "OpenBSD",
|
105
|
+
"rubysitedir": "/usr/local/lib/ruby/site_ruby/2.2",
|
106
|
+
"network_lo0": "127.0.0.0",
|
107
|
+
"network_em0": "192.168.253.0",
|
108
|
+
"uptime_days": 0,
|
109
|
+
"ipaddress": "192.168.253.135",
|
110
|
+
"memorysize": "367.94 MB",
|
111
|
+
"memoryfree": "187.13 MB",
|
112
|
+
"swapsize": "376.67 MB",
|
113
|
+
"swapfree": "376.67 MB",
|
114
|
+
"swapsize_mb": "376.67",
|
115
|
+
"swapfree_mb": "376.67",
|
116
|
+
"memorysize_mb": "367.94",
|
117
|
+
"memoryfree_mb": "187.13",
|
118
|
+
"swapencrypted": true,
|
119
|
+
"hardwareisa": "i386",
|
120
|
+
"sshdsakey": "AAAAB3NzaC1kc3MAAACBAPyM1MxDVTOqeQweac1iRSz9goN/fyLyh36b60XhSkrbpyoJt/vy0dnYYIN01aci6MV4u4M5+reRh+nLBworasF+bINLVXYzipus6FVAy2qBr+cJ3X4s9OG/jpBZ4GeN+/rWYdGzlLxfRIJJFEdDVXPd3ppW6wkziAddLTjViPxVAAAAFQC4TflQmOthgCKbZMgMAHcphS8zTwAAAIA3Vazgelbzhzr3NM++TtSIu/uYRWRcgWUuaOEBj18jApCnP3l9SKMv88p+SrNicY5jgvhgTLZc96zyseo/1Dc5m3B9dxCxdeOPuOi7iGC13rOmY6+xq/HLpSH5bxl/dY+BdvFWdGy4SbksLdbiBSJ0d41fQyTB71RuN18m2V/MbwAAAIBFMjnGfHdw+34H+I+4+JHYMXBO2f6COqYClgqAAoNGzi9uMw96bMFxv3UTBcGsR/eLD5+4Iy+iJFo/fP3FVi/BUbDo4AQj8x8GZklT8F/8rapqJdvxo/Fo2YoCRPQXSm/E8U/ORA8cgAtsThGLV4qS7ZOH984evDQ5pJBMSPxUxA==",
|
121
|
+
"sshfp_dsa": "SSHFP 2 1 e6e57bf2d7bb6e138543e79260c3b9f67af2fa7b\nSSHFP 2 2 6c9ffdd6f800c9a4fcc84c18ecb07343576b723ceae378f9bfe9cbf651aacf30",
|
122
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDak9NvN36Z4aehNbxuVusN934BjbPLpc7nF/OIh3XrSDNF3XFsK7WbzDa8Yc+9kJKdxcwZ8Ap0l60ioCk05yOz8nQ8j6kmMYcs2YUT70Hpj247Frt1ZN9ktXl0y7Hdc3qzIEZH5Fi+ZMDQFJfztoGWhEceM/qbg7z7Uwv3oot2FDqMTRLlVttJZYYZwQbrptb3amnkY31ZsL8BAkB7nMMK7EmlWFLr6e3P8AQ5XHd4K4LFIAUEtR4lav3FNKKP8qX3ucwFc8ZTpyVEiaS5Wi4xdQPaS5lsUR46xDjg2m7YCyfVHh0PGOlCz2w7o8piXKhcaEYfLhWMNmlr4LePsJVP",
|
123
|
+
"sshfp_rsa": "SSHFP 1 1 6b7b38f4ed75cc2a5ed4b921c4b29c8bc83d6aa3\nSSHFP 1 2 b640ed22ce348f25f3c6c474888605225741fd5e1f71079cceff36bcc543b222",
|
124
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG3RdOS4YaQzfy6hsIuTx0KiA5bmpgZlb7JNTrFI45lpCMU+Gaf2YuJw4TOMe3Tzp4ivpuP4Bjpn9D/mTk1cchY=",
|
125
|
+
"sshfp_ecdsa": "SSHFP 3 1 c8fd4a03b11180872bec271971c6d531977db52a\nSSHFP 3 2 9a7e060e9bcb004c8e575b52ce314e4c30a78168c0e8eb47d6db87e35f5e0a41",
|
126
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAICKjCXmGPhkCQMUU3HjbHcZcoiySpjUHQbEAPA+R2/IJ",
|
127
|
+
"sshfp_ed25519": "SSHFP 4 1 3dd8f327fd0ce90f057aa681975eb1e9e3b8bb9b\nSSHFP 4 2 844d84945c7d52c63017ff34dd7cbfb141b0925bf93abac24fa4c5fc7456494b",
|
128
|
+
"uptime_hours": 0,
|
129
|
+
"physicalprocessorcount": 1,
|
130
|
+
"manufacturer": "VMware, Inc.",
|
131
|
+
"productname": "VMware Virtual Platform",
|
132
|
+
"serialnumber": "VMware-56 4d 97 2d 6e 4f 7d 40-19 f6 0a 00 89 a9 30 07",
|
133
|
+
"processorcount": 1,
|
134
|
+
"processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz",
|
135
|
+
"kernelmajversion": "5.9",
|
136
|
+
"domain": "example.com",
|
137
|
+
"loginclass": "daemon"
|
138
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"gem_version": "~> 2.4.0",
|
3
|
+
"kernel": "OpenBSD",
|
4
|
+
"system_uptime": {
|
5
|
+
"seconds": 252,
|
6
|
+
"hours": 0,
|
7
|
+
"days": 0,
|
8
|
+
"uptime": "0:04 hours"
|
9
|
+
},
|
10
|
+
"gid": "wheel",
|
11
|
+
"hardwaremodel": "amd64",
|
12
|
+
"kernelrelease": "5.9",
|
13
|
+
"rubyplatform": "x86_64-openbsd",
|
14
|
+
"path": "/home/vagrant/vendor/bundler/ruby/2.2/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin",
|
15
|
+
"partitions": {
|
16
|
+
"sd0a": {
|
17
|
+
"size": "229070",
|
18
|
+
"mount": "/",
|
19
|
+
"filesystem": "ffs"
|
20
|
+
},
|
21
|
+
"sd0k": {
|
22
|
+
"size": "2227662",
|
23
|
+
"mount": "/home",
|
24
|
+
"filesystem": "ffs"
|
25
|
+
},
|
26
|
+
"sd0d": {
|
27
|
+
"size": "358606",
|
28
|
+
"mount": "/tmp",
|
29
|
+
"filesystem": "ffs"
|
30
|
+
},
|
31
|
+
"sd0f": {
|
32
|
+
"size": "1053790",
|
33
|
+
"mount": "/usr",
|
34
|
+
"filesystem": "ffs"
|
35
|
+
},
|
36
|
+
"sd0g": {
|
37
|
+
"size": "605614",
|
38
|
+
"mount": "/usr/X11R6",
|
39
|
+
"filesystem": "ffs"
|
40
|
+
},
|
41
|
+
"sd0h": {
|
42
|
+
"size": "2361550",
|
43
|
+
"mount": "/usr/local",
|
44
|
+
"filesystem": "ffs"
|
45
|
+
},
|
46
|
+
"sd0j": {
|
47
|
+
"size": "1426446",
|
48
|
+
"mount": "/usr/obj",
|
49
|
+
"filesystem": "ffs"
|
50
|
+
},
|
51
|
+
"sd0i": {
|
52
|
+
"size": "1089630",
|
53
|
+
"mount": "/usr/src",
|
54
|
+
"filesystem": "ffs"
|
55
|
+
},
|
56
|
+
"sd0e": {
|
57
|
+
"size": "467374",
|
58
|
+
"mount": "/var",
|
59
|
+
"filesystem": "ffs"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"macaddress": "00:0c:29:a9:30:07",
|
63
|
+
"rubyversion": "2.2.4",
|
64
|
+
"hostname": "foo",
|
65
|
+
"operatingsystem": "OpenBSD",
|
66
|
+
"timezone": "UTC",
|
67
|
+
"facterversion": "2.4.6",
|
68
|
+
"processors": {
|
69
|
+
"count": 1,
|
70
|
+
"physicalcount": 1,
|
71
|
+
"speed": "2.19 GHz"
|
72
|
+
},
|
73
|
+
"uptime_seconds": 252,
|
74
|
+
"uptime": "0:04 hours",
|
75
|
+
"ps": "ps auxwww",
|
76
|
+
"operatingsystemmajrelease": "5",
|
77
|
+
"kernelversion": "5.9",
|
78
|
+
"virtual": "vmware",
|
79
|
+
"is_virtual": true,
|
80
|
+
"fqdn": "foo.example.com",
|
81
|
+
"netmask": "255.255.255.0",
|
82
|
+
"interfaces": "lo0,em0,enc0,pflog0",
|
83
|
+
"ipaddress_lo0": "127.0.0.1",
|
84
|
+
"netmask_lo0": "255.0.0.0",
|
85
|
+
"mtu_lo0": 32768,
|
86
|
+
"ipaddress_em0": "192.168.253.135",
|
87
|
+
"macaddress_em0": "00:0c:29:a9:30:07",
|
88
|
+
"netmask_em0": "255.255.255.0",
|
89
|
+
"mtu_em0": 1500,
|
90
|
+
"mtu_enc0": 0,
|
91
|
+
"mtu_pflog0": 33144,
|
92
|
+
"id": "root",
|
93
|
+
"os": {
|
94
|
+
"name": "OpenBSD",
|
95
|
+
"family": "OpenBSD",
|
96
|
+
"release": {
|
97
|
+
"major": "5",
|
98
|
+
"minor": "9",
|
99
|
+
"full": "5.9"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"architecture": "amd64",
|
103
|
+
"operatingsystemrelease": "5.9",
|
104
|
+
"osfamily": "OpenBSD",
|
105
|
+
"rubysitedir": "/usr/local/lib/ruby/site_ruby/2.2",
|
106
|
+
"network_lo0": "127.0.0.0",
|
107
|
+
"network_em0": "192.168.253.0",
|
108
|
+
"uptime_days": 0,
|
109
|
+
"ipaddress": "192.168.253.135",
|
110
|
+
"memorysize": "367.94 MB",
|
111
|
+
"memoryfree": "187.13 MB",
|
112
|
+
"swapsize": "376.67 MB",
|
113
|
+
"swapfree": "376.67 MB",
|
114
|
+
"swapsize_mb": "376.67",
|
115
|
+
"swapfree_mb": "376.67",
|
116
|
+
"memorysize_mb": "367.94",
|
117
|
+
"memoryfree_mb": "187.13",
|
118
|
+
"swapencrypted": true,
|
119
|
+
"hardwareisa": "amd64",
|
120
|
+
"sshdsakey": "AAAAB3NzaC1kc3MAAACBAPyM1MxDVTOqeQweac1iRSz9goN/fyLyh36b60XhSkrbpyoJt/vy0dnYYIN01aci6MV4u4M5+reRh+nLBworasF+bINLVXYzipus6FVAy2qBr+cJ3X4s9OG/jpBZ4GeN+/rWYdGzlLxfRIJJFEdDVXPd3ppW6wkziAddLTjViPxVAAAAFQC4TflQmOthgCKbZMgMAHcphS8zTwAAAIA3Vazgelbzhzr3NM++TtSIu/uYRWRcgWUuaOEBj18jApCnP3l9SKMv88p+SrNicY5jgvhgTLZc96zyseo/1Dc5m3B9dxCxdeOPuOi7iGC13rOmY6+xq/HLpSH5bxl/dY+BdvFWdGy4SbksLdbiBSJ0d41fQyTB71RuN18m2V/MbwAAAIBFMjnGfHdw+34H+I+4+JHYMXBO2f6COqYClgqAAoNGzi9uMw96bMFxv3UTBcGsR/eLD5+4Iy+iJFo/fP3FVi/BUbDo4AQj8x8GZklT8F/8rapqJdvxo/Fo2YoCRPQXSm/E8U/ORA8cgAtsThGLV4qS7ZOH984evDQ5pJBMSPxUxA==",
|
121
|
+
"sshfp_dsa": "SSHFP 2 1 e6e57bf2d7bb6e138543e79260c3b9f67af2fa7b\nSSHFP 2 2 6c9ffdd6f800c9a4fcc84c18ecb07343576b723ceae378f9bfe9cbf651aacf30",
|
122
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDak9NvN36Z4aehNbxuVusN934BjbPLpc7nF/OIh3XrSDNF3XFsK7WbzDa8Yc+9kJKdxcwZ8Ap0l60ioCk05yOz8nQ8j6kmMYcs2YUT70Hpj247Frt1ZN9ktXl0y7Hdc3qzIEZH5Fi+ZMDQFJfztoGWhEceM/qbg7z7Uwv3oot2FDqMTRLlVttJZYYZwQbrptb3amnkY31ZsL8BAkB7nMMK7EmlWFLr6e3P8AQ5XHd4K4LFIAUEtR4lav3FNKKP8qX3ucwFc8ZTpyVEiaS5Wi4xdQPaS5lsUR46xDjg2m7YCyfVHh0PGOlCz2w7o8piXKhcaEYfLhWMNmlr4LePsJVP",
|
123
|
+
"sshfp_rsa": "SSHFP 1 1 6b7b38f4ed75cc2a5ed4b921c4b29c8bc83d6aa3\nSSHFP 1 2 b640ed22ce348f25f3c6c474888605225741fd5e1f71079cceff36bcc543b222",
|
124
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG3RdOS4YaQzfy6hsIuTx0KiA5bmpgZlb7JNTrFI45lpCMU+Gaf2YuJw4TOMe3Tzp4ivpuP4Bjpn9D/mTk1cchY=",
|
125
|
+
"sshfp_ecdsa": "SSHFP 3 1 c8fd4a03b11180872bec271971c6d531977db52a\nSSHFP 3 2 9a7e060e9bcb004c8e575b52ce314e4c30a78168c0e8eb47d6db87e35f5e0a41",
|
126
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAICKjCXmGPhkCQMUU3HjbHcZcoiySpjUHQbEAPA+R2/IJ",
|
127
|
+
"sshfp_ed25519": "SSHFP 4 1 3dd8f327fd0ce90f057aa681975eb1e9e3b8bb9b\nSSHFP 4 2 844d84945c7d52c63017ff34dd7cbfb141b0925bf93abac24fa4c5fc7456494b",
|
128
|
+
"uptime_hours": 0,
|
129
|
+
"physicalprocessorcount": 1,
|
130
|
+
"manufacturer": "VMware, Inc.",
|
131
|
+
"productname": "VMware Virtual Platform",
|
132
|
+
"serialnumber": "VMware-56 4d 97 2d 6e 4f 7d 40-19 f6 0a 00 89 a9 30 07",
|
133
|
+
"processorcount": 1,
|
134
|
+
"processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz",
|
135
|
+
"kernelmajversion": "5.9",
|
136
|
+
"domain": "example.com",
|
137
|
+
"loginclass": "daemon"
|
138
|
+
}
|
data/facts/Vagrantfile
CHANGED
@@ -201,6 +201,52 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
201
201
|
host.vm.provision "shell", path: "get_facts.sh"
|
202
202
|
host.vm.provision "shell", inline: "/sbin/shutdown -h now"
|
203
203
|
end
|
204
|
+
config.vm.define "openbsd-5.8-x86_64" do |host|
|
205
|
+
host.vm.box = "bodgit/openbsd-5.8-amd64"
|
206
|
+
host.vm.synced_folder ".", "/vagrant", :nfs => true
|
207
|
+
host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
|
208
|
+
. ~/.profile
|
209
|
+
|
210
|
+
pkg_info -qe 'bash->=0' || pkg_add -I bash
|
211
|
+
ln -sf /usr/local/bin/bash /bin
|
212
|
+
|
213
|
+
pkg_info -qe 'facter->=2.4.4' || pkg_add -I facter-2.4.4p2
|
214
|
+
ln -sf /usr/local/bin/ruby22 /usr/local/bin/ruby
|
215
|
+
ln -sf /usr/local/bin/erb22 /usr/local/bin/erb
|
216
|
+
ln -sf /usr/local/bin/irb22 /usr/local/bin/irb
|
217
|
+
ln -sf /usr/local/bin/rdoc22 /usr/local/bin/rdoc
|
218
|
+
ln -sf /usr/local/bin/ri22 /usr/local/bin/ri
|
219
|
+
ln -sf /usr/local/bin/rake22 /usr/local/bin/rake
|
220
|
+
ln -sf /usr/local/bin/gem22 /usr/local/bin/gem
|
221
|
+
ln -sf /usr/local/bin/testrb22 /usr/local/bin/testrb
|
222
|
+
SCRIPT
|
223
|
+
host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
|
224
|
+
host.vm.provision "shell", path: "get_facts.sh"
|
225
|
+
host.vm.provision "shell", inline: "/sbin/shutdown -h now"
|
226
|
+
end
|
227
|
+
config.vm.define "openbsd-5.9-x86_64" do |host|
|
228
|
+
host.vm.box = "bodgit/openbsd-5.9-amd64"
|
229
|
+
host.vm.synced_folder ".", "/vagrant", :nfs => true
|
230
|
+
host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
|
231
|
+
. ~/.profile
|
232
|
+
|
233
|
+
pkg_info -qe 'bash->=0' || pkg_add -I bash
|
234
|
+
ln -sf /usr/local/bin/bash /bin
|
235
|
+
|
236
|
+
pkg_info -qe 'facter->=2.4.6' || pkg_add -I facter-2.4.6
|
237
|
+
ln -sf /usr/local/bin/ruby22 /usr/local/bin/ruby
|
238
|
+
ln -sf /usr/local/bin/erb22 /usr/local/bin/erb
|
239
|
+
ln -sf /usr/local/bin/irb22 /usr/local/bin/irb
|
240
|
+
ln -sf /usr/local/bin/rdoc22 /usr/local/bin/rdoc
|
241
|
+
ln -sf /usr/local/bin/ri22 /usr/local/bin/ri
|
242
|
+
ln -sf /usr/local/bin/rake22 /usr/local/bin/rake
|
243
|
+
ln -sf /usr/local/bin/gem22 /usr/local/bin/gem
|
244
|
+
ln -sf /usr/local/bin/testrb22 /usr/local/bin/testrb
|
245
|
+
SCRIPT
|
246
|
+
host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
|
247
|
+
host.vm.provision "shell", path: "get_facts.sh"
|
248
|
+
host.vm.provision "shell", inline: "/sbin/shutdown -h now"
|
249
|
+
end
|
204
250
|
config.vm.define "osx-10.10-x86_64" do |host|
|
205
251
|
host.vm.box = "AndrewDryga/vagrant-box-osx"
|
206
252
|
host.vm.network :private_network, ip: '10.0.0.2'
|
data/facts/get_facts.sh
CHANGED
@@ -15,9 +15,6 @@ elif test -f /usr/bin/dnf; then
|
|
15
15
|
elif test -f /usr/bin/yum; then
|
16
16
|
operatingsystemmajrelease=$(cat /etc/redhat-release | cut -d' ' -f4 | cut -c1)
|
17
17
|
osfamily='RedHat'
|
18
|
-
else
|
19
|
-
echo 'Could not detect OS family, aborting!'
|
20
|
-
exit 1
|
21
18
|
fi
|
22
19
|
|
23
20
|
case "${osfamily}" in
|
@@ -60,16 +57,26 @@ case "${osfamily}" in
|
|
60
57
|
esac
|
61
58
|
|
62
59
|
operatingsystem=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
|
60
|
+
operatingsystemrelease=$(facter operatingsystemrelease)
|
63
61
|
operatingsystemmajrelease=$(facter operatingsystemmajrelease)
|
64
62
|
hardwaremodel=$(facter hardwaremodel)
|
65
63
|
|
64
|
+
[ "${hardwaremodel}" = 'amd64' ] && hardwaremodel=x86_64
|
65
|
+
|
66
66
|
PATH=/opt/puppetlabs/puppet/bin:$PATH
|
67
67
|
gem install bundler --no-ri --no-rdoc --no-format-executable
|
68
68
|
bundle install --path vendor/bundler
|
69
69
|
|
70
70
|
for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0; do
|
71
71
|
FACTER_GEM_VERSION="~> ${version}" bundle update
|
72
|
-
|
72
|
+
case "${operatingsystem}" in
|
73
|
+
openbsd)
|
74
|
+
output_file="/vagrant/$(bundle exec facter --version | cut -c1-3)/${operatingsystem}-${operatingsystemrelease}-${hardwaremodel}.facts"
|
75
|
+
;;
|
76
|
+
*)
|
77
|
+
output_file="/vagrant/$(bundle exec facter --version | cut -c1-3)/${operatingsystem}-${operatingsystemmajrelease}-${hardwaremodel}.facts"
|
78
|
+
;;
|
79
|
+
esac
|
73
80
|
mkdir -p $(dirname $output_file)
|
74
81
|
echo $version | grep -q -E '^1\.' &&
|
75
82
|
FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
|
data/lib/facterdb/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.5
|
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-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -282,6 +282,10 @@ files:
|
|
282
282
|
- facts/2.0/gentoo-x86_64.facts
|
283
283
|
- facts/2.0/openbsd-5.7-i386.facts
|
284
284
|
- facts/2.0/openbsd-5.7-x86_64.facts
|
285
|
+
- facts/2.0/openbsd-5.8-i386.facts
|
286
|
+
- facts/2.0/openbsd-5.8-x86_64.facts
|
287
|
+
- facts/2.0/openbsd-5.9-i386.facts
|
288
|
+
- facts/2.0/openbsd-5.9-x86_64.facts
|
285
289
|
- facts/2.0/opensuse-12-i386.facts
|
286
290
|
- facts/2.0/opensuse-12-x86_64.facts
|
287
291
|
- facts/2.0/opensuse-13-i386.facts
|
@@ -351,6 +355,10 @@ files:
|
|
351
355
|
- facts/2.1/gentoo-x86_64.facts
|
352
356
|
- facts/2.1/openbsd-5.7-i386.facts
|
353
357
|
- facts/2.1/openbsd-5.7-x86_64.facts
|
358
|
+
- facts/2.1/openbsd-5.8-i386.facts
|
359
|
+
- facts/2.1/openbsd-5.8-x86_64.facts
|
360
|
+
- facts/2.1/openbsd-5.9-i386.facts
|
361
|
+
- facts/2.1/openbsd-5.9-x86_64.facts
|
354
362
|
- facts/2.1/opensuse-12-i386.facts
|
355
363
|
- facts/2.1/opensuse-12-x86_64.facts
|
356
364
|
- facts/2.1/opensuse-13-i386.facts
|
@@ -420,6 +428,10 @@ files:
|
|
420
428
|
- facts/2.2/gentoo-x86_64.facts
|
421
429
|
- facts/2.2/openbsd-5.7-i386.facts
|
422
430
|
- facts/2.2/openbsd-5.7-x86_64.facts
|
431
|
+
- facts/2.2/openbsd-5.8-i386.facts
|
432
|
+
- facts/2.2/openbsd-5.8-x86_64.facts
|
433
|
+
- facts/2.2/openbsd-5.9-i386.facts
|
434
|
+
- facts/2.2/openbsd-5.9-x86_64.facts
|
423
435
|
- facts/2.2/opensuse-12-i386.facts
|
424
436
|
- facts/2.2/opensuse-12-x86_64.facts
|
425
437
|
- facts/2.2/opensuse-13-i386.facts
|
@@ -489,6 +501,10 @@ files:
|
|
489
501
|
- facts/2.3/gentoo-x86_64.facts
|
490
502
|
- facts/2.3/openbsd-5.7-i386.facts
|
491
503
|
- facts/2.3/openbsd-5.7-x86_64.facts
|
504
|
+
- facts/2.3/openbsd-5.8-i386.facts
|
505
|
+
- facts/2.3/openbsd-5.8-x86_64.facts
|
506
|
+
- facts/2.3/openbsd-5.9-i386.facts
|
507
|
+
- facts/2.3/openbsd-5.9-x86_64.facts
|
492
508
|
- facts/2.3/opensuse-12-i386.facts
|
493
509
|
- facts/2.3/opensuse-12-x86_64.facts
|
494
510
|
- facts/2.3/opensuse-13-i386.facts
|
@@ -558,6 +574,10 @@ files:
|
|
558
574
|
- facts/2.4/gentoo-x86_64.facts
|
559
575
|
- facts/2.4/openbsd-5.7-i386.facts
|
560
576
|
- facts/2.4/openbsd-5.7-x86_64.facts
|
577
|
+
- facts/2.4/openbsd-5.8-i386.facts
|
578
|
+
- facts/2.4/openbsd-5.8-x86_64.facts
|
579
|
+
- facts/2.4/openbsd-5.9-i386.facts
|
580
|
+
- facts/2.4/openbsd-5.9-x86_64.facts
|
561
581
|
- facts/2.4/opensuse-12-i386.facts
|
562
582
|
- facts/2.4/opensuse-12-x86_64.facts
|
563
583
|
- facts/2.4/opensuse-13-i386.facts
|