facterdb 1.9.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +2 -0
  3. data/CHANGELOG.md +60 -0
  4. data/README.md +15 -7
  5. data/facts/2.5/solaris-10-i86pc.facts +0 -11
  6. data/facts/3.11/redhat-8-x86_64.facts +128 -127
  7. data/facts/3.11/solaris-10-i86pc.facts +0 -6
  8. data/facts/3.11/ubuntu-18.04-x86_64.facts +216 -101
  9. data/facts/3.12/redhat-8-x86_64.facts +109 -105
  10. data/facts/3.13/redhat-8-x86_64.facts +111 -113
  11. data/facts/3.13/ubuntu-18.04-x86_64.facts +216 -101
  12. data/facts/3.14/fedora-32-x86_64.facts +490 -0
  13. data/facts/3.14/fedora-33-x86_64.facts +482 -0
  14. data/facts/3.14/fedora-34-x86_64.facts +493 -0
  15. data/facts/3.14/redhat-8-x86_64.facts +111 -113
  16. data/facts/3.14/ubuntu-18.04-x86_64.facts +91 -91
  17. data/facts/3.14/ubuntu-20.04-x86_64.facts +138 -184
  18. data/facts/3.14/ubuntu-21.04-x86_64.facts +510 -0
  19. data/facts/3.14/ubuntu-21.10-x86_64.facts +609 -0
  20. data/facts/3.9/solaris-10-i86pc.facts +0 -6
  21. data/facts/4.0/almalinux-8-x86_64.facts +302 -67
  22. data/facts/4.0/centos-7-x86_64.facts +0 -16
  23. data/facts/4.0/debian-10-x86_64.facts +0 -17
  24. data/facts/4.0/debian-11-x86_64.facts +319 -43
  25. data/facts/4.0/fedora-32-x86_64.facts +506 -0
  26. data/facts/4.0/fedora-33-x86_64.facts +505 -0
  27. data/facts/4.0/fedora-34-x86_64.facts +509 -0
  28. data/facts/4.0/freebsd-11-x86_64.facts +284 -15
  29. data/facts/4.0/freebsd-12-x86_64.facts +285 -16
  30. data/facts/4.0/freebsd-13-x86_64.facts +288 -21
  31. data/facts/4.0/oraclelinux-7-x86_64.facts +690 -0
  32. data/facts/4.0/redhat-7-x86_64.facts +690 -0
  33. data/facts/4.0/redhat-8-x86_64.facts +523 -0
  34. data/facts/4.0/rocky-8-x86_64.facts +523 -0
  35. data/facts/4.0/scientific-7-x86_64.facts +690 -0
  36. data/facts/4.0/solaris-11-sun4v.facts +0 -6
  37. data/facts/4.0/ubuntu-18.04-x86_64.facts +549 -0
  38. data/facts/4.0/ubuntu-20.04-x86_64.facts +639 -0
  39. data/facts/4.0/ubuntu-21.04-x86_64.facts +646 -0
  40. data/facts/4.0/ubuntu-21.10-x86_64.facts +624 -0
  41. data/facts/4.1/almalinux-8-x86_64.facts +544 -0
  42. data/facts/4.1/debian-11-x86_64.facts +320 -44
  43. data/facts/4.1/fedora-32-x86_64.facts +508 -0
  44. data/facts/4.1/fedora-33-x86_64.facts +507 -0
  45. data/facts/4.1/fedora-34-x86_64.facts +511 -0
  46. data/facts/4.1/freebsd-11-x86_64.facts +284 -15
  47. data/facts/4.1/freebsd-12-x86_64.facts +285 -16
  48. data/facts/4.1/freebsd-13-x86_64.facts +288 -21
  49. data/facts/4.1/redhat-8-x86_64.facts +525 -0
  50. data/facts/4.1/rocky-8-x86_64.facts +525 -0
  51. data/facts/4.1/ubuntu-18.04-x86_64.facts +551 -0
  52. data/facts/4.1/ubuntu-20.04-x86_64.facts +641 -0
  53. data/facts/4.1/ubuntu-21.04-x86_64.facts +648 -0
  54. data/facts/4.1/ubuntu-21.10-x86_64.facts +626 -0
  55. data/facts/4.2/almalinux-8-x86_64.facts +550 -0
  56. data/facts/4.2/debian-11-x86_64.facts +321 -45
  57. data/facts/4.2/fedora-32-x86_64.facts +508 -0
  58. data/facts/4.2/fedora-33-x86_64.facts +507 -0
  59. data/facts/4.2/fedora-34-x86_64.facts +511 -0
  60. data/facts/4.2/freebsd-11-x86_64.facts +22 -22
  61. data/facts/4.2/freebsd-12-x86_64.facts +25 -25
  62. data/facts/4.2/freebsd-13-x86_64.facts +246 -32
  63. data/facts/4.2/oraclelinux-7-x86_64.facts +593 -0
  64. data/facts/4.2/oraclelinux-9-x86_64.facts +291 -0
  65. data/facts/4.2/redhat-7-x86_64.facts +593 -0
  66. data/facts/4.2/redhat-8-x86_64.facts +525 -0
  67. data/facts/4.2/redhat-9-x86_64.facts +291 -0
  68. data/facts/4.2/rocky-8-x86_64.facts +525 -0
  69. data/facts/4.2/scientific-7-x86_64.facts +593 -0
  70. data/facts/4.2/ubuntu-18.04-x86_64.facts +557 -0
  71. data/facts/4.2/ubuntu-20.04-x86_64.facts +647 -0
  72. data/facts/4.2/ubuntu-21.04-x86_64.facts +654 -0
  73. data/facts/4.2/ubuntu-21.10-x86_64.facts +632 -0
  74. data/facts/Gemfile +3 -0
  75. data/facts/Vagrantfile +31 -156
  76. data/facts/get_facts.sh +49 -8
  77. data/lib/facterdb/version.rb +1 -1
  78. data/spec/facts_spec.rb +14 -1
  79. metadata +44 -2
