facterdb 1.17.0 → 1.18.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})
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.17.0'
3
+ STRING = '1.18.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.17.0
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-06-02 00:00:00.000000000 Z
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
@@ -1361,6 +1362,7 @@ files:
1361
1362
  - facts/3.14/ubuntu-20.04-x86_64.facts
1362
1363
  - facts/3.14/ubuntu-21.04-x86_64.facts
1363
1364
  - facts/3.14/ubuntu-21.10-x86_64.facts
1365
+ - facts/3.14/ubuntu-22.04-x86_64.facts
1364
1366
  - facts/3.14/windows-10-i386.facts
1365
1367
  - facts/3.14/windows-10-x86_64.facts
1366
1368
  - facts/3.14/windows-2012 r2-core-x86_64.facts
@@ -1744,6 +1746,7 @@ files:
1744
1746
  - facts/3.9/windows-2016-x86_64.facts
1745
1747
  - facts/3.9/windows-2019-x86_64.facts
1746
1748
  - facts/4.0/almalinux-8-x86_64.facts
1749
+ - facts/4.0/almalinux-9-x86_64.facts
1747
1750
  - facts/4.0/centos-7-x86_64.facts
1748
1751
  - facts/4.0/debian-10-x86_64.facts
1749
1752
  - facts/4.0/debian-11-x86_64.facts
@@ -1767,6 +1770,7 @@ files:
1767
1770
  - facts/4.0/ubuntu-21.04-x86_64.facts
1768
1771
  - facts/4.0/ubuntu-21.10-x86_64.facts
1769
1772
  - facts/4.1/almalinux-8-x86_64.facts
1773
+ - facts/4.1/almalinux-9-x86_64.facts
1770
1774
  - facts/4.1/debian-11-x86_64.facts
1771
1775
  - facts/4.1/fedora-32-x86_64.facts
1772
1776
  - facts/4.1/fedora-33-x86_64.facts
@@ -1784,6 +1788,7 @@ files:
1784
1788
  - facts/4.1/ubuntu-21.04-x86_64.facts
1785
1789
  - facts/4.1/ubuntu-21.10-x86_64.facts
1786
1790
  - facts/4.2/almalinux-8-x86_64.facts
1791
+ - facts/4.2/almalinux-9-x86_64.facts
1787
1792
  - facts/4.2/archlinux-x86_64.facts
1788
1793
  - facts/4.2/centos-7-x86_64.facts
1789
1794
  - facts/4.2/centos-8-x86_64.facts
@@ -1817,6 +1822,7 @@ files:
1817
1822
  - facts/4.2/ubuntu-20.04-x86_64.facts
1818
1823
  - facts/4.2/ubuntu-21.04-x86_64.facts
1819
1824
  - facts/4.2/ubuntu-21.10-x86_64.facts
1825
+ - facts/4.2/ubuntu-22.04-x86_64.facts
1820
1826
  - facts/Gemfile
1821
1827
  - facts/Vagrantfile
1822
1828
  - facts/Windows_README.md