facterdb 1.22.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +6 -26
  3. data/CHANGELOG.md +22 -0
  4. data/Gemfile +2 -1
  5. data/README.md +125 -124
  6. data/facterdb.gemspec +1 -1
  7. data/facts/3.0/ubuntu-15.10-i386.facts +1 -0
  8. data/facts/3.0/ubuntu-15.10-x86_64.facts +1 -0
  9. data/facts/3.10/ubuntu-18.04-aarch64.facts +1 -0
  10. data/facts/3.6/pcs-6-x86_64.facts +1 -0
  11. data/facts/4.0/centos-7-x86_64.facts +1 -0
  12. data/facts/4.0/centos-8-x86_64.facts +512 -0
  13. data/facts/4.0/debian-10-x86_64.facts +1 -0
  14. data/facts/4.0/oraclelinux-7-x86_64.facts +1 -0
  15. data/facts/4.0/redhat-7-x86_64.facts +1 -0
  16. data/facts/4.0/redhat-8-x86_64.facts +156 -116
  17. data/facts/4.0/scientific-7-x86_64.facts +1 -0
  18. data/facts/4.1/centos-8-x86_64.facts +514 -0
  19. data/facts/4.1/redhat-8-x86_64.facts +157 -117
  20. data/facts/4.2/amazon-2022-x86_64.facts +1 -0
  21. data/facts/4.2/centos-9-x86_64.facts +1 -0
  22. data/facts/4.2/fedora-39-x86_64.facts +577 -0
  23. data/facts/4.2/oraclelinux-9-x86_64.facts +1 -0
  24. data/facts/4.2/popos-21.10-x86_64.facts +1 -0
  25. data/facts/4.2/redhat-8-x86_64.facts +205 -216
  26. data/facts/4.2/redhat-9-x86_64.facts +250 -180
  27. data/facts/4.3/archlinux-x86_64.facts +548 -0
  28. data/facts/4.3/centos-8-x86_64.facts +521 -0
  29. data/facts/4.3/centos-9-x86_64.facts +565 -0
  30. data/facts/4.3/fedora-39-x86_64.facts +577 -0
  31. data/facts/4.3/freebsd-13-x86_64.facts +455 -0
  32. data/facts/4.3/redhat-8-x86_64.facts +162 -116
  33. data/facts/4.3/redhat-9-x86_64.facts +623 -0
  34. data/facts/4.4/archlinux-x86_64.facts +548 -0
  35. data/facts/4.4/centos-8-x86_64.facts +521 -0
  36. data/facts/4.4/centos-9-x86_64.facts +565 -0
  37. data/facts/4.4/fedora-39-x86_64.facts +577 -0
  38. data/facts/4.4/freebsd-13-x86_64.facts +473 -0
  39. data/facts/4.4/redhat-8-x86_64.facts +162 -116
  40. data/facts/4.4/redhat-9-x86_64.facts +623 -0
  41. data/facts/4.5/almalinux-8-x86_64.facts +537 -0
  42. data/facts/4.5/almalinux-9-x86_64.facts +533 -0
  43. data/facts/4.5/amazon-2-x86_64.facts +526 -0
  44. data/facts/4.5/archlinux-x86_64.facts +554 -0
  45. data/facts/4.5/centos-7-x86_64.facts +602 -0
  46. data/facts/4.5/centos-8-x86_64.facts +527 -0
  47. data/facts/4.5/centos-9-x86_64.facts +573 -0
  48. data/facts/4.5/debian-10-x86_64.facts +532 -0
  49. data/facts/4.5/debian-11-x86_64.facts +529 -0
  50. data/facts/4.5/debian-12-x86_64.facts +595 -0
  51. data/facts/4.5/fedora-37-x86_64.facts +518 -0
  52. data/facts/4.5/fedora-38-x86_64.facts +662 -0
  53. data/facts/4.5/fedora-39-x86_64.facts +583 -0
  54. data/facts/4.5/freebsd-12-x86_64.facts +456 -0
  55. data/facts/4.5/freebsd-13-x86_64.facts +455 -0
  56. data/facts/4.5/gentoo-2-x86_64.facts +493 -0
  57. data/facts/4.5/opensuse-15-x86_64.facts +541 -0
  58. data/facts/4.5/redhat-8-x86_64.facts +578 -0
  59. data/facts/4.5/redhat-9-x86_64.facts +629 -0
  60. data/facts/4.5/rocky-8-x86_64.facts +551 -0
  61. data/facts/4.5/rocky-9-x86_64.facts +632 -0
  62. data/facts/4.5/ubuntu-18.04-x86_64.facts +563 -0
  63. data/facts/4.5/ubuntu-20.04-x86_64.facts +653 -0
  64. data/facts/4.5/ubuntu-22.04-x86_64.facts +661 -0
  65. data/facts/4.6/redhat-8-x86_64.facts +580 -0
  66. data/facts/4.6/redhat-9-x86_64.facts +631 -0
  67. data/facts/Vagrantfile +49 -7
  68. data/facts/get_facts.sh +1 -1
  69. data/lib/facterdb/version.rb +1 -1
  70. data/spec/facts_spec.rb +7 -0
  71. metadata +47 -6
  72. /data/spec/{facterdb_spec.rb → facter_db_spec.rb} +0 -0
