facterdb 1.10.1 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +11 -5
  4. data/facts/3.14/fedora-32-x86_64.facts +490 -0
  5. data/facts/3.14/fedora-33-x86_64.facts +482 -0
  6. data/facts/3.14/fedora-34-x86_64.facts +493 -0
  7. data/facts/3.14/ubuntu-21.04-x86_64.facts +510 -0
  8. data/facts/4.0/almalinux-8-x86_64.facts +302 -67
  9. data/facts/4.0/fedora-32-x86_64.facts +308 -0
  10. data/facts/4.0/fedora-33-x86_64.facts +303 -0
  11. data/facts/4.0/fedora-34-x86_64.facts +308 -0
  12. data/facts/4.0/oraclelinux-7-x86_64.facts +706 -0
  13. data/facts/4.0/redhat-7-x86_64.facts +706 -0
  14. data/facts/4.0/redhat-8-x86_64.facts +267 -53
  15. data/facts/4.0/rocky-8-x86_64.facts +523 -0
  16. data/facts/4.0/scientific-7-x86_64.facts +706 -0
  17. data/facts/4.1/almalinux-8-x86_64.facts +544 -0
  18. data/facts/4.1/fedora-32-x86_64.facts +310 -0
  19. data/facts/4.1/fedora-33-x86_64.facts +305 -0
  20. data/facts/4.1/fedora-34-x86_64.facts +310 -0
  21. data/facts/4.1/redhat-8-x86_64.facts +267 -53
  22. data/facts/4.1/rocky-8-x86_64.facts +525 -0
  23. data/facts/4.2/almalinux-8-x86_64.facts +550 -0
  24. data/facts/4.2/debian-11-x86_64.facts +255 -67
  25. data/facts/4.2/fedora-32-x86_64.facts +310 -0
  26. data/facts/4.2/fedora-33-x86_64.facts +305 -0
  27. data/facts/4.2/fedora-34-x86_64.facts +511 -0
  28. data/facts/4.2/oraclelinux-7-x86_64.facts +593 -0
  29. data/facts/4.2/oraclelinux-9-x86_64.facts +291 -0
  30. data/facts/4.2/redhat-7-x86_64.facts +593 -0
  31. data/facts/4.2/redhat-8-x86_64.facts +267 -53
  32. data/facts/4.2/redhat-9-x86_64.facts +291 -0
  33. data/facts/4.2/rocky-8-x86_64.facts +525 -0
  34. data/facts/4.2/scientific-7-x86_64.facts +593 -0
  35. data/facts/Gemfile +1 -0
  36. data/facts/Vagrantfile +26 -1
  37. data/facts/get_facts.sh +45 -4
  38. data/lib/facterdb/version.rb +1 -1
  39. metadata +28 -2
data/facts/get_facts.sh CHANGED
@@ -97,9 +97,28 @@ case "${osfamily}" in
97
97
  done
98
98
  yum remove -y puppet5-release
99
99
  fi
100
+ # Puppet 6
100
101
  yum install -y "https://yum.puppetlabs.com/puppet6-release-fedora-${operatingsystemmajrelease}.noarch.rpm"
101
102
  if [[ "${?}" == 0 ]]; then
102
- for puppet_agent_version in 6.2.0-1 6.4.2-1 6.6.0-1; do
103
+ for puppet_agent_version in 6.25.0-1; do
104
+ dnf install -y "puppet-agent-${puppet_agent_version}.fc${operatingsystemmajrelease}"
105
+ if [[ "${?}" == 0 ]]; then
106
+ output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
107
+ mkdir -p $(dirname ${output_file})
108
+ facter --show-legacy -p -j | tee ${output_file}
109
+ fi
110
+ done
111
+ yum remove -y puppet6-release
112
+ fi
113
+ # Puppet 7
114
+ if [[ $operatingsystemmajrelease == '33' ]] && command -v facter &> /dev/null; then
115
+ output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
116
+ mkdir -p $(dirname ${output_file})
117
+ facter --show-legacy -p -j | tee ${output_file}
118
+ fi
119
+ yum install -y "https://yum.puppetlabs.com/puppet7-release-fedora-${operatingsystemmajrelease}.noarch.rpm"
120
+ if [[ "${?}" == 0 ]]; then
121
+ for puppet_agent_version in 7.12.0-1; do
103
122
  dnf install -y "puppet-agent-${puppet_agent_version}.fc${operatingsystemmajrelease}"
