facterdb 1.16.1 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
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.12.0; do
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 test "$?" -eq 0 -a -f /tmp/puppet6-release.deb; then
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 test "$?" -eq 0 -a -f /tmp/puppet7-release.deb; then
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 Buster yet, so generate a Facter 3.x
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 [[ "buster" = "${lsbdistcodename}" || "hirsute" =~ ${lsbdistcodename} || "impish" =~ ${lsbdistcodename} ]]; then
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
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.16.1'
3
+ STRING = '1.19.0'
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: 1.16.1
4
+ version: 1.19.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-04-22 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -1309,8 +1309,10 @@ 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
1315
+ - facts/3.14/amazon-2022-x86_64.facts
1314
1316
  - facts/3.14/archlinux-x86_64.facts
1315
1317
  - facts/3.14/centos-6-x86_64.facts
1316
1318
  - facts/3.14/centos-7-x86_64.facts
@@ -1331,6 +1333,7 @@ files:
1331
1333
  - facts/3.14/fedora-32-x86_64.facts
1332
1334
  - facts/3.14/fedora-33-x86_64.facts
1333
1335
  - facts/3.14/fedora-34-x86_64.facts
1336
+ - facts/3.14/fedora-36-x86_64.facts
1334
1337
  - facts/3.14/freebsd-11-amd64.facts
1335
1338
  - facts/3.14/freebsd-11-x86_64.facts
1336
1339
  - facts/3.14/freebsd-12-amd64.facts
@@ -1360,6 +1363,7 @@ files:
1360
1363
  - facts/3.14/ubuntu-20.04-x86_64.facts
1361
1364
  - facts/3.14/ubuntu-21.04-x86_64.facts
1362
1365
  - facts/3.14/ubuntu-21.10-x86_64.facts
1366
+ - facts/3.14/ubuntu-22.04-x86_64.facts
1363
1367
  - facts/3.14/windows-10-i386.facts
1364
1368
  - facts/3.14/windows-10-x86_64.facts
1365
1369
  - facts/3.14/windows-2012 r2-core-x86_64.facts
@@ -1743,6 +1747,7 @@ files:
1743
1747
  - facts/3.9/windows-2016-x86_64.facts
1744
1748
  - facts/3.9/windows-2019-x86_64.facts
1745
1749
  - facts/4.0/almalinux-8-x86_64.facts
1750
+ - facts/4.0/almalinux-9-x86_64.facts
1746
1751
  - facts/4.0/centos-7-x86_64.facts
1747
1752
  - facts/4.0/debian-10-x86_64.facts
1748
1753
  - facts/4.0/debian-11-x86_64.facts
@@ -1766,6 +1771,7 @@ files:
1766
1771
  - facts/4.0/ubuntu-21.04-x86_64.facts
1767
1772
  - facts/4.0/ubuntu-21.10-x86_64.facts
1768
1773
  - facts/4.1/almalinux-8-x86_64.facts
1774
+ - facts/4.1/almalinux-9-x86_64.facts
1769
1775
  - facts/4.1/debian-11-x86_64.facts
1770
1776
  - facts/4.1/fedora-32-x86_64.facts
1771
1777
  - facts/4.1/fedora-33-x86_64.facts
@@ -1783,6 +1789,8 @@ files:
1783
1789
  - facts/4.1/ubuntu-21.04-x86_64.facts
1784
1790
  - facts/4.1/ubuntu-21.10-x86_64.facts
1785
1791
  - facts/4.2/almalinux-8-x86_64.facts
1792
+ - facts/4.2/almalinux-9-x86_64.facts
1793
+ - facts/4.2/amazon-2022-x86_64.facts
1786
1794
  - facts/4.2/archlinux-x86_64.facts
1787
1795
  - facts/4.2/centos-7-x86_64.facts
1788
1796
  - facts/4.2/centos-8-x86_64.facts
@@ -1795,6 +1803,7 @@ files:
1795
1803
  - facts/4.2/fedora-33-x86_64.facts
1796
1804
  - facts/4.2/fedora-34-x86_64.facts
1797
1805
  - facts/4.2/fedora-35-x86_64.facts
1806
+ - facts/4.2/fedora-36-x86_64.facts
1798
1807
  - facts/4.2/freebsd-11-x86_64.facts
1799
1808
  - facts/4.2/freebsd-12-x86_64.facts
1800
1809
  - facts/4.2/freebsd-13-x86_64.facts
@@ -1815,6 +1824,7 @@ files:
1815
1824
  - facts/4.2/ubuntu-20.04-x86_64.facts
1816
1825
  - facts/4.2/ubuntu-21.04-x86_64.facts
1817
1826
  - facts/4.2/ubuntu-21.10-x86_64.facts
1827
+ - facts/4.2/ubuntu-22.04-x86_64.facts
1818
1828
  - facts/Gemfile
1819
1829
  - facts/Vagrantfile
1820
1830
  - facts/Windows_README.md