data/facts/Vagrantfile CHANGED
@@ -11,37 +11,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
11
11
  v.gui = false
12
12
  end
13
13
 
14
- config.vm.define "debian-6-x86_64" do |host|
15
- host.vm.box = "puppetlabs/debian-6.0.10-64-nocm"
16
- host.vm.provision "shell", inline: [
17
- "echo 'deb [allow-insecure=yes,trusted=yes] http://archive.debian.org/debian squeeze main' > /etc/apt/sources.list",
18
- "echo 'deb [allow-insecure=yes,trusted=yes] http://archive.debian.org/debian-security squeeze/updates main contrib' >> /etc/apt/sources.list",
19
- "apt-get update",
20
- "apt-get install -y --force-yes ruby rubygems",
21
- ].join(' && ')
22
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
23
- host.vm.provision "shell", path: "get_facts.sh"
24
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
25
- end
26
- config.vm.define "debian-7-x86_64" do |host|
27
- host.vm.box = "puppetlabs/debian-7.8-64-nocm"
28
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby rubygems ruby-dev"
29
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
30
- host.vm.provision "shell", path: "get_facts.sh"
31
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
32
- end
33
- config.vm.define "debian-8-x86_64" do |host|
34
- host.vm.box = "debian/jessie64"
35
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
36
- host.vm.provision "shell", path: "get_facts.sh"
37
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
38
- end
39
- config.vm.define "debian-9-x86_64" do |host|
40
- host.vm.box = "debian/stretch64"
41
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
42
- host.vm.provision "shell", path: "get_facts.sh"
43
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
44
- end
45
14
  config.vm.define "debian-10-x86_64" do |host|
46
15
  host.vm.box = "debian/contrib-buster64"
47
16
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
@@ -54,50 +23,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
54
23
  host.vm.provision "shell", path: "get_facts.sh"
55
24
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
56
25
  end
