facterdb 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +6 -26
  3. data/CHANGELOG.md +14 -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/scientific-7-x86_64.facts +1 -0
  17. data/facts/4.1/centos-8-x86_64.facts +514 -0
  18. data/facts/4.2/amazon-2022-x86_64.facts +1 -0
  19. data/facts/4.2/centos-9-x86_64.facts +1 -0
  20. data/facts/4.2/fedora-39-x86_64.facts +577 -0
  21. data/facts/4.2/oraclelinux-9-x86_64.facts +1 -0
  22. data/facts/4.2/popos-21.10-x86_64.facts +1 -0
  23. data/facts/4.3/archlinux-x86_64.facts +548 -0
  24. data/facts/4.3/centos-8-x86_64.facts +521 -0
  25. data/facts/4.3/centos-9-x86_64.facts +565 -0
  26. data/facts/4.3/fedora-39-x86_64.facts +577 -0
  27. data/facts/4.3/freebsd-13-x86_64.facts +455 -0
  28. data/facts/4.4/archlinux-x86_64.facts +548 -0
  29. data/facts/4.4/centos-8-x86_64.facts +521 -0
  30. data/facts/4.4/centos-9-x86_64.facts +565 -0
  31. data/facts/4.4/fedora-39-x86_64.facts +577 -0
  32. data/facts/4.4/freebsd-13-x86_64.facts +473 -0
  33. data/facts/4.5/almalinux-8-x86_64.facts +537 -0
  34. data/facts/4.5/almalinux-9-x86_64.facts +533 -0
  35. data/facts/4.5/amazon-2-x86_64.facts +526 -0
  36. data/facts/4.5/archlinux-x86_64.facts +554 -0
  37. data/facts/4.5/centos-7-x86_64.facts +602 -0
  38. data/facts/4.5/centos-8-x86_64.facts +527 -0
  39. data/facts/4.5/centos-9-x86_64.facts +573 -0
  40. data/facts/4.5/debian-10-x86_64.facts +532 -0
  41. data/facts/4.5/debian-11-x86_64.facts +529 -0
  42. data/facts/4.5/debian-12-x86_64.facts +595 -0
  43. data/facts/4.5/fedora-37-x86_64.facts +518 -0
  44. data/facts/4.5/fedora-38-x86_64.facts +662 -0
  45. data/facts/4.5/fedora-39-x86_64.facts +583 -0
  46. data/facts/4.5/freebsd-12-x86_64.facts +456 -0
  47. data/facts/4.5/freebsd-13-x86_64.facts +455 -0
  48. data/facts/4.5/gentoo-2-x86_64.facts +493 -0
  49. data/facts/4.5/opensuse-15-x86_64.facts +541 -0
  50. data/facts/4.5/redhat-8-x86_64.facts +532 -0
  51. data/facts/4.5/rocky-8-x86_64.facts +551 -0
  52. data/facts/4.5/rocky-9-x86_64.facts +632 -0
  53. data/facts/4.5/ubuntu-18.04-x86_64.facts +563 -0
  54. data/facts/4.5/ubuntu-20.04-x86_64.facts +653 -0
  55. data/facts/4.5/ubuntu-22.04-x86_64.facts +661 -0
  56. data/facts/Vagrantfile +36 -7
  57. data/facts/get_facts.sh +1 -1
  58. data/lib/facterdb/version.rb +1 -1
  59. data/spec/facts_spec.rb +7 -0
  60. metadata +41 -5
  61. /data/spec/{facterdb_spec.rb → facter_db_spec.rb} +0 -0
data/facts/Vagrantfile CHANGED
@@ -92,25 +92,43 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
92
92
  host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
93
93
  host.vbguest.auto_update = true
94
94
  end
95
+ # images are at https://cloud.centos.org/centos/8-stream/x86_64/images/
96
+ # (check for version updates periodically)
97
+ # facts land as centos-8-x86_64.facts
95
98
  config.vm.define 'centos-stream8-x86_64' do |host|
96
99
  host.vm.box = 'centos/stream8'
100
+ 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
101
  host.vm.synced_folder '.', '/vagrant'
98
102
  host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
99
103
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
100
104
  host.vm.provision 'shell', path: 'get_facts.sh'
101
- host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
105
+ # commented to allow manual retrieval of facts
106
+ # host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
102
107
  host.vbguest.auto_update = true
103
108
  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
109
+ # images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
110
+ # can be imported with `vagrant box add --name centos/stream9 $url` you can also
111
+ # use the host.vm.box_url below
112
+ # facts land as centos-9-x86_64.facts
113
+ #
107
114
  config.vm.define 'centos-stream9-x86_64' do |host|
108
115
  host.vm.box = 'centos/stream9'
116
+ 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'
117
+ # centos packages their box with synced folders set to rsync (presumably
118
+ # since vboxsf is not built in their kernel)
119
+ # If the version of the kernel-headers/kernel-devel that are available
120
+ # for download are newer than what is on the box then guest additions will
121
+ # not build. If the stars align, then you can set `type: 'virtualbox'`
122
+ # for synced_folder and maybe it will work, otherwise, it is a manual
123
+ # effort to rsync the fact files back
124
+ # host.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
109
125
  host.vm.synced_folder '.', '/vagrant'
110
126
  host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
111
127
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
112
128
  host.vm.provision 'shell', path: 'get_facts.sh'
113
- host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
129
+ # commented to allow manual retrieval of the facts
130
+ # host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
131
+ # this will install the guest additions which requires `vagrant plugin install vagrant-vbguest`
114
132
  host.vbguest.auto_update = true
