facterdb 1.16.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +3 -0
- data/facts/3.14/almalinux-9-x86_64.facts +495 -0
- data/facts/3.14/fedora-36-x86_64.facts +493 -0
- data/facts/3.14/ubuntu-22.04-x86_64.facts +631 -0
- data/facts/4.0/almalinux-9-x86_64.facts +518 -0
- data/facts/4.1/almalinux-9-x86_64.facts +520 -0
- data/facts/4.2/almalinux-9-x86_64.facts +525 -0
- data/facts/4.2/archlinux-x86_64.facts +11 -0
- data/facts/4.2/fedora-36-x86_64.facts +507 -0
- data/facts/4.2/ubuntu-22.04-x86_64.facts +654 -0
- data/facts/Vagrantfile +23 -0
- data/facts/get_facts.sh +13 -6
- data/lib/facterdb/version.rb +1 -1
- metadata +10 -2
data/facts/get_facts.sh
CHANGED
@@ -53,7 +53,7 @@ case "${osfamily}" in
|
|
53
53
|
fi
|
54
54
|
yum -y install "https://yum.puppetlabs.com/puppet6-release-${distcode}-${operatingsystemmajrelease}.noarch.rpm"
|
55
55
|
if [[ "${?}" == 0 ]]; then
|
56
|
-
for puppet_agent_version in 6.25.0; do
|
56
|
+
for puppet_agent_version in 6.25.0 6.27.1; do
|
57
57
|
if yum install -y puppet-agent-${puppet_agent_version}; then
|
58
58
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
|
59
59
|
mkdir -p $(dirname ${output_file})
|
@@ -65,7 +65,7 @@ case "${osfamily}" in
|
|
65
65
|
wget "http://yum.puppetlabs.com/puppet7-release-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppet7-release.rpm
|
66
66
|
if test -f /tmp/puppet7-release.rpm; then
|
67
67
|
rpm -ivh /tmp/puppet7-release.rpm
|
68
|
-
for puppet_agent_version in 7.5.0 7.6.1 7.
|
68
|
+
for puppet_agent_version in 7.5.0 7.6.1 7.17.0; do
|
69
69
|
if yum install -y puppet-agent-${puppet_agent_version}; then
|
70
70
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
|
71
71
|
mkdir -p $(dirname ${output_file})
|
@@ -78,7 +78,8 @@ case "${osfamily}" in
|
|
78
78
|
'Debian')
|
79
79
|
apt_install curl
|
80
80
|
curl "https://apt.puppetlabs.com/puppet6-release-${lsbdistcodename}.deb" -o /tmp/puppet6-release.deb
|
81
|
-
if
|
81
|
+
# apt.puppetlabs.com returns an html document if the requested deb doesn't exist and /tmp/puppet6-release.deb will be an html doc
|
82
|
+
if test "$?" -eq 0 -a -f /tmp/puppet6-release.deb && [[ "$(file -b /tmp/puppet6-release.deb)" =~ "Debian binary package".* ]] ; then
|
82
83
|
dpkg --install /tmp/puppet6-release.deb
|
83
84
|
apt-get update
|
84
85
|
for puppet_agent_version in 6.2 6.4 6.6; do
|
@@ -91,7 +92,8 @@ case "${osfamily}" in
|
|
91
92
|
apt-get -y remove --purge puppet6-release
|
92
93
|
fi
|
93
94
|
curl "https://apt.puppetlabs.com/puppet7-release-${lsbdistcodename}.deb" -o /tmp/puppet7-release.deb
|
94
|
-
if
|
95
|
+
# apt.puppetlabs.com returns an html document if the requested deb doesn't exist and /tmp/puppet6-release.deb will be an html doc
|
96
|
+
if test "$?" -eq 0 -a -f /tmp/puppet7-release.deb && [[ "$(file -b /tmp/puppet6-release.deb)" =~ "Debian binary package".* ]] ; then
|
95
97
|
dpkg --install /tmp/puppet7-release.deb
|
96
98
|
apt-get update
|
97
99
|
for puppet_agent_version in 7.5.0 7.6.1 7.12.0; do
|
@@ -105,9 +107,9 @@ case "${osfamily}" in
|
|
105
107
|
fi
|
106
108
|
apt_install make gcc libgmp-dev
|
107
109
|
|
108
|
-
# There are no puppet-agent packages for
|
110
|
+
# There are no puppet-agent packages for $releasename yet, so generate a Facter 3.x
|
109
111
|
# fact set from the official Debian package.
|
110
|
-
if [[ "
|
112
|
+
if [[ "hirsute" =~ ${lsbdistcodename} || "impish" =~ ${lsbdistcodename} || "jammy" =~ ${lsbdistcodename} ]]; then
|
111
113
|
apt_install ruby rubygems ruby-dev puppet facter
|
112
114
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
|
113
115
|
mkdir -p $(dirname ${output_file})
|
@@ -190,6 +192,11 @@ bundle install --path vendor/bundler
|
|
190
192
|
|
191
193
|
for version in 4.0.0 4.1.0 4.2.0; do
|
192
194
|
FACTER_GEM_VERSION="~> ${version}" bundle update
|
195
|
+
# sometimes all versions of facter are not possible, if the bundle update fails, skip the rest of the loop
|
196
|
+
if [ $? -ne 0 ]; then
|
197
|
+
echo "bundle update failed for facter version: $version"
|
198
|
+
continue
|
199
|
+
fi
|
193
200
|
|
194
201
|
# This is another workaround for shared folder on FreeBSD. "Accessing"
|
195
202
|
# /vagrant helps to not encounter a bug where we try to access files in
|
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: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -1309,6 +1309,7 @@ files:
|
|
1309
1309
|
- facts/3.13/windows-2019-x86_64.facts
|
1310
1310
|
- facts/3.14/VirtuozzoLinux-7-x86_64.facts
|
1311
1311
|
- facts/3.14/almalinux-8-x86_64.facts
|
1312
|
+
- facts/3.14/almalinux-9-x86_64.facts
|
1312
1313
|
- facts/3.14/amazon-2-x86_64.facts
|
1313
1314
|
- facts/3.14/amazon-2016-x86_64.facts
|
1314
1315
|
- facts/3.14/archlinux-x86_64.facts
|
@@ -1331,6 +1332,7 @@ files:
|
|
1331
1332
|
- facts/3.14/fedora-32-x86_64.facts
|
1332
1333
|
- facts/3.14/fedora-33-x86_64.facts
|
1333
1334
|
- facts/3.14/fedora-34-x86_64.facts
|
1335
|
+
- facts/3.14/fedora-36-x86_64.facts
|
1334
1336
|
- facts/3.14/freebsd-11-amd64.facts
|
1335
1337
|
- facts/3.14/freebsd-11-x86_64.facts
|
1336
1338
|
- facts/3.14/freebsd-12-amd64.facts
|
@@ -1360,6 +1362,7 @@ files:
|
|
1360
1362
|
- facts/3.14/ubuntu-20.04-x86_64.facts
|
1361
1363
|
- facts/3.14/ubuntu-21.04-x86_64.facts
|
1362
1364
|
- facts/3.14/ubuntu-21.10-x86_64.facts
|
1365
|
+
- facts/3.14/ubuntu-22.04-x86_64.facts
|
1363
1366
|
- facts/3.14/windows-10-i386.facts
|
1364
1367
|
- facts/3.14/windows-10-x86_64.facts
|
1365
1368
|
- facts/3.14/windows-2012 r2-core-x86_64.facts
|
@@ -1743,6 +1746,7 @@ files:
|
|
1743
1746
|
- facts/3.9/windows-2016-x86_64.facts
|
1744
1747
|
- facts/3.9/windows-2019-x86_64.facts
|
1745
1748
|
- facts/4.0/almalinux-8-x86_64.facts
|
1749
|
+
- facts/4.0/almalinux-9-x86_64.facts
|
1746
1750
|
- facts/4.0/centos-7-x86_64.facts
|
1747
1751
|
- facts/4.0/debian-10-x86_64.facts
|
1748
1752
|
- facts/4.0/debian-11-x86_64.facts
|
@@ -1766,6 +1770,7 @@ files:
|
|
1766
1770
|
- facts/4.0/ubuntu-21.04-x86_64.facts
|
1767
1771
|
- facts/4.0/ubuntu-21.10-x86_64.facts
|
1768
1772
|
- facts/4.1/almalinux-8-x86_64.facts
|
1773
|
+
- facts/4.1/almalinux-9-x86_64.facts
|
1769
1774
|
- facts/4.1/debian-11-x86_64.facts
|
1770
1775
|
- facts/4.1/fedora-32-x86_64.facts
|
1771
1776
|
- facts/4.1/fedora-33-x86_64.facts
|
@@ -1783,6 +1788,7 @@ files:
|
|
1783
1788
|
- facts/4.1/ubuntu-21.04-x86_64.facts
|
1784
1789
|
- facts/4.1/ubuntu-21.10-x86_64.facts
|
1785
1790
|
- facts/4.2/almalinux-8-x86_64.facts
|
1791
|
+
- facts/4.2/almalinux-9-x86_64.facts
|
1786
1792
|
- facts/4.2/archlinux-x86_64.facts
|
1787
1793
|
- facts/4.2/centos-7-x86_64.facts
|
1788
1794
|
- facts/4.2/centos-8-x86_64.facts
|
@@ -1795,6 +1801,7 @@ files:
|
|
1795
1801
|
- facts/4.2/fedora-33-x86_64.facts
|
1796
1802
|
- facts/4.2/fedora-34-x86_64.facts
|
1797
1803
|
- facts/4.2/fedora-35-x86_64.facts
|
1804
|
+
- facts/4.2/fedora-36-x86_64.facts
|
1798
1805
|
- facts/4.2/freebsd-11-x86_64.facts
|
1799
1806
|
- facts/4.2/freebsd-12-x86_64.facts
|
1800
1807
|
- facts/4.2/freebsd-13-x86_64.facts
|
@@ -1815,6 +1822,7 @@ files:
|
|
1815
1822
|
- facts/4.2/ubuntu-20.04-x86_64.facts
|
1816
1823
|
- facts/4.2/ubuntu-21.04-x86_64.facts
|
1817
1824
|
- facts/4.2/ubuntu-21.10-x86_64.facts
|
1825
|
+
- facts/4.2/ubuntu-22.04-x86_64.facts
|
1818
1826
|
- facts/Gemfile
|
1819
1827
|
- facts/Vagrantfile
|
1820
1828
|
- facts/Windows_README.md
|