104
123
  if [[ "${?}" == 0 ]]; then
105
124
  output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
@@ -155,6 +174,18 @@ case "${osfamily}" in
155
174
  done
156
175
  yum remove -y puppet6-release
157
176
  fi
177
+ wget "http://yum.puppetlabs.com/puppet7-release-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppet7-release.rpm
178
+ if test -f /tmp/puppet7-release.rpm; then
179
+ rpm -ivh /tmp/puppet7-release.rpm
180
+ for puppet_agent_version in 7.5.0 7.6.1 7.12.0; do
181
+ if yum install -y puppet-agent-${puppet_agent_version}; then
182
+ output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
183
+ mkdir -p $(dirname ${output_file})
184
+ facter --show-legacy -p -j | tee ${output_file}
185
+ fi
186
+ done
187
+ yum remove -y puppet7-release
188
+ fi
158
189
  ;;
159
190
  'RockyLinux'|'AlmaLinux')
160
191
  dnf localinstall -y "http://yum.puppetlabs.com/puppet6-release-el-${operatingsystemmajrelease}.noarch.rpm"
@@ -212,6 +243,19 @@ case "${osfamily}" in
212
243
  done
213
244
  apt-get -y remove --purge puppet6-release
214
245
  fi
246
+ curl "https://apt.puppetlabs.com/puppet7-release-${lsbdistcodename}.deb" -o /tmp/puppet7-release.deb
247
+ if test "$?" -eq 0 -a -f /tmp/puppet7-release.deb; then
248
+ dpkg --install /tmp/puppet7-release.deb
249
+ apt-get update
250
+ for puppet_agent_version in 7.5.0 7.6.1 7.12.0; do
251
+ if apt_install puppet-agent=${puppet_agent_version}*; then
252
+ output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
253
+ mkdir -p $(dirname ${output_file})
254
+ facter --show-legacy -p -j | tee ${output_file}
255
+ fi
256
+ done
257
+ apt-get -y remove --purge puppet7-release
258
+ fi
215
259
  apt_install make gcc libgmp-dev
216
260
 
217
261
  # There are no puppet-agent packages for Buster yet, so generate a Facter 3.x
@@ -326,9 +370,6 @@ for version in 4.0.0 4.1.0 4.2.0; do
326
370
  ls -l /vagrant > /dev/null
327
371
 
328
372
  case "${operatingsystem}" in
329
- almalinux|rocky)
330
- break
331
- ;;
332
373
  openbsd)
333
374
  output_file="/vagrant/$(bundle exec facter --version | cut -d. -f1,2)/${operatingsystem}-${operatingsystemrelease}-${hardwaremodel}.facts"
334
375
  ;;
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.10.1'
3
+ STRING = '1.11.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.10.1
4
+ version: 1.11.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: 2021-10-09 00:00:00.000000000 Z
11
+ date: 2021-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -1325,6 +1325,9 @@ files:
1325
1325
  - facts/3.14/fedora-28-x86_64.facts
1326
1326
  - facts/3.14/fedora-29-x86_64.facts
1327
1327
  - facts/3.14/fedora-30-x86_64.facts
1328
+ - facts/3.14/fedora-32-x86_64.facts
1329
+ - facts/3.14/fedora-33-x86_64.facts
1330
+ - facts/3.14/fedora-34-x86_64.facts
1328
1331
  - facts/3.14/freebsd-11-amd64.facts
1329
1332
  - facts/3.14/freebsd-11-x86_64.facts
1330
1333
  - facts/3.14/freebsd-12-amd64.facts
@@ -1351,6 +1354,7 @@ files:
1351
1354
  - facts/3.14/ubuntu-16.04-x86_64.facts
1352
1355
  - facts/3.14/ubuntu-18.04-x86_64.facts
1353
1356
  - facts/3.14/ubuntu-20.04-x86_64.facts
