facterdb 1.20.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/release.yml +3 -3
  4. data/.github/workflows/test.yml +29 -5
  5. data/.rubocop.yml +5 -0
  6. data/.rubocop_todo.yml +239 -0
  7. data/CHANGELOG.md +27 -1
  8. data/Gemfile +1 -5
  9. data/README.md +124 -119
  10. data/Rakefile +56 -51
  11. data/facterdb.gemspec +7 -7
  12. data/facts/3.14/rocky-9-x86_64.facts +597 -0
  13. data/facts/3.14/ubuntu-22.10-x86_64.facts +631 -0
  14. data/facts/4.0/rocky-9-x86_64.facts +617 -0
  15. data/facts/4.1/centos-7-x86_64.facts +582 -0
  16. data/facts/4.1/debian-10-x86_64.facts +519 -0
  17. data/facts/4.1/rocky-9-x86_64.facts +619 -0
  18. data/facts/4.2/debian-12-i386.facts +593 -0
  19. data/facts/4.2/debian-12-x86_64.facts +593 -0
  20. data/facts/4.2/fedora-37-x86_64.facts +512 -0
  21. data/facts/4.2/fedora-38-x86_64.facts +656 -0
  22. data/facts/4.2/rocky-9-x86_64.facts +626 -0
  23. data/facts/4.2/sles-12-x86_64.facts +483 -0
  24. data/facts/4.2/ubuntu-22.10-x86_64.facts +654 -0
  25. data/facts/4.3/almalinux-8-x86_64.facts +551 -0
  26. data/facts/4.3/almalinux-9-x86_64.facts +525 -0
  27. data/facts/4.3/centos-7-x86_64.facts +592 -0
  28. data/facts/4.3/debian-10-x86_64.facts +526 -0
  29. data/facts/4.3/debian-11-x86_64.facts +521 -0
  30. data/facts/4.3/debian-12-i386.facts +593 -0
  31. data/facts/4.3/debian-12-x86_64.facts +593 -0
  32. data/facts/4.3/fedora-36-x86_64.facts +507 -0
  33. data/facts/4.3/fedora-37-x86_64.facts +512 -0
  34. data/facts/4.3/fedora-38-x86_64.facts +656 -0
  35. data/facts/4.3/opensuse-15-x86_64.facts +533 -0
  36. data/facts/4.3/redhat-8-x86_64.facts +526 -0
  37. data/facts/4.3/rocky-8-x86_64.facts +545 -0
  38. data/facts/4.3/rocky-9-x86_64.facts +626 -0
  39. data/facts/4.3/sles-12-x86_64.facts +908 -0
  40. data/facts/4.3/ubuntu-18.04-x86_64.facts +557 -0
  41. data/facts/4.3/ubuntu-20.04-x86_64.facts +647 -0
  42. data/facts/4.3/ubuntu-22.04-x86_64.facts +655 -0
  43. data/facts/4.3/windows-10-x86_64.facts +182 -0
  44. data/facts/4.3/windows-11-x86_64.facts +182 -0
  45. data/facts/4.3/windows-2012 r2-x86_64.facts +179 -0
  46. data/facts/4.3/windows-2012-x86_64.facts +179 -0
  47. data/facts/4.3/windows-2016-core-x86_64.facts +181 -0
  48. data/facts/4.3/windows-2016-x86_64.facts +181 -0
  49. data/facts/4.3/windows-2019-core-x86_64.facts +181 -0
  50. data/facts/4.3/windows-2019-x86_64.facts +181 -0
  51. data/facts/4.3/windows-2022-core-x86_64.facts +183 -0
  52. data/facts/4.3/windows-2022-x86_64.facts +183 -0
  53. data/facts/4.4/almalinux-8-x86_64.facts +551 -0
  54. data/facts/4.4/almalinux-9-x86_64.facts +525 -0
  55. data/facts/4.4/centos-7-x86_64.facts +592 -0
  56. data/facts/4.4/debian-10-x86_64.facts +526 -0
  57. data/facts/4.4/debian-11-x86_64.facts +521 -0
  58. data/facts/4.4/debian-12-i386.facts +593 -0
  59. data/facts/4.4/debian-12-x86_64.facts +593 -0
  60. data/facts/4.4/fedora-36-x86_64.facts +507 -0
  61. data/facts/4.4/fedora-37-x86_64.facts +512 -0
  62. data/facts/4.4/fedora-38-x86_64.facts +656 -0
  63. data/facts/4.4/opensuse-15-x86_64.facts +514 -0
  64. data/facts/4.4/redhat-8-x86_64.facts +526 -0
  65. data/facts/4.4/rocky-8-x86_64.facts +545 -0
  66. data/facts/4.4/rocky-9-x86_64.facts +626 -0
  67. data/facts/4.4/sles-12-x86_64.facts +908 -0
  68. data/facts/4.4/ubuntu-18.04-x86_64.facts +557 -0
  69. data/facts/4.4/ubuntu-20.04-x86_64.facts +647 -0
  70. data/facts/4.4/ubuntu-22.04-x86_64.facts +655 -0
  71. data/facts/4.4/windows-10-x86_64.facts +182 -0
  72. data/facts/4.4/windows-11-x86_64.facts +186 -0
  73. data/facts/4.4/windows-2012 r2-x86_64.facts +179 -0
  74. data/facts/4.4/windows-2012-x86_64.facts +179 -0
  75. data/facts/4.4/windows-2016-core-x86_64.facts +181 -0
  76. data/facts/4.4/windows-2016-x86_64.facts +181 -0
  77. data/facts/4.4/windows-2019-core-x86_64.facts +181 -0
  78. data/facts/4.4/windows-2019-x86_64.facts +181 -0
  79. data/facts/4.4/windows-2022-core-x86_64.facts +183 -0
  80. data/facts/4.4/windows-2022-x86_64.facts +183 -0
  81. data/facts/Gemfile +3 -7
  82. data/facts/Vagrantfile +315 -275
  83. data/facts/get_facts.sh +68 -10
  84. data/lib/facterdb/bin.rb +1 -1
  85. data/lib/facterdb/version.rb +1 -1
  86. data/lib/facterdb.rb +40 -32
  87. data/rakelib/rhel_alts.rake +8 -14
  88. data/spec/facterdb_spec.rb +37 -37
  89. data/spec/facts_spec.rb +13 -7
  90. metadata +92 -6