data/facts/Vagrantfile CHANGED
@@ -6,6 +6,10 @@ VAGRANTFILE_API_VERSION = '2'
6
6
 
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
8
  config.vm.hostname = 'foo.example.com'
9
+
10
+ # This plugin is useful to make sure facts don't change for no reason
11
+ config.timezone.value = 'UTC' if Vagrant.has_plugin?('vagrant-timezone')
12
+
9
13
  config.vm.provider 'virtualbox' do |v|
10
14
  v.gui = false
11
15
  end
@@ -92,25 +96,43 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
92
96
  host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
93
97
  host.vbguest.auto_update = true
94
98
  end
99
+ # images are at https://cloud.centos.org/centos/8-stream/x86_64/images/
100
+ # (check for version updates periodically)
101
+ # facts land as centos-8-x86_64.facts
95
102
  config.vm.define 'centos-stream8-x86_64' do |host|
96
103
  host.vm.box = 'centos/stream8'
104
+ host.vm.box_url = 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20231127.0.x86_64.vagrant-virtualbox.box'
97
105
  host.vm.synced_folder '.', '/vagrant'
98
106
  host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
99
107
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
100
108
  host.vm.provision 'shell', path: 'get_facts.sh'
101
- host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
109
+ # commented to allow manual retrieval of facts
110
+ # host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
102
111
  host.vbguest.auto_update = true
103
112
  end
104
- # will work after https://www.centos.org/centos-stream/#tab-3 got updated
105
- # in the meantime images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
106
- # can be imported with vagrant box add --name centos/stream9 $url
113
+ # images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
114
+ # can be imported with `vagrant box add --name centos/stream9 $url` you can also
115
+ # use the host.vm.box_url below
116
+ # facts land as centos-9-x86_64.facts
117
+ #
107
118
  config.vm.define 'centos-stream9-x86_64' do |host|
108
119
  host.vm.box = 'centos/stream9'
120
+ host.vm.box_url = 'https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20231204.0.x86_64.vagrant-virtualbox.box'
121
+ # centos packages their box with synced folders set to rsync (presumably
122
+ # since vboxsf is not built in their kernel)
123
+ # If the version of the kernel-headers/kernel-devel that are available
124
+ # for download are newer than what is on the box then guest additions will
125
+ # not build. If the stars align, then you can set `type: 'virtualbox'`
126
+ # for synced_folder and maybe it will work, otherwise, it is a manual
127
+ # effort to rsync the fact files back
128
+ # host.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
109
129
  host.vm.synced_folder '.', '/vagrant'
110
130
  host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
111
131
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
112
132
  host.vm.provision 'shell', path: 'get_facts.sh'