57
- config.vm.define "ubuntu-10.04-x86_64" do |host|
58
- host.vm.box = "ubuntu-server-10044-x64-vbox4210-nocm"
59
- host.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box"
60
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev rubygems libopenssl-ruby"
61
- host.vm.provision "shell", inline: "gem install rubygems-update && /var/lib/gems/1.8/bin/update_rubygems"
62
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
63
- host.vm.provision "shell", path: "get_facts.sh"
64
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
65
- end
66
- config.vm.define "ubuntu-12.04-x86_64" do |host|
67
- host.vm.box = "puppetlabs/ubuntu-12.04-64-nocm"
68
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y rubygems"
69
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
70
- host.vm.provision "shell", path: "get_facts.sh"
71
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
72
- end
73
- config.vm.define "ubuntu-14.04-x86_64" do |host|
74
- host.vm.box = "puppetlabs/ubuntu-14.04-64-nocm"
75
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev"
76
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
77
- host.vm.provision "shell", path: "get_facts.sh"
78
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
79
- end
80
- config.vm.define "ubuntu-14.10-x86_64" do |host|
81
- host.vm.box = "chef/ubuntu-14.10"
82
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev"
83
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
84
- host.vm.provision "shell", path: "get_facts.sh"
85
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
86
- end
87
- config.vm.define "ubuntu-15.04-x86_64" do |host|
88
- host.vm.box = "ubuntu/vivid64"
89
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
90
- host.vm.provision "shell", path: "get_facts.sh"
91
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
92
- end
93
- config.vm.define "ubuntu-15.10-x86_64" do |host|
94
- host.vm.box = "sgallen/wily64"
95
- host.vm.network :private_network, ip: '10.0.0.2'
96
- host.vm.synced_folder ".", "/vagrant", :nfs => true
97
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
98
- host.vm.provision "shell", path: "get_facts.sh"
99
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
100
- end
101
26
  config.vm.define "linuxmint-18-x86_64" do |host|
102
27
  host.vm.box = "artem-sidorenko/mint-18.1-cinnamon"
103
28
  host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev libc6-dev"
@@ -112,29 +37,26 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
112
37
  host.vm.provision "shell", path: "get_facts.sh"
113
38
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
114
39
  end
115
- config.vm.define "ubuntu-16.04-x86_64" do |host|
116
- host.vm.box = "ubuntu/xenial64"
40
+ config.vm.define "ubuntu-18.04-x86_64" do |host|
41
+ host.vm.box = "ubuntu/bionic64"
117
42
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
118
43
  host.vm.provision "shell", path: "get_facts.sh"
119
44
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
120
45
  end
121
- config.vm.define "ubuntu-18.04-x86_64" do |host|
122
- host.vm.box = "ubuntu/bionic64"
46
+ config.vm.define "ubuntu-20.04-x86_64" do |host|
47
+ host.vm.box = "ubuntu/focal64"
123
48
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
124
49
  host.vm.provision "shell", path: "get_facts.sh"
125
50
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
126
51
  end
127
- config.vm.define "centos-5-x86_64" do |host|
128
- host.vm.box = "puppetlabs/centos-5.11-64-nocm"
52
+ config.vm.define "ubuntu-21.04-x86_64" do |host|
53
+ host.vm.box = "ubuntu/hirsute64"
129
54
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
130
55
  host.vm.provision "shell", path: "get_facts.sh"
131
56
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
132
57
  end
133
- config.vm.define "centos-6-x86_64" do |host|
134
- host.vm.box = "centos/6"
135
- host.vm.network :private_network, ip: '10.0.0.2'
136
- host.vm.synced_folder ".", "/vagrant", :nfs => true
137
- host.vm.provision "shell", inline: "yum -y install ruby-devel gcc"
58
+ config.vm.define "ubuntu-21.10-x86_64" do |host|
59
+ host.vm.box = "ubuntu/impish64"
138
60
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
139
61
  host.vm.provision "shell", path: "get_facts.sh"
140
62
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
@@ -155,6 +77,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
155
77
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
156
78
  host.vm.provision "shell", path: "get_facts.sh"
157
79
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
80
+ host.vbguest.auto_update = true
158
81
  end
159
82
  config.vm.define "almalinux-8-x86_64" do |host|