data/facts/Vagrantfile CHANGED
@@ -2,226 +2,248 @@
2
2
  # vi: set ft=ruby :
3
3
 
4
4
  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
- VAGRANTFILE_API_VERSION = "2"
5
+ VAGRANTFILE_API_VERSION = '2'
6
6
 
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
-
9
- config.vm.hostname = "foo.example.com"
10
- config.vm.provider "virtualbox" do |v|
8
+ config.vm.hostname = 'foo.example.com'
9
+ config.vm.provider 'virtualbox' do |v|
11
10
  v.gui = false
12
11
  end
13
12
 
14
- config.vm.define "debian-10-x86_64" do |host|
15
- host.vm.box = "debian/contrib-buster64"
16
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
17
- host.vm.provision "shell", path: "get_facts.sh"
18
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
19
- end
20
- config.vm.define "debian-11-x86_64" do |host|
21
- host.vm.box = "boxomatic/debian-11"
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 "linuxmint-19-x86_64" do |host|
27
- host.vm.box = "ltsp/linuxmint-19.1-cinnamon-64bit"
28
- host.vm.provision "shell", inline: "export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ruby ruby-dev libc6-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 "ubuntu-18.04-x86_64" do |host|
34
- host.vm.box = "ubuntu/bionic64"
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 "ubuntu-20.04-x86_64" do |host|
40
- host.vm.box = "ubuntu/focal64"
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
- config.vm.define "ubuntu-21.04-x86_64" do |host|
46
- host.vm.box = "ubuntu/hirsute64"
47
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
48
- host.vm.provision "shell", path: "get_facts.sh"
49
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
50
- end
51
- config.vm.define "ubuntu-21.10-x86_64" do |host|
52
- host.vm.box = "ubuntu/impish64"
53
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
54
- host.vm.provision "shell", path: "get_facts.sh"
55
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
56
- end
57
- config.vm.define "ubuntu-22.04-x86_64" do |host|
58
- host.vm.box = "ubuntu/jammy64"
59
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
60
- host.vm.provision "shell", path: "get_facts.sh"
61
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
62
- end
63
- config.vm.define "centos-7-x86_64" do |host|
64
- host.vm.box = "centos/7"
13
+ config.vm.define 'debian-10-x86_64' do |host|
14
+ host.vm.box = 'debian/contrib-buster64'
15
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
16
+ host.vm.provision 'shell', path: 'get_facts.sh'
17
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
18
+ end
19
+ config.vm.define 'debian-11-x86_64' do |host|
20
+ host.vm.box = 'boxomatic/debian-11'
21
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
22
+ host.vm.provision 'shell', path: 'get_facts.sh'
23
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
24
+ end
25
+ config.vm.define 'debian-12-x86_64' do |host|
26
+ host.vm.box = 'boxomatic/debian-12'
27
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
28
+ host.vm.provision 'shell', path: 'get_facts.sh'
29
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
30
+ end
31
+ config.vm.define 'linuxmint-19-x86_64' do |host|
32
+ host.vm.box = 'ltsp/linuxmint-19.1-cinnamon-64bit'
33
+ host.vm.provision 'shell',
34
+ inline: 'export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ruby ruby-dev libc6-dev'
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 'ubuntu-18.04-x86_64' do |host|
40
+ host.vm.box = 'ubuntu/bionic64'
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
+ config.vm.define 'ubuntu-20.04-x86_64' do |host|
46
+ host.vm.box = 'ubuntu/focal64'
47
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
48
+ host.vm.provision 'shell', path: 'get_facts.sh'
49
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
50
+ end
51
+ config.vm.define 'ubuntu-21.04-x86_64' do |host|
52
+ host.vm.box = 'ubuntu/hirsute64'
53
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
54
+ host.vm.provision 'shell', path: 'get_facts.sh'
55
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
56
+ end
57
+ config.vm.define 'ubuntu-21.10-x86_64' do |host|
58
+ host.vm.box = 'ubuntu/impish64'
59
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
60
+ host.vm.provision 'shell', path: 'get_facts.sh'
61
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
62
+ end
63
+ config.vm.define 'ubuntu-22.04-x86_64' do |host|
64
+ host.vm.box = 'ubuntu/jammy64'
65
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
66
+ host.vm.provision 'shell', path: 'get_facts.sh'
67
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
68
+ end
69
+ # the ssh bits on this did not work right, most of the steps for
70
+ # generating things were done manually
71
+ config.vm.define 'ubuntu-22.10-x86_64' do |host|
72
+ host.vm.box = 'ubuntu/kinetic64'
73
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
74
+ host.vm.provision 'shell', path: 'get_facts.sh'
75
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
76
+ end
77
+ config.vm.define 'centos-7-x86_64' do |host|
78
+ host.vm.box = 'centos/7'
65
79
  host.vm.network :private_network, ip: '10.0.0.2'