113
- host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
133
+ # commented to allow manual retrieval of the facts
134
+ # host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
135
+ # this will install the guest additions which requires `vagrant plugin install vagrant-vbguest`
114
136
  host.vbguest.auto_update = true
115
137
  end
116
138
  config.vm.define 'almalinux-8-x86_64' do |host|
@@ -149,14 +171,23 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
149
171
  host.vm.box = 'generic/rhel8'
150
172
  host.vm.synced_folder '.', '/vagrant'
151
173
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
174
+ host.vm.provision 'shell', inline: 'sysctl -w net.ipv6.conf.all.disable_ipv6=0'
175
+ host.vm.provision 'shell', path: 'get_facts.sh'
176
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
177
+ end
178
+ config.vm.define 'redhat-9-x86_64' do |host|
179
+ host.vm.box = 'generic/rhel9'
180
+ host.vm.synced_folder '.', '/vagrant'
181
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
182
+ host.vm.provision 'shell', inline: 'sysctl -w net.ipv6.conf.all.disable_ipv6=0'
152
183
  host.vm.provision 'shell', path: 'get_facts.sh'
153
184
  host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
154
185
  end
155
186
  config.vm.define 'archlinux-x86_64' do |host|
156
187
  host.vm.box = 'archlinux/archlinux'
157
188
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
158
- # host.vm.provision "shell", path: "get_facts.sh"
159
- # host.vm.provision "shell", inline: "/sbin/shutdown -h now"
189
+ host.vm.provision 'shell', path: 'get_facts.sh'
190
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
160
191
  end
161
192
  config.vm.define 'sles-11sp1-x86_64' do |host|
162
193
  host.vm.box = 'suse/sles11sp3'
@@ -217,6 +248,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
217
248
  config.vm.define 'freebsd-13-x86_64' do |host|
218
249
  host.vm.box = 'bento/freebsd-13'
219
250
  host.vm.synced_folder '.', '/vagrant'
251
+ # this was needed for the 202309.08.0 release of this box
252
+ host.ssh.shell = '/bin/sh'
220
253
  host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
221
254
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
222
255
  host.vm.provision 'shell', path: 'get_facts.sh'
@@ -356,4 +389,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
356
389
  host.vm.provision 'shell', path: 'get_facts.sh'
357
390
  host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
358
391
  end
392
+ config.vm.define 'fedora-39-x86_64' do |host|
393
+ host.vm.box = 'generic/fedora39'
394
+ host.vm.synced_folder '.', '/vagrant'
395
+ # there's no official support for fedora 39, so we need facter from Fedora
396
+ host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
397
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
398
+ host.vm.provision 'shell', path: 'get_facts.sh'
399
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
400
+ end
359
401
  end
data/facts/get_facts.sh CHANGED
@@ -249,7 +249,7 @@ else
249
249
  fi
250
250
  bundle install --path vendor/bundler
251
251
 
252
- for version in 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0; do
252
+ for version in 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0; do
253
253
  FACTER_GEM_VERSION="~> ${version}" bundle update
254
254
  # sometimes all versions of facter are not possible, if the bundle update fails, skip the rest of the loop
255
255
  if [ $? -ne 0 ]; then
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.22.0'
3
+ STRING = '1.24.0'
4
4
  end
5
5
  end
data/spec/facts_spec.rb CHANGED
@@ -122,6 +122,13 @@ describe 'Default Facts' do
122
122
  it 'contains the legacy operatingsystem fact' do
123
123
  expect(content['operatingsystem']).not_to be_nil
124
124
  end
125
+
126
+ # the fact got introduced in 1.5.5 and is confined to kernel=linux
127
+ # https://github.com/puppetlabs/facter/blob/1.6.0/lib/facter/selinux.rb
128
+ # f94abfccfd6687a88f62703e4005c28ec04467a1 from facter
129
+ it 'contains the legacy selinux fact' do
130
+ expect(content['selinux']).not_to be_nil if content['kernel'] == 'Linux'
131
+ end
125
132
  end
126
133
  end
127
134
  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.22.0