1357
+ - facts/3.14/ubuntu-21.04-x86_64.facts
1354
1358
  - facts/3.14/windows-10-i386.facts
1355
1359
  - facts/3.14/windows-10-x86_64.facts
1356
1360
  - facts/3.14/windows-2012 r2-core-x86_64.facts
@@ -1737,20 +1741,33 @@ files:
1737
1741
  - facts/4.0/centos-7-x86_64.facts
1738
1742
  - facts/4.0/debian-10-x86_64.facts
1739
1743
  - facts/4.0/debian-11-x86_64.facts
1744
+ - facts/4.0/fedora-32-x86_64.facts
1745
+ - facts/4.0/fedora-33-x86_64.facts
1746
+ - facts/4.0/fedora-34-x86_64.facts
1740
1747
  - facts/4.0/freebsd-11-x86_64.facts
1741
1748
  - facts/4.0/freebsd-12-x86_64.facts
1742
1749
  - facts/4.0/freebsd-13-x86_64.facts
1750
+ - facts/4.0/oraclelinux-7-x86_64.facts
1751
+ - facts/4.0/redhat-7-x86_64.facts
1743
1752
  - facts/4.0/redhat-8-x86_64.facts
1753
+ - facts/4.0/rocky-8-x86_64.facts
1754
+ - facts/4.0/scientific-7-x86_64.facts
1744
1755
  - facts/4.0/solaris-11-sun4v.facts
1745
1756
  - facts/4.0/ubuntu-18.04-x86_64.facts
1746
1757
  - facts/4.0/ubuntu-20.04-x86_64.facts
1758
+ - facts/4.1/almalinux-8-x86_64.facts
1747
1759
  - facts/4.1/debian-11-x86_64.facts
1760
+ - facts/4.1/fedora-32-x86_64.facts
1761
+ - facts/4.1/fedora-33-x86_64.facts
1762
+ - facts/4.1/fedora-34-x86_64.facts
1748
1763
  - facts/4.1/freebsd-11-x86_64.facts
1749
1764
  - facts/4.1/freebsd-12-x86_64.facts
1750
1765
  - facts/4.1/freebsd-13-x86_64.facts
1751
1766
  - facts/4.1/redhat-8-x86_64.facts
1767
+ - facts/4.1/rocky-8-x86_64.facts
1752
1768
  - facts/4.1/ubuntu-18.04-x86_64.facts
1753
1769
  - facts/4.1/ubuntu-20.04-x86_64.facts
1770
+ - facts/4.2/almalinux-8-x86_64.facts
1754
1771
  - facts/4.2/centos-7-x86_64.facts
1755
1772
  - facts/4.2/centos-8-x86_64.facts
1756
1773
  - facts/4.2/centos-9-x86_64.facts
@@ -1758,11 +1775,20 @@ files:
1758
1775
  - facts/4.2/debian-10-x86_64.facts
1759
1776
  - facts/4.2/debian-11-x86_64.facts
1760
1777
  - facts/4.2/debian-9-x86_64.facts
1778
+ - facts/4.2/fedora-32-x86_64.facts
1779
+ - facts/4.2/fedora-33-x86_64.facts
1780
+ - facts/4.2/fedora-34-x86_64.facts
1761
1781
  - facts/4.2/freebsd-11-x86_64.facts
1762
1782
  - facts/4.2/freebsd-12-x86_64.facts
1763
1783
  - facts/4.2/freebsd-13-x86_64.facts
1784
+ - facts/4.2/oraclelinux-7-x86_64.facts
1764
1785
  - facts/4.2/oraclelinux-8-x86_64.facts
1786
+ - facts/4.2/oraclelinux-9-x86_64.facts
1787
+ - facts/4.2/redhat-7-x86_64.facts
1765
1788
  - facts/4.2/redhat-8-x86_64.facts
1789
+ - facts/4.2/redhat-9-x86_64.facts
1790
+ - facts/4.2/rocky-8-x86_64.facts
1791
+ - facts/4.2/scientific-7-x86_64.facts
1766
1792
  - facts/4.2/ubuntu-18.04-x86_64.facts
1767
1793
  - facts/4.2/ubuntu-20.04-x86_64.facts
1768
1794
  - facts/Gemfile