160
83
  host.vm.box = "almalinux/8"
@@ -165,7 +88,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
165
88
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
166
89
  end
167
90
  config.vm.define "rockylinux-8-x86_64" do |host|
168
- host.vm.box = "https://github.com/anoncam/rocky-linux-vagrant/blob/main/rockylinux.box"
91
+ host.vm.box = "generic/rocky8"
169
92
  host.vm.synced_folder ".", "/vagrant"
170
93
  host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
171
94
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
@@ -179,72 +102,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
179
102
  host.vm.provision "shell", path: "get_facts.sh"
180
103
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
181
104
  end
182
- config.vm.define "fedora-19-x86_64" do |host|
183
- host.vm.box = "rafacas/fedora19-plain"
184
- host.vm.provision "shell", inline: "yum -y install ruby ruby-devel"
185
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
186
- host.vm.provision "shell", path: "get_facts.sh"
187
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
188
- end
189
- config.vm.define "fedora-22-x86_64" do |host|
190
- host.vm.box = "bento/fedora-22"
191
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel"
192
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
193
- host.vm.provision "shell", path: "get_facts.sh"
194
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
195
- end
196
- config.vm.define "fedora-23-x86_64" do |host|
197
- host.vm.box = "bento/fedora-23"
198
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel"
199
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
200
- host.vm.provision "shell", path: "get_facts.sh"
201
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
202
- end
203
- config.vm.define "fedora-24-x86_64" do |host|
204
- host.vm.box = "bento/fedora-24"
205
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel"
206
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
207
- host.vm.provision "shell", path: "get_facts.sh"
208
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
209
- end
210
- config.vm.define "fedora-26-x86_64" do |host|
211
- host.vm.box = "bento/fedora-26"
212
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel"
213
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
214
- host.vm.provision "shell", path: "get_facts.sh"
215
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
216
- end
217
- config.vm.define "fedora-27-x86_64" do |host|
218
- host.vm.box = "bento/fedora-27"
219
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel"
220
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
221
- host.vm.provision "shell", path: "get_facts.sh"
222
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
223
- end
224
- config.vm.define "fedora-28-x86_64" do |host|
225
- host.vm.box = "bento/fedora-28"
226
- host.vm.synced_folder ".", "/vagrant"
227
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel make"
228
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
229
- host.vm.provision "shell", path: "get_facts.sh"
230
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
231
- end
232
- config.vm.define "fedora-29-x86_64" do |host|
233
- host.vm.box = "bento/fedora-29"
234
- host.vm.synced_folder ".", "/vagrant"
235
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel make"
236
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
237
- host.vm.provision "shell", path: "get_facts.sh"
238
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
239
- end
240
- config.vm.define "fedora-30-x86_64" do |host|
241
- host.vm.box = "bento/fedora-30"
242
- host.vm.synced_folder ".", "/vagrant"
243
- host.vm.provision "shell", inline: "dnf -y install gcc glibc-devel make"
244
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
245
- host.vm.provision "shell", path: "get_facts.sh"
246
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
247
- end
248
105
  config.vm.define "archlinux-x86_64" do |host|
249
106
  host.vm.box = "archlinux/archlinux"
250
107
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
@@ -441,9 +298,27 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
441
298
  host.vm.provision "shell", path: "get_facts.sh"
442
299
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
443
300
  end
444
- config.vm.define "amazonlinux-1-x86_64" do |host|
445
- host.vm.box = "spscommerce/amazonlinux"
446
- host.vm.provision "shell", inline: "yum -y install gcc glibc-devel"
301
+ config.vm.define "fedora-32-x86_64" do |host|
302
+ host.vm.box = "generic/fedora32"
303
+ host.vm.synced_folder ".", "/vagrant"
304
+ host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
305
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
306
+ host.vm.provision "shell", path: "get_facts.sh"
307
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
308
+ end
309
+ config.vm.define "fedora-33-x86_64" do |host|
310
+ host.vm.box = "generic/fedora33"
311
+ host.vm.synced_folder ".", "/vagrant"
312
+ # there's no official support for fedora 33, so we need ruby and facter from Fedora
313
+ host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools ruby ruby-devel facter"
314
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
315
+ host.vm.provision "shell", path: "get_facts.sh"
316
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
317
+ end
318
+ config.vm.define "fedora-34-x86_64" do |host|
319
+ host.vm.box = "generic/fedora34"
320
+ host.vm.synced_folder ".", "/vagrant"
321
+ host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
447
322
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
448
323
  host.vm.provision "shell", path: "get_facts.sh"