4
+ version: 1.24.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: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.0.0
75
+ version: 2.4.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.0.0
82
+ version: 2.4.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: facter
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -1768,6 +1768,7 @@ files:
1768
1768
  - facts/4.0/almalinux-8-x86_64.facts
1769
1769
  - facts/4.0/almalinux-9-x86_64.facts
1770
1770
  - facts/4.0/centos-7-x86_64.facts
1771
+ - facts/4.0/centos-8-x86_64.facts
1771
1772
  - facts/4.0/debian-10-x86_64.facts
1772
1773
  - facts/4.0/debian-11-x86_64.facts
1773
1774
  - facts/4.0/fedora-32-x86_64.facts
@@ -1793,6 +1794,7 @@ files:
1793
1794
  - facts/4.1/almalinux-8-x86_64.facts
1794
1795
  - facts/4.1/almalinux-9-x86_64.facts
1795
1796
  - facts/4.1/centos-7-x86_64.facts
1797
+ - facts/4.1/centos-8-x86_64.facts
1796
1798
  - facts/4.1/debian-10-x86_64.facts
1797
1799
  - facts/4.1/debian-11-x86_64.facts
1798
1800
  - facts/4.1/fedora-32-x86_64.facts
@@ -1831,6 +1833,7 @@ files:
1831
1833
  - facts/4.2/fedora-36-x86_64.facts
1832
1834
  - facts/4.2/fedora-37-x86_64.facts
1833
1835
  - facts/4.2/fedora-38-x86_64.facts
1836
+ - facts/4.2/fedora-39-x86_64.facts
1834
1837
  - facts/4.2/freebsd-11-x86_64.facts
1835
1838
  - facts/4.2/freebsd-12-x86_64.facts
1836
1839
  - facts/4.2/freebsd-13-x86_64.facts
@@ -1867,7 +1870,10 @@ files:
1867
1870
  - facts/4.2/windows-2022-x86_64.facts
1868
1871
  - facts/4.3/almalinux-8-x86_64.facts
1869
1872
  - facts/4.3/almalinux-9-x86_64.facts
1873
+ - facts/4.3/archlinux-x86_64.facts
1870
1874
  - facts/4.3/centos-7-x86_64.facts
1875
+ - facts/4.3/centos-8-x86_64.facts
1876
+ - facts/4.3/centos-9-x86_64.facts
1871
1877
  - facts/4.3/debian-10-x86_64.facts
1872
1878
  - facts/4.3/debian-11-x86_64.facts
1873
1879
  - facts/4.3/debian-12-i386.facts
@@ -1875,8 +1881,11 @@ files:
1875
1881
  - facts/4.3/fedora-36-x86_64.facts
1876
1882
  - facts/4.3/fedora-37-x86_64.facts
1877
1883
  - facts/4.3/fedora-38-x86_64.facts
1884
+ - facts/4.3/fedora-39-x86_64.facts
1885
+ - facts/4.3/freebsd-13-x86_64.facts
1878
1886
  - facts/4.3/opensuse-15-x86_64.facts
1879
1887
  - facts/4.3/redhat-8-x86_64.facts
1888
+ - facts/4.3/redhat-9-x86_64.facts
1880
1889
  - facts/4.3/rocky-8-x86_64.facts
1881
1890
  - facts/4.3/rocky-9-x86_64.facts
1882
1891
  - facts/4.3/sles-12-x86_64.facts
@@ -1895,7 +1904,10 @@ files:
1895
1904
  - facts/4.3/windows-2022-x86_64.facts
1896
1905
  - facts/4.4/almalinux-8-x86_64.facts
1897
1906
  - facts/4.4/almalinux-9-x86_64.facts
1907
+ - facts/4.4/archlinux-x86_64.facts
1898
1908
  - facts/4.4/centos-7-x86_64.facts
1909
+ - facts/4.4/centos-8-x86_64.facts
1910
+ - facts/4.4/centos-9-x86_64.facts
1899
1911
  - facts/4.4/debian-10-x86_64.facts
1900
1912
  - facts/4.4/debian-11-x86_64.facts