66
- host.vm.synced_folder ".", "/vagrant", :nfs => true
67
- host.vm.provision "shell", inline: "yum -y install ruby-devel gcc wget net-tools"
68
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
69
- host.vm.provision "shell", path: "get_facts.sh"
70
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
71
- end
72
- config.vm.define "centos-8-x86_64" do |host|
73
- host.vm.box = "centos/8"
74
- host.vm.synced_folder ".", "/vagrant"
75
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
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"
80
+ host.vm.synced_folder '.', '/vagrant', nfs: true, nfs_udp: false
81
+ host.vm.provision 'shell', inline: 'yum -y install ruby-devel gcc wget net-tools'
82
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
83
+ host.vm.provision 'shell', path: 'get_facts.sh'
84
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
85
+ end
86
+ config.vm.define 'centos-8-x86_64' do |host|
87
+ host.vm.box = 'centos/8'
88
+ host.vm.synced_folder '.', '/vagrant'
89
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
90
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
91
+ host.vm.provision 'shell', path: 'get_facts.sh'
92
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
79
93
  host.vbguest.auto_update = true
80
94
  end
81
- config.vm.define "centos-stream8-x86_64" do |host|
82
- host.vm.box = "centos/stream8"
83
- host.vm.synced_folder ".", "/vagrant"
84
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
85
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
86
- host.vm.provision "shell", path: "get_facts.sh"
87
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
95
+ config.vm.define 'centos-stream8-x86_64' do |host|
96
+ host.vm.box = 'centos/stream8'
97
+ host.vm.synced_folder '.', '/vagrant'
98
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
99
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
100
+ host.vm.provision 'shell', path: 'get_facts.sh'
101
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
88
102
  host.vbguest.auto_update = true