449
324
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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,11 +243,24 @@ 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
218
262
  # fact set from the official Debian package.
219
- if [[ "buster" = "${lsbdistcodename}" ]]; then
263
+ if [[ "buster" = "${lsbdistcodename}" || "hirsute" =~ ${lsbdistcodename} || "impish" =~ ${lsbdistcodename} ]]; then
220
264
  apt_install ruby rubygems ruby-dev puppet facter
221
265
  output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
222
266
  mkdir -p $(dirname ${output_file})
@@ -316,7 +360,7 @@ else
316
360
  fi
317
361
  bundle install --path vendor/bundler
318
362
 
319
- for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 4.0.0 4.1.0 4.2.0; do
363
+ for version in 4.0.0 4.1.0 4.2.0; do
320
364
  FACTER_GEM_VERSION="~> ${version}" bundle update
321
365
 
322
366
  # This is another workaround for shared folder on FreeBSD. "Accessing"
@@ -326,9 +370,6 @@ for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 4.0.0 4.1.0 4.2.0
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
  ;;
@@ -344,7 +385,7 @@ for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 4.0.0 4.1.0 4.2.0
344
385
  fi
345
386
  mkdir -p $(dirname $output_file)
346
387
  echo $version | grep -q -E '^1\.' &&
347
- FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
348
- FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | tee $output_file
388
+ FACTER_GEM_VERSION="~> ${version}" bundle exec facter --show-legacy --json | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
389
+ FACTER_GEM_VERSION="~> ${version}" bundle exec facter --show-legacy --json | tee $output_file
349
390
  done
350
391
 
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.9.0'
3
+ STRING = '1.12.0'
4
4
  end
5
5
  end
data/spec/facts_spec.rb CHANGED
@@ -108,7 +108,20 @@ describe 'Default Facts' do
108
108
  else
109
109
  expect(content['networking']['ip']).to not_be_nil.and not_be_empty
110
110
  end
111
-
111
+ end
112
+ it 'contains no facts from puppetlabs/stdlib' do
113
+ expect(content['root_home']).to be_nil
114
+ expect(content['service_provider']).to be_nil
115
+ expect(content['puppet_vardir']).to be_nil
116
+ expect(content['puppet_environmentpath']).to be_nil
117
+ expect(content['puppet_server']).to be_nil
118
+ expect(content['pe_version']).to be_nil
119
+ expect(content['package_provider']).to be_nil
120
+ end
121
+ it 'contains no facts from puppet/systemd' do
122
+ expect(content['systemd']).to be_nil
123
+ expect(content['systemd_version']).to be_nil
124
+ expect(content['systemd_internal_services']).to be_nil
112
125
  end
113
126
  end
114
127
  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.9.0
4
+ version: 1.12.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-08-25 00:00:00.000000000 Z
11
+ date: 2021-11-10 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,8 @@ 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
1358
+ - facts/3.14/ubuntu-21.10-x86_64.facts
1354
1359
  - facts/3.14/windows-10-i386.facts
1355
1360
  - facts/3.14/windows-10-x86_64.facts
1356
1361
  - facts/3.14/windows-2012 r2-core-x86_64.facts
@@ -1737,14 +1742,37 @@ files:
1737
1742
  - facts/4.0/centos-7-x86_64.facts
1738
1743
  - facts/4.0/debian-10-x86_64.facts
1739
1744
  - facts/4.0/debian-11-x86_64.facts