1901
1913
  - facts/4.4/debian-12-i386.facts
@@ -1903,8 +1915,11 @@ files:
1903
1915
  - facts/4.4/fedora-36-x86_64.facts
1904
1916
  - facts/4.4/fedora-37-x86_64.facts
1905
1917
  - facts/4.4/fedora-38-x86_64.facts
1918
+ - facts/4.4/fedora-39-x86_64.facts
1919
+ - facts/4.4/freebsd-13-x86_64.facts
1906
1920
  - facts/4.4/opensuse-15-x86_64.facts
1907
1921
  - facts/4.4/redhat-8-x86_64.facts
1922
+ - facts/4.4/redhat-9-x86_64.facts
1908
1923
  - facts/4.4/rocky-8-x86_64.facts
1909
1924
  - facts/4.4/rocky-9-x86_64.facts
1910
1925
  - facts/4.4/sles-12-x86_64.facts
@@ -1921,6 +1936,32 @@ files:
1921
1936
  - facts/4.4/windows-2019-x86_64.facts
1922
1937
  - facts/4.4/windows-2022-core-x86_64.facts
1923
1938
  - facts/4.4/windows-2022-x86_64.facts
1939
+ - facts/4.5/almalinux-8-x86_64.facts
1940
+ - facts/4.5/almalinux-9-x86_64.facts
1941
+ - facts/4.5/amazon-2-x86_64.facts
1942
+ - facts/4.5/archlinux-x86_64.facts
1943
+ - facts/4.5/centos-7-x86_64.facts
1944
+ - facts/4.5/centos-8-x86_64.facts
1945
+ - facts/4.5/centos-9-x86_64.facts
1946
+ - facts/4.5/debian-10-x86_64.facts
1947
+ - facts/4.5/debian-11-x86_64.facts
1948
+ - facts/4.5/debian-12-x86_64.facts
1949
+ - facts/4.5/fedora-37-x86_64.facts
1950
+ - facts/4.5/fedora-38-x86_64.facts
1951
+ - facts/4.5/fedora-39-x86_64.facts
1952
+ - facts/4.5/freebsd-12-x86_64.facts
1953
+ - facts/4.5/freebsd-13-x86_64.facts
1954
+ - facts/4.5/gentoo-2-x86_64.facts
1955
+ - facts/4.5/opensuse-15-x86_64.facts
1956
+ - facts/4.5/redhat-8-x86_64.facts
1957
+ - facts/4.5/redhat-9-x86_64.facts
1958
+ - facts/4.5/rocky-8-x86_64.facts
1959
+ - facts/4.5/rocky-9-x86_64.facts
1960
+ - facts/4.5/ubuntu-18.04-x86_64.facts
1961
+ - facts/4.5/ubuntu-20.04-x86_64.facts
1962
+ - facts/4.5/ubuntu-22.04-x86_64.facts
1963
+ - facts/4.6/redhat-8-x86_64.facts
1964
+ - facts/4.6/redhat-9-x86_64.facts
1924
1965
  - facts/Gemfile
1925
1966
  - facts/Vagrantfile
1926
1967
  - facts/Windows_README.md
@@ -1946,7 +1987,7 @@ files:
1946
1987
  - lib/facterdb/bin.rb
1947
1988
  - lib/facterdb/version.rb
1948
1989
  - rakelib/rhel_alts.rake
1949
- - spec/facterdb_spec.rb
1990
+ - spec/facter_db_spec.rb
1950
1991
  - spec/facts_spec.rb
1951
1992
  - spec/spec_helper.rb
1952
1993
  homepage: http://github.com/voxpupuli/facterdb
@@ -1968,7 +2009,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1968
2009
  - !ruby/object:Gem::Version
1969
2010
  version: '0'
1970
2011
  requirements: []
1971
- rubygems_version: 3.4.10
2012
+ rubygems_version: 3.4.19
1972
2013
  signing_key:
1973
2014
  specification_version: 4
1974
2015
  summary: A Database of OS facts provided by Facter
File without changes