89
103
  end
90
104
  # will work after https://www.centos.org/centos-stream/#tab-3 got updated
91
105
  # in the meantime images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
92
106
  # can be imported with vagrant box add --name centos/stream9 $url
93
- config.vm.define "centos-stream9-x86_64" do |host|
94
- host.vm.box = "centos/stream9"
95
- host.vm.synced_folder ".", "/vagrant"
96
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
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"
107
+ config.vm.define 'centos-stream9-x86_64' do |host|
108
+ host.vm.box = 'centos/stream9'
109
+ host.vm.synced_folder '.', '/vagrant'
110
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
111
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
112
+ host.vm.provision 'shell', path: 'get_facts.sh'
113
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
100
114
  host.vbguest.auto_update = true
101
115
  end
102
- config.vm.define "almalinux-8-x86_64" do |host|
103
- host.vm.box = "almalinux/8"
104
- host.vm.synced_folder ".", "/vagrant"
105
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
106
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
107
- host.vm.provision "shell", path: "get_facts.sh"
108
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
109
- end
110
- config.vm.define "almalinux-9-x86_64" do |host|
111
- host.vm.box = "almalinux/9"
112
- host.vm.synced_folder ".", "/vagrant"
113
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
114
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
115
- host.vm.provision "shell", path: "get_facts.sh"
116
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
117
- end
118
- config.vm.define "rockylinux-8-x86_64" do |host|
119
- host.vm.box = "rockylinux/8"
120
- host.vm.synced_folder ".", "/vagrant"
121
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
122
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
123
- host.vm.provision "shell", path: "get_facts.sh"
124
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
125
- end
126
- config.vm.define "redhat-8-x86_64" do |host|
127
- host.vm.box = "generic/rhel8"
128
- host.vm.synced_folder ".", "/vagrant"
129
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
130
- host.vm.provision "shell", path: "get_facts.sh"
131
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
132
- end
133
- config.vm.define "archlinux-x86_64" do |host|
134
- host.vm.box = "archlinux/archlinux"
135
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
136
- #host.vm.provision "shell", path: "get_facts.sh"
137
- #host.vm.provision "shell", inline: "/sbin/shutdown -h now"
138
- end
139
- config.vm.define "sles-11sp1-x86_64" do |host|
140
- host.vm.box = "suse/sles11sp3"
141
- host.vm.network "private_network", ip: "192.168.123.2"
142
- host.vm.synced_folder ".", "/vagrant", type: "nfs"
143
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
144
- host.vm.provision "shell", path: "get_facts.sh"
145
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
146
- end
147
- config.vm.define "sles-12sp1-x86_64" do |host|
148
- host.vm.box = "idar/sles12sp3"
149
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
150
- host.vm.provision "shell", path: "get_facts.sh"
151
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
152
- end
153
- config.vm.define "sles-15-x86_64" do |host|
154
- host.vm.box = "trueability/sles-15-sp1"
155
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
156
- host.vm.provision "shell", inline: [
157
- "SUSEConnect -p sle-module-desktop-applications/15.1/x86_64",
158
- "SUSEConnect -p sle-module-legacy/15.1/x86_64",
159
- "zypper install --no-confirm net-tools-deprecated",
116
+ config.vm.define 'almalinux-8-x86_64' do |host|
117
+ host.vm.box = 'almalinux/8'
118
+ host.vm.synced_folder '.', '/vagrant'
119
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
120
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
121
+ host.vm.provision 'shell', path: 'get_facts.sh'
122
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
123
+ end
124
+ config.vm.define 'almalinux-9-x86_64' do |host|
125
+ host.vm.box = 'almalinux/9'
126
+ host.vm.synced_folder '.', '/vagrant'
127
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
128
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
129
+ host.vm.provision 'shell', path: 'get_facts.sh'
130
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
131
+ end
132
+ config.vm.define 'rockylinux-8-x86_64' do |host|
133
+ host.vm.box = 'rockylinux/8'
134
+ host.vm.synced_folder '.', '/vagrant'
135
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
136
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
137
+ host.vm.provision 'shell', path: 'get_facts.sh'
138
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
139
+ end
140
+ config.vm.define 'rockylinux-9-x86_64' do |host|
141
+ host.vm.box = 'rockylinux/9'
142
+ host.vm.synced_folder '.', '/vagrant'
143
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
144
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
145
+ host.vm.provision 'shell', path: 'get_facts.sh'
146
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
147
+ end
148
+ config.vm.define 'redhat-8-x86_64' do |host|
149
+ host.vm.box = 'generic/rhel8'
150
+ host.vm.synced_folder '.', '/vagrant'
151
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
152
+ host.vm.provision 'shell', path: 'get_facts.sh'
153
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
154
+ end
155
+ config.vm.define 'archlinux-x86_64' do |host|
156
+ host.vm.box = 'archlinux/archlinux'
157
+ 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"
160
+ end
161
+ config.vm.define 'sles-11sp1-x86_64' do |host|
162
+ host.vm.box = 'suse/sles11sp3'
163
+ host.vm.network 'private_network', ip: '192.168.123.2'
164
+ host.vm.synced_folder '.', '/vagrant', type: 'nfs'
165
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
166
+ host.vm.provision 'shell', path: 'get_facts.sh'
167
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
168
+ end
169
+ config.vm.define 'sles-12sp1-x86_64' do |host|
170
+ host.vm.box = 'idar/sles12sp3'
171
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
172
+ host.vm.provision 'shell', path: 'get_facts.sh'
173
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
174
+ end
175
+ config.vm.define 'sles-15-x86_64' do |host|
176
+ host.vm.box = 'trueability/sles-15-sp1'
177
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
178
+ host.vm.provision 'shell', inline: [
179
+ 'SUSEConnect -p sle-module-desktop-applications/15.1/x86_64',
180
+ 'SUSEConnect -p sle-module-legacy/15.1/x86_64',
181
+ 'zypper install --no-confirm net-tools-deprecated',
160
182
  ].join(' && ')
161
- host.vm.provision "shell", path: "get_facts.sh"
162
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
163
- end
164
- config.vm.define "opensuse-42.3-x86_64" do |host|
165
- host.vm.box = "opensuse/openSUSE-42.3-x86_64"
166
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
167
- host.vm.provision "shell", path: "get_facts.sh"
168
- end
169
- config.vm.define "opensuse-Tumbleweed-x86_64" do |host|
170
- host.vm.box = "opensuse/openSUSE-Tumbleweed-x86_64"
171
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
172
- host.vm.provision "shell", path: "get_facts.sh"
173
- end
174
- config.vm.define "opensuse-15.4-x86_64" do |host|
175
- host.vm.box = "opensuse/Leap-15.4.x86_64"
176
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
177
- host.vm.provision "shell", path: "get_facts.sh"
178
- end
179
- config.vm.define "freebsd-11-x86_64" do |host|
180
- host.vm.box = "bento/freebsd-11"
181
- host.vm.synced_folder ".", "/vagrant"
182
- host.vm.provision "shell", inline: "pkg install -y bash devel/ruby-gems"
183
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
184
- host.vm.provision "shell", path: "get_facts.sh"
185
- host.vm.provision "shell", inline: "/sbin/shutdown -p now"
186
- end
187
- config.vm.define "freebsd-12-x86_64" do |host|
188
- host.vm.box = "bento/freebsd-12"
189
- host.vm.synced_folder ".", "/vagrant"
190
- host.vm.provision "shell", inline: "pkg install -y bash devel/ruby-gems"
191
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
192
- host.vm.provision "shell", path: "get_facts.sh"
193
- host.vm.provision "shell", inline: "/sbin/shutdown -p now"
194
- end
195
- config.vm.define "freebsd-13-x86_64" do |host|
196
- host.vm.box = "bento/freebsd-13"
197
- host.vm.synced_folder ".", "/vagrant"
198
- host.vm.provision "shell", inline: "pkg install -y bash devel/ruby-gems"
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 -p now"
202
- end
203
- config.vm.define "gentoo-x86_64" do |host|
204
- host.vm.box = "generic/gentoo"
205
- host.vm.synced_folder ".", "/vagrant"
206
- host.vm.provision "shell", inline: "emerge-webrsync && emerge app-crypt/gnupg net-misc/curl"
207
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
208
- host.vm.provision "shell", path: "get_facts.sh"
209
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
210
- end
211
- config.vm.define "solaris-11-x86_64" do |host|
212
- host.vm.box = "http://benden.us/vagrant/solaris-11.2.box"
183
+ host.vm.provision 'shell', path: 'get_facts.sh'
184
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
185
+ end
186
+ config.vm.define 'opensuse-42.3-x86_64' do |host|
187
+ host.vm.box = 'opensuse/openSUSE-42.3-x86_64'
188
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
189
+ host.vm.provision 'shell', path: 'get_facts.sh'
190
+ end
191
+ config.vm.define 'opensuse-Tumbleweed-x86_64' do |host|
192
+ host.vm.box = 'opensuse/openSUSE-Tumbleweed-x86_64'
193
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
194
+ host.vm.provision 'shell', path: 'get_facts.sh'
195
+ end
196
+ config.vm.define 'opensuse-15.4-x86_64' do |host|
197
+ host.vm.box = 'opensuse/Leap-15.4.x86_64'
198
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
199
+ host.vm.provision 'shell', path: 'get_facts.sh'
200
+ end
201
+ config.vm.define 'freebsd-11-x86_64' do |host|
202
+ host.vm.box = 'bento/freebsd-11'
203
+ host.vm.synced_folder '.', '/vagrant'
204
+ host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
205
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
206
+ host.vm.provision 'shell', path: 'get_facts.sh'
207
+ host.vm.provision 'shell', inline: '/sbin/shutdown -p now'
208
+ end
209
+ config.vm.define 'freebsd-12-x86_64' do |host|
210
+ host.vm.box = 'bento/freebsd-12'
211
+ host.vm.synced_folder '.', '/vagrant'
212
+ host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
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 -p now'
216
+ end
217
+ config.vm.define 'freebsd-13-x86_64' do |host|
218
+ host.vm.box = 'bento/freebsd-13'
219
+ host.vm.synced_folder '.', '/vagrant'
220
+ host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
221
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
222
+ host.vm.provision 'shell', path: 'get_facts.sh'
223
+ host.vm.provision 'shell', inline: '/sbin/shutdown -p now'
224
+ end
225
+ config.vm.define 'gentoo-x86_64' do |host|
226
+ host.vm.box = 'generic/gentoo'
227
+ host.vm.synced_folder '.', '/vagrant'
228
+ host.vm.provision 'shell', inline: 'emerge-webrsync && emerge app-crypt/gnupg net-misc/curl'
229
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
230
+ host.vm.provision 'shell', path: 'get_facts.sh'
231
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
232
+ end
233
+ config.vm.define 'solaris-11-x86_64' do |host|
234
+ host.vm.box = 'http://benden.us/vagrant/solaris-11.2.box'
213
235
  host.ssh.insert_key = false
214
- host.vm.provision "shell", inline: "pkg info gcc || pkg install gcc"
215
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
216
- host.vm.provision "shell", path: "get_facts.sh"
217
- host.vm.provision "shell", inline: "/sbin/shutdown -i S -g0 -y 'Bye' &"
218
- end
219
- config.vm.define "openbsd-6.4-x86_64" do |host|
220
- host.vm.box = "generic/openbsd6"
221
- host.vm.box_version = "~> 1.9.18"
236
+ host.vm.provision 'shell', inline: 'pkg info gcc || pkg install gcc'
237
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
238
+ host.vm.provision 'shell', path: 'get_facts.sh'
239
+ host.vm.provision 'shell', inline: "/sbin/shutdown -i S -g0 -y 'Bye' &"
240
+ end
241
+ config.vm.define 'openbsd-6.4-x86_64' do |host|
242
+ host.vm.box = 'generic/openbsd6'
243
+ host.vm.box_version = '~> 1.9.18'
222
244
  host.vm.network :private_network, ip: '10.0.0.2'
223
- host.vm.synced_folder ".", "/vagrant", :nfs => true
224
- host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
245
+ host.vm.synced_folder '.', '/vagrant', nfs: true
246
+ host.vm.provision 'shell', inline: <<-SCRIPT.gsub(/^ +/, '')
225
247
  . ~/.profile
226
248
 
227
249
  pkg_info -qe 'bash->=0' || pkg_add bash
@@ -229,91 +251,109 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
229
251
  ln -sf /usr/local/bin/gem24 /usr/bin/gem
230
252
  ln -sf /usr/local/bin/ruby24 /usr/bin/ruby
231
253
  SCRIPT
232
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
233
- host.vm.provision "shell", path: "get_facts.sh"
234
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
254
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
255
+ host.vm.provision 'shell', path: 'get_facts.sh'
256
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
235
257
  end
236
- config.vm.define "osx-10.10-x86_64" do |host|
237
- host.vm.box = "AndrewDryga/vagrant-box-osx"
258
+ config.vm.define 'osx-10.10-x86_64' do |host|
259
+ host.vm.box = 'AndrewDryga/vagrant-box-osx'
238
260
  host.vm.network :private_network, ip: '10.0.0.2'
239
- host.vm.synced_folder ".", "/vagrant", :nfs => true
240
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
241
- host.vm.provision "shell", path: "get_facts.sh"
242
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
261
+ host.vm.synced_folder '.', '/vagrant', nfs: true
262
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
263
+ host.vm.provision 'shell', path: 'get_facts.sh'
264
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
243
265
  end
244
- config.vm.define "windows-7-x86_64" do |host|
266
+ config.vm.define 'windows-7-x86_64' do |host|
245
267
  host.vm.hostname = 'foo'
246
- host.vm.box = "ferventcoder/win7pro-x64-nocm-lite"
247
- host.vm.communicator = "winrm"
268
+ host.vm.box = 'ferventcoder/win7pro-x64-nocm-lite'
269
+ host.vm.communicator = 'winrm'
248
270
  host.vm.guest = :windows
249
- host.vm.network :private_network, :auto_network => true
250
- host.vm.network "forwarded_port", guest: 22, host: 2200, id: "ssh", auto_correct: true
271
+ host.vm.network :private_network, auto_network: true
272
+ host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
251
273
  host.windows.set_work_network = true
252
- host.vm.provision 'shell', path: "windows_get_facts.ps1"
253
- #host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
254
- host.vm.provision 'shell', inline: "shutdown -s -f -c \"Fact Collection Complete\""
255
- #host.vm.post_up_message = 'Note that windows machines do not automatically shutdown. You must run a \'vagrant destroy\' or \'vagrant halt\' to terminate/stop the build vm.'
274
+ host.vm.provision 'shell', path: 'windows_get_facts.ps1'
275
+ # host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
276
+ host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
277
+ # host.vm.post_up_message = 'Note that windows machines do not automatically shutdown. You must run a \'vagrant destroy\' or \'vagrant halt\' to terminate/stop the build vm.'
256
278
  end
257
- config.vm.define "windows-2012r2-core-x86_64" do |host|
279
+ config.vm.define 'windows-2012r2-core-x86_64' do |host|
258
280
  host.vm.hostname = 'foo'
259
- host.vm.box = "windows-2012r2-core-x86_64"
260
- host.vm.communicator = "winrm"
281
+ host.vm.box = 'windows-2012r2-core-x86_64'
282
+ host.vm.communicator = 'winrm'
261
283
  host.vm.guest = :windows
262
- host.vm.network :private_network, :auto_network => true
263
- host.vm.network "forwarded_port", guest: 22, host: 2200, id: "ssh", auto_correct: true
284
+ host.vm.network :private_network, auto_network: true
285
+ host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
264
286
  host.windows.set_work_network = true
265
- host.vm.provision 'shell', path: "windows_get_facts.ps1"
266
- host.vm.provision 'shell', inline: "shutdown -s -f -c \"Fact Collection Complete\""
267
- end
268
- config.vm.define "amazonlinux-2-x86_64" do |host|
269
- host.vm.box = "bento/amazonlinux-2"
270
- host.vm.provision "shell", inline: "yum -y install gcc glibc-devel"
271
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
272
- host.vm.provision "shell", path: "get_facts.sh"
273
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
274
- end
275
- config.vm.define "fedora-32-x86_64" do |host|
276
- host.vm.box = "generic/fedora32"
277
- host.vm.synced_folder ".", "/vagrant"
278
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
279
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
280
- host.vm.provision "shell", path: "get_facts.sh"
281
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
282
- end
283
- config.vm.define "fedora-33-x86_64" do |host|
284
- host.vm.box = "generic/fedora33"
285
- host.vm.synced_folder ".", "/vagrant"
287
+ host.vm.provision 'shell', path: 'windows_get_facts.ps1'
288
+ host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
289
+ end
290
+ config.vm.define 'amazonlinux-2-x86_64' do |host|
291
+ host.vm.box = 'bento/amazonlinux-2'
292
+ host.vm.provision 'shell', inline: 'yum -y install gcc glibc-devel'
293
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
294
+ host.vm.provision 'shell', path: 'get_facts.sh'
295
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
296
+ end
297
+ config.vm.define 'fedora-32-x86_64' do |host|
298
+ host.vm.box = 'generic/fedora32'
299
+ host.vm.synced_folder '.', '/vagrant'
300
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
301
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
302
+ host.vm.provision 'shell', path: 'get_facts.sh'
303
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
304
+ end
305
+ config.vm.define 'fedora-33-x86_64' do |host|
306
+ host.vm.box = 'generic/fedora33'
307
+ host.vm.synced_folder '.', '/vagrant'
286
308
  # there's no official support for fedora 33, so we need ruby and facter from Fedora
287
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools ruby ruby-devel facter"
288
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
289
- host.vm.provision "shell", path: "get_facts.sh"
290
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
291
- end
292
- config.vm.define "fedora-34-x86_64" do |host|
293
- host.vm.box = "generic/fedora34"
294
- host.vm.synced_folder ".", "/vagrant"
295
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
296
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
297
- host.vm.provision "shell", path: "get_facts.sh"
298
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
299
- end
300
- config.vm.define "fedora-35-x86_64" do |host|
301
- host.vm.box = "generic/fedora35"
302
- host.vm.synced_folder ".", "/vagrant"
309
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools ruby ruby-devel facter'
310
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
311
+ host.vm.provision 'shell', path: 'get_facts.sh'
312
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
313
+ end
314
+ config.vm.define 'fedora-34-x86_64' do |host|
315
+ host.vm.box = 'generic/fedora34'
316
+ host.vm.synced_folder '.', '/vagrant'
317
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
318
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
319
+ host.vm.provision 'shell', path: 'get_facts.sh'
320
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
321
+ end
322
+ config.vm.define 'fedora-35-x86_64' do |host|
323
+ host.vm.box = 'generic/fedora35'
324
+ host.vm.synced_folder '.', '/vagrant'
303
325
  # there's no official support for fedora 35, so we need ruby 2.7 and facter from Fedora
304
- host.vm.provision "shell", inline: "dnf -y module install ruby:2.7/default"
305
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools facter ruby-devel"
306
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
307
- host.vm.provision "shell", path: "get_facts.sh"
308
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
309
- end
310
- config.vm.define "fedora-36-x86_64" do |host|
311
- host.vm.box = "generic/fedora36"
312
- host.vm.synced_folder ".", "/vagrant"
326
+ host.vm.provision 'shell', inline: 'dnf -y module install ruby:2.7/default'
327
+ host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools facter ruby-devel'
328
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
329
+ host.vm.provision 'shell', path: 'get_facts.sh'
330
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
331
+ end
332
+ config.vm.define 'fedora-36-x86_64' do |host|
333
+ host.vm.box = 'generic/fedora36'
334
+ host.vm.synced_folder '.', '/vagrant'
313
335
  # there's no official support for fedora 36, so we need facter from Fedora
314
- host.vm.provision "shell", inline: "dnf -y install facter ruby ruby-devel wget make gcc net-tools"
315
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
316
- host.vm.provision "shell", path: "get_facts.sh"
317
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
336
+ host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
337
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
338
+ host.vm.provision 'shell', path: 'get_facts.sh'
339
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
340
+ end
341
+ config.vm.define 'fedora-37-x86_64' do |host|
342
+ host.vm.box = 'generic/fedora37'
343
+ host.vm.synced_folder '.', '/vagrant'
344
+ # there's no official support for fedora 37, so we need facter from Fedora
345
+ host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
346
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
347
+ host.vm.provision 'shell', path: 'get_facts.sh'
348
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
349
+ end
350
+ config.vm.define 'fedora-38-x86_64' do |host|
351
+ host.vm.box = 'generic/fedora38'
352
+ host.vm.synced_folder '.', '/vagrant'
353
+ # there's no official support for fedora 38, so we need facter from Fedora
354
+ host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
355
+ host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
356
+ host.vm.provision 'shell', path: 'get_facts.sh'
357
+ host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
318
358
  end
319
359
  end