115
133
  end
116
134
  config.vm.define 'almalinux-8-x86_64' do |host|
@@ -155,8 +173,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
155
173
  config.vm.define 'archlinux-x86_64' do |host|
156
174
  host.vm.box = 'archlinux/archlinux'
157
175
  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"
176
+ host.vm.provision 'shell', path: 'get_facts.sh'
177
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
160
178
  end
161
179
  config.vm.define 'sles-11sp1-x86_64' do |host|
162
180
  host.vm.box = 'suse/sles11sp3'
@@ -217,6 +235,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
217
235
  config.vm.define 'freebsd-13-x86_64' do |host|
218
236
  host.vm.box = 'bento/freebsd-13'
219
237
  host.vm.synced_folder '.', '/vagrant'
238
+ # this was needed for the 202309.08.0 release of this box
239
+ host.ssh.shell = '/bin/sh'
220
240
  host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
221
241
  host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
222
242
  host.vm.provision 'shell', path: 'get_facts.sh'
@@ -356,4 +376,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
356
376
  host.vm.provision 'shell', path: 'get_facts.sh'
357
377
  host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
358
378
  end
379
+ config.vm.define 'fedora-39-x86_64' do |host|
380
+ host.vm.box = 'generic/fedora39'
381
+ host.vm.synced_folder '.', '/vagrant'
382
+ # there's no official support for fedora 39, so we need facter from Fedora
383
+ host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
384
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
385
+ host.vm.provision 'shell', path: 'get_facts.sh'
386
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
387
+ end
359
388
  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.23.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.23.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-01-09 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.3.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.3.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,6 +1881,8 @@ 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
1880
1888
  - facts/4.3/rocky-8-x86_64.facts
@@ -1895,7 +1903,10 @@ files:
1895
1903
  - facts/4.3/windows-2022-x86_64.facts
1896
1904
  - facts/4.4/almalinux-8-x86_64.facts
1897
1905
  - facts/4.4/almalinux-9-x86_64.facts
1906
+ - facts/4.4/archlinux-x86_64.facts
1898
1907
  - facts/4.4/centos-7-x86_64.facts
1908
+ - facts/4.4/centos-8-x86_64.facts
1909
+ - facts/4.4/centos-9-x86_64.facts
1899
1910
  - facts/4.4/debian-10-x86_64.facts
1900
1911
  - facts/4.4/debian-11-x86_64.facts
1901
1912
  - facts/4.4/debian-12-i386.facts
@@ -1903,6 +1914,8 @@ files:
1903
1914
  - facts/4.4/fedora-36-x86_64.facts
1904
1915
  - facts/4.4/fedora-37-x86_64.facts
1905
1916
  - facts/4.4/fedora-38-x86_64.facts
1917
+ - facts/4.4/fedora-39-x86_64.facts
1918
+ - facts/4.4/freebsd-13-x86_64.facts
1906
1919
  - facts/4.4/opensuse-15-x86_64.facts
1907
1920
  - facts/4.4/redhat-8-x86_64.facts
1908
1921
  - facts/4.4/rocky-8-x86_64.facts
@@ -1921,6 +1934,29 @@ files:
1921
1934
  - facts/4.4/windows-2019-x86_64.facts
1922
1935
  - facts/4.4/windows-2022-core-x86_64.facts
1923
1936
  - facts/4.4/windows-2022-x86_64.facts
1937
+ - facts/4.5/almalinux-8-x86_64.facts
1938
+ - facts/4.5/almalinux-9-x86_64.facts
1939
+ - facts/4.5/amazon-2-x86_64.facts
1940
+ - facts/4.5/archlinux-x86_64.facts
1941
+ - facts/4.5/centos-7-x86_64.facts
1942
+ - facts/4.5/centos-8-x86_64.facts
1943
+ - facts/4.5/centos-9-x86_64.facts
1944
+ - facts/4.5/debian-10-x86_64.facts
1945
+ - facts/4.5/debian-11-x86_64.facts
1946
+ - facts/4.5/debian-12-x86_64.facts
1947
+ - facts/4.5/fedora-37-x86_64.facts
1948
+ - facts/4.5/fedora-38-x86_64.facts
1949
+ - facts/4.5/fedora-39-x86_64.facts
1950
+ - facts/4.5/freebsd-12-x86_64.facts
1951
+ - facts/4.5/freebsd-13-x86_64.facts
1952
+ - facts/4.5/gentoo-2-x86_64.facts
1953
+ - facts/4.5/opensuse-15-x86_64.facts
1954
+ - facts/4.5/redhat-8-x86_64.facts
1955
+ - facts/4.5/rocky-8-x86_64.facts
1956
+ - facts/4.5/rocky-9-x86_64.facts
1957
+ - facts/4.5/ubuntu-18.04-x86_64.facts
1958
+ - facts/4.5/ubuntu-20.04-x86_64.facts
1959
+ - facts/4.5/ubuntu-22.04-x86_64.facts
1924
1960
  - facts/Gemfile
1925
1961
  - facts/Vagrantfile
1926
1962
  - facts/Windows_README.md
@@ -1946,7 +1982,7 @@ files:
1946
1982
  - lib/facterdb/bin.rb
1947
1983
  - lib/facterdb/version.rb
1948
1984
  - rakelib/rhel_alts.rake
1949
- - spec/facterdb_spec.rb
1985
+ - spec/facter_db_spec.rb
1950
1986
  - spec/facts_spec.rb
1951
1987
  - spec/spec_helper.rb
1952
1988
  homepage: http://github.com/voxpupuli/facterdb
File without changes