1745
+ - facts/4.0/fedora-32-x86_64.facts
1746
+ - facts/4.0/fedora-33-x86_64.facts
1747
+ - facts/4.0/fedora-34-x86_64.facts
1740
1748
  - facts/4.0/freebsd-11-x86_64.facts
1741
1749
  - facts/4.0/freebsd-12-x86_64.facts
1742
1750
  - facts/4.0/freebsd-13-x86_64.facts
1751
+ - facts/4.0/oraclelinux-7-x86_64.facts
1752
+ - facts/4.0/redhat-7-x86_64.facts
1753
+ - facts/4.0/redhat-8-x86_64.facts
1754
+ - facts/4.0/rocky-8-x86_64.facts
1755
+ - facts/4.0/scientific-7-x86_64.facts
1743
1756
  - facts/4.0/solaris-11-sun4v.facts
1757
+ - facts/4.0/ubuntu-18.04-x86_64.facts
1758
+ - facts/4.0/ubuntu-20.04-x86_64.facts
1759
+ - facts/4.0/ubuntu-21.04-x86_64.facts
1760
+ - facts/4.0/ubuntu-21.10-x86_64.facts
1761
+ - facts/4.1/almalinux-8-x86_64.facts
1744
1762
  - facts/4.1/debian-11-x86_64.facts
1763
+ - facts/4.1/fedora-32-x86_64.facts
1764
+ - facts/4.1/fedora-33-x86_64.facts
1765
+ - facts/4.1/fedora-34-x86_64.facts
1745
1766
  - facts/4.1/freebsd-11-x86_64.facts
1746
1767
  - facts/4.1/freebsd-12-x86_64.facts
1747
1768
  - facts/4.1/freebsd-13-x86_64.facts
1769
+ - facts/4.1/redhat-8-x86_64.facts
1770
+ - facts/4.1/rocky-8-x86_64.facts
1771
+ - facts/4.1/ubuntu-18.04-x86_64.facts
1772
+ - facts/4.1/ubuntu-20.04-x86_64.facts
1773
+ - facts/4.1/ubuntu-21.04-x86_64.facts
1774
+ - facts/4.1/ubuntu-21.10-x86_64.facts
1775
+ - facts/4.2/almalinux-8-x86_64.facts
1748
1776
  - facts/4.2/centos-7-x86_64.facts
1749
1777
  - facts/4.2/centos-8-x86_64.facts
1750
1778
  - facts/4.2/centos-9-x86_64.facts
@@ -1752,10 +1780,24 @@ files:
1752
1780
  - facts/4.2/debian-10-x86_64.facts
1753
1781
  - facts/4.2/debian-11-x86_64.facts
1754
1782
  - facts/4.2/debian-9-x86_64.facts
1783
+ - facts/4.2/fedora-32-x86_64.facts
1784
+ - facts/4.2/fedora-33-x86_64.facts
1785
+ - facts/4.2/fedora-34-x86_64.facts
1755
1786
  - facts/4.2/freebsd-11-x86_64.facts
1756
1787
  - facts/4.2/freebsd-12-x86_64.facts
1757
1788
  - facts/4.2/freebsd-13-x86_64.facts
1789
+ - facts/4.2/oraclelinux-7-x86_64.facts
1758
1790
  - facts/4.2/oraclelinux-8-x86_64.facts
1791
+ - facts/4.2/oraclelinux-9-x86_64.facts
1792
+ - facts/4.2/redhat-7-x86_64.facts
1793
+ - facts/4.2/redhat-8-x86_64.facts
1794
+ - facts/4.2/redhat-9-x86_64.facts
1795
+ - facts/4.2/rocky-8-x86_64.facts
1796
+ - facts/4.2/scientific-7-x86_64.facts
1797
+ - facts/4.2/ubuntu-18.04-x86_64.facts
1798
+ - facts/4.2/ubuntu-20.04-x86_64.facts
1799
+ - facts/4.2/ubuntu-21.04-x86_64.facts
1800
+ - facts/4.2/ubuntu-21.10-x86_64.facts
1759
1801
  - facts/Gemfile
1760
1802
  - facts/Vagrantfile
1761
1803
  - facts/Windows_README.md