facterdb 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/release.yml +3 -3
- data/.github/workflows/test.yml +28 -5
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +239 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -5
- data/README.md +124 -122
- data/Rakefile +56 -51
- data/facterdb.gemspec +7 -7
- data/facts/4.1/centos-7-x86_64.facts +582 -0
- data/facts/4.1/debian-10-x86_64.facts +519 -0
- data/facts/4.2/debian-12-i386.facts +593 -0
- data/facts/4.2/debian-12-x86_64.facts +593 -0
- data/facts/4.2/fedora-38-x86_64.facts +656 -0
- data/facts/4.3/almalinux-8-x86_64.facts +551 -0
- data/facts/4.3/almalinux-9-x86_64.facts +525 -0
- data/facts/4.3/centos-7-x86_64.facts +592 -0
- data/facts/4.3/debian-10-x86_64.facts +526 -0
- data/facts/4.3/debian-11-x86_64.facts +521 -0
- data/facts/4.3/debian-12-i386.facts +593 -0
- data/facts/4.3/debian-12-x86_64.facts +593 -0
- data/facts/4.3/fedora-36-x86_64.facts +507 -0
- data/facts/4.3/fedora-37-x86_64.facts +512 -0
- data/facts/4.3/fedora-38-x86_64.facts +656 -0
- data/facts/4.3/opensuse-15-x86_64.facts +533 -0
- data/facts/4.3/redhat-8-x86_64.facts +526 -0
- data/facts/4.3/rocky-8-x86_64.facts +545 -0
- data/facts/4.3/rocky-9-x86_64.facts +626 -0
- data/facts/4.3/sles-12-x86_64.facts +908 -0
- data/facts/4.3/ubuntu-18.04-x86_64.facts +557 -0
- data/facts/4.3/ubuntu-20.04-x86_64.facts +647 -0
- data/facts/4.3/ubuntu-22.04-x86_64.facts +655 -0
- data/facts/4.3/windows-10-x86_64.facts +182 -0
- data/facts/4.3/windows-11-x86_64.facts +182 -0
- data/facts/4.3/windows-2012 r2-x86_64.facts +179 -0
- data/facts/4.3/windows-2012-x86_64.facts +179 -0
- data/facts/4.3/windows-2016-core-x86_64.facts +181 -0
- data/facts/4.3/windows-2016-x86_64.facts +181 -0
- data/facts/4.3/windows-2019-core-x86_64.facts +181 -0
- data/facts/4.3/windows-2019-x86_64.facts +181 -0
- data/facts/4.3/windows-2022-core-x86_64.facts +183 -0
- data/facts/4.3/windows-2022-x86_64.facts +183 -0
- data/facts/4.4/almalinux-8-x86_64.facts +551 -0
- data/facts/4.4/almalinux-9-x86_64.facts +525 -0
- data/facts/4.4/centos-7-x86_64.facts +592 -0
- data/facts/4.4/debian-10-x86_64.facts +526 -0
- data/facts/4.4/debian-11-x86_64.facts +521 -0
- data/facts/4.4/debian-12-i386.facts +593 -0
- data/facts/4.4/debian-12-x86_64.facts +593 -0
- data/facts/4.4/fedora-36-x86_64.facts +507 -0
- data/facts/4.4/fedora-37-x86_64.facts +512 -0
- data/facts/4.4/fedora-38-x86_64.facts +656 -0
- data/facts/4.4/opensuse-15-x86_64.facts +514 -0
- data/facts/4.4/redhat-8-x86_64.facts +526 -0
- data/facts/4.4/rocky-8-x86_64.facts +545 -0
- data/facts/4.4/rocky-9-x86_64.facts +626 -0
- data/facts/4.4/sles-12-x86_64.facts +908 -0
- data/facts/4.4/ubuntu-18.04-x86_64.facts +557 -0
- data/facts/4.4/ubuntu-20.04-x86_64.facts +647 -0
- data/facts/4.4/ubuntu-22.04-x86_64.facts +655 -0
- data/facts/4.4/windows-10-x86_64.facts +182 -0
- data/facts/4.4/windows-11-x86_64.facts +186 -0
- data/facts/4.4/windows-2012 r2-x86_64.facts +179 -0
- data/facts/4.4/windows-2012-x86_64.facts +179 -0
- data/facts/4.4/windows-2016-core-x86_64.facts +181 -0
- data/facts/4.4/windows-2016-x86_64.facts +181 -0
- data/facts/4.4/windows-2019-core-x86_64.facts +181 -0
- data/facts/4.4/windows-2019-x86_64.facts +181 -0
- data/facts/4.4/windows-2022-core-x86_64.facts +183 -0
- data/facts/4.4/windows-2022-x86_64.facts +183 -0
- data/facts/Gemfile +3 -7
- data/facts/Vagrantfile +313 -298
- data/facts/get_facts.sh +67 -9
- data/lib/facterdb/bin.rb +1 -1
- data/lib/facterdb/version.rb +1 -1
- data/lib/facterdb.rb +40 -32
- data/rakelib/rhel_alts.rake +8 -14
- data/spec/facterdb_spec.rb +37 -37
- data/spec/facts_spec.rb +13 -7
- metadata +84 -6
data/facts/Vagrantfile
CHANGED
@@ -2,242 +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 =
|
5
|
+
VAGRANTFILE_API_VERSION = '2'
|
6
6
|
|
7
7
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
8
|
-
|
9
|
-
config.vm.
|
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
|
15
|
-
host.vm.box =
|
16
|
-
host.vm.provision
|
17
|
-
host.vm.provision
|
18
|
-
host.vm.provision
|
19
|
-
end
|
20
|
-
config.vm.define
|
21
|
-
host.vm.box =
|
22
|
-
host.vm.provision
|
23
|
-
host.vm.provision
|
24
|
-
host.vm.provision
|
25
|
-
end
|
26
|
-
config.vm.define
|
27
|
-
host.vm.box =
|
28
|
-
host.vm.provision
|
29
|
-
host.vm.provision
|
30
|
-
host.vm.provision
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
host.vm.
|
35
|
-
|
36
|
-
host.vm.provision
|
37
|
-
host.vm.provision
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
host.vm.
|
42
|
-
host.vm.provision
|
43
|
-
host.vm.provision
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
host.vm.
|
48
|
-
host.vm.provision
|
49
|
-
host.vm.provision
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
host.vm.
|
54
|
-
host.vm.provision
|
55
|
-
host.vm.provision
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
host.vm.
|
60
|
-
host.vm.provision
|
61
|
-
host.vm.provision
|
62
|
-
|
63
|
-
|
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
|
64
70
|
# generating things were done manually
|
65
|
-
config.vm.define
|
66
|
-
host.vm.box =
|
67
|
-
host.vm.provision
|
68
|
-
host.vm.provision
|
69
|
-
host.vm.provision
|
70
|
-
end
|
71
|
-
config.vm.define
|
72
|
-
host.vm.box =
|
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'
|
73
79
|
host.vm.network :private_network, ip: '10.0.0.2'
|
74
|
-
host.vm.synced_folder
|
75
|
-
host.vm.provision
|
76
|
-
host.vm.provision
|
77
|
-
host.vm.provision
|
78
|
-
host.vm.provision
|
79
|
-
end
|
80
|
-
config.vm.define
|
81
|
-
host.vm.box =
|
82
|
-
host.vm.synced_folder
|
83
|
-
host.vm.provision
|
84
|
-
host.vm.provision
|
85
|
-
host.vm.provision
|
86
|
-
host.vm.provision
|
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'
|
87
93
|
host.vbguest.auto_update = true
|
88
94
|
end
|
89
|
-
config.vm.define
|
90
|
-
host.vm.box =
|
91
|
-
host.vm.synced_folder
|
92
|
-
host.vm.provision
|
93
|
-
host.vm.provision
|
94
|
-
host.vm.provision
|
95
|
-
host.vm.provision
|
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'
|
96
102
|
host.vbguest.auto_update = true
|
97
103
|
end
|
98
104
|
# will work after https://www.centos.org/centos-stream/#tab-3 got updated
|
99
105
|
# in the meantime images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
|
100
106
|
# can be imported with vagrant box add --name centos/stream9 $url
|
101
|
-
config.vm.define
|
102
|
-
host.vm.box =
|
103
|
-
host.vm.synced_folder
|
104
|
-
host.vm.provision
|
105
|
-
host.vm.provision
|
106
|
-
host.vm.provision
|
107
|
-
host.vm.provision
|
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'
|
108
114
|
host.vbguest.auto_update = true
|
109
115
|
end
|
110
|
-
config.vm.define
|
111
|
-
host.vm.box =
|
112
|
-
host.vm.synced_folder
|
113
|
-
host.vm.provision
|
114
|
-
host.vm.provision
|
115
|
-
host.vm.provision
|
116
|
-
host.vm.provision
|
117
|
-
end
|
118
|
-
config.vm.define
|
119
|
-
host.vm.box =
|
120
|
-
host.vm.synced_folder
|
121
|
-
host.vm.provision
|
122
|
-
host.vm.provision
|
123
|
-
host.vm.provision
|
124
|
-
host.vm.provision
|
125
|
-
end
|
126
|
-
config.vm.define
|
127
|
-
host.vm.box =
|
128
|
-
host.vm.synced_folder
|
129
|
-
host.vm.provision
|
130
|
-
host.vm.provision
|
131
|
-
host.vm.provision
|
132
|
-
host.vm.provision
|
133
|
-
end
|
134
|
-
config.vm.define
|
135
|
-
host.vm.box =
|
136
|
-
host.vm.synced_folder
|
137
|
-
host.vm.provision
|
138
|
-
host.vm.provision
|
139
|
-
host.vm.provision
|
140
|
-
host.vm.provision
|
141
|
-
end
|
142
|
-
config.vm.define
|
143
|
-
host.vm.box =
|
144
|
-
host.vm.synced_folder
|
145
|
-
host.vm.provision
|
146
|
-
host.vm.provision
|
147
|
-
host.vm.provision
|
148
|
-
end
|
149
|
-
config.vm.define
|
150
|
-
host.vm.box =
|
151
|
-
host.vm.provision
|
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
|
156
|
-
host.vm.box =
|
157
|
-
host.vm.network
|
158
|
-
host.vm.synced_folder
|
159
|
-
host.vm.provision
|
160
|
-
host.vm.provision
|
161
|
-
host.vm.provision
|
162
|
-
end
|
163
|
-
config.vm.define
|
164
|
-
host.vm.box =
|
165
|
-
host.vm.provision
|
166
|
-
host.vm.provision
|
167
|
-
host.vm.provision
|
168
|
-
end
|
169
|
-
config.vm.define
|
170
|
-
host.vm.box =
|
171
|
-
host.vm.provision
|
172
|
-
host.vm.provision
|
173
|
-
|
174
|
-
|
175
|
-
|
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',
|
176
182
|
].join(' && ')
|
177
|
-
host.vm.provision
|
178
|
-
host.vm.provision
|
179
|
-
end
|
180
|
-
config.vm.define
|
181
|
-
host.vm.box =
|
182
|
-
host.vm.provision
|
183
|
-
host.vm.provision
|
184
|
-
end
|
185
|
-
config.vm.define
|
186
|
-
host.vm.box =
|
187
|
-
host.vm.provision
|
188
|
-
host.vm.provision
|
189
|
-
end
|
190
|
-
config.vm.define
|
191
|
-
host.vm.box =
|
192
|
-
host.vm.provision
|
193
|
-
host.vm.provision
|
194
|
-
end
|
195
|
-
config.vm.define
|
196
|
-
host.vm.box =
|
197
|
-
host.vm.synced_folder
|
198
|
-
host.vm.provision
|
199
|
-
host.vm.provision
|
200
|
-
host.vm.provision
|
201
|
-
host.vm.provision
|
202
|
-
end
|
203
|
-
config.vm.define
|
204
|
-
host.vm.box =
|
205
|
-
host.vm.synced_folder
|
206
|
-
host.vm.provision
|
207
|
-
host.vm.provision
|
208
|
-
host.vm.provision
|
209
|
-
host.vm.provision
|
210
|
-
end
|
211
|
-
config.vm.define
|
212
|
-
host.vm.box =
|
213
|
-
host.vm.synced_folder
|
214
|
-
host.vm.provision
|
215
|
-
host.vm.provision
|
216
|
-
host.vm.provision
|
217
|
-
host.vm.provision
|
218
|
-
end
|
219
|
-
config.vm.define
|
220
|
-
host.vm.box =
|
221
|
-
host.vm.synced_folder
|
222
|
-
host.vm.provision
|
223
|
-
host.vm.provision
|
224
|
-
host.vm.provision
|
225
|
-
host.vm.provision
|
226
|
-
end
|
227
|
-
config.vm.define
|
228
|
-
host.vm.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'
|
229
235
|
host.ssh.insert_key = false
|
230
|
-
host.vm.provision
|
231
|
-
host.vm.provision
|
232
|
-
host.vm.provision
|
233
|
-
host.vm.provision
|
234
|
-
end
|
235
|
-
config.vm.define
|
236
|
-
host.vm.box =
|
237
|
-
host.vm.box_version =
|
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'
|
238
244
|
host.vm.network :private_network, ip: '10.0.0.2'
|
239
|
-
host.vm.synced_folder
|
240
|
-
host.vm.provision
|
245
|
+
host.vm.synced_folder '.', '/vagrant', nfs: true
|
246
|
+
host.vm.provision 'shell', inline: <<-SCRIPT.gsub(/^ +/, '')
|
241
247
|
. ~/.profile
|
242
248
|
|
243
249
|
pkg_info -qe 'bash->=0' || pkg_add bash
|
@@ -245,100 +251,109 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
245
251
|
ln -sf /usr/local/bin/gem24 /usr/bin/gem
|
246
252
|
ln -sf /usr/local/bin/ruby24 /usr/bin/ruby
|
247
253
|
SCRIPT
|
248
|
-
host.vm.provision
|
249
|
-
host.vm.provision
|
250
|
-
host.vm.provision
|
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'
|
251
257
|
end
|
252
|
-
config.vm.define
|
253
|
-
host.vm.box =
|
258
|
+
config.vm.define 'osx-10.10-x86_64' do |host|
|
259
|
+
host.vm.box = 'AndrewDryga/vagrant-box-osx'
|
254
260
|
host.vm.network :private_network, ip: '10.0.0.2'
|
255
|
-
host.vm.synced_folder
|
256
|
-
host.vm.provision
|
257
|
-
host.vm.provision
|
258
|
-
host.vm.provision
|
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'
|
259
265
|
end
|
260
|
-
config.vm.define
|
266
|
+
config.vm.define 'windows-7-x86_64' do |host|
|
261
267
|
host.vm.hostname = 'foo'
|
262
|
-
host.vm.box =
|
263
|
-
host.vm.communicator =
|
268
|
+
host.vm.box = 'ferventcoder/win7pro-x64-nocm-lite'
|
269
|
+
host.vm.communicator = 'winrm'
|
264
270
|
host.vm.guest = :windows
|
265
|
-
host.vm.network :private_network, :
|
266
|
-
host.vm.network
|
271
|
+
host.vm.network :private_network, auto_network: true
|
272
|
+
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
267
273
|
host.windows.set_work_network = true
|
268
|
-
host.vm.provision 'shell', path:
|
269
|
-
#host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
|
270
|
-
host.vm.provision 'shell', inline:
|
271
|
-
#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.'
|
272
278
|
end
|
273
|
-
config.vm.define
|
279
|
+
config.vm.define 'windows-2012r2-core-x86_64' do |host|
|
274
280
|
host.vm.hostname = 'foo'
|
275
|
-
host.vm.box =
|
276
|
-
host.vm.communicator =
|
281
|
+
host.vm.box = 'windows-2012r2-core-x86_64'
|
282
|
+
host.vm.communicator = 'winrm'
|
277
283
|
host.vm.guest = :windows
|
278
|
-
host.vm.network :private_network, :
|
279
|
-
host.vm.network
|
284
|
+
host.vm.network :private_network, auto_network: true
|
285
|
+
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
280
286
|
host.windows.set_work_network = true
|
281
|
-
host.vm.provision 'shell', path:
|
282
|
-
host.vm.provision 'shell', inline:
|
283
|
-
end
|
284
|
-
config.vm.define
|
285
|
-
host.vm.box =
|
286
|
-
host.vm.provision
|
287
|
-
host.vm.provision
|
288
|
-
host.vm.provision
|
289
|
-
host.vm.provision
|
290
|
-
end
|
291
|
-
config.vm.define
|
292
|
-
host.vm.box =
|
293
|
-
host.vm.synced_folder
|
294
|
-
host.vm.provision
|
295
|
-
host.vm.provision
|
296
|
-
host.vm.provision
|
297
|
-
host.vm.provision
|
298
|
-
end
|
299
|
-
config.vm.define
|
300
|
-
host.vm.box =
|
301
|
-
host.vm.synced_folder
|
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'
|
302
308
|
# there's no official support for fedora 33, so we need ruby and facter from Fedora
|
303
|
-
host.vm.provision
|
304
|
-
host.vm.provision
|
305
|
-
host.vm.provision
|
306
|
-
host.vm.provision
|
307
|
-
end
|
308
|
-
config.vm.define
|
309
|
-
host.vm.box =
|
310
|
-
host.vm.synced_folder
|
311
|
-
host.vm.provision
|
312
|
-
host.vm.provision
|
313
|
-
host.vm.provision
|
314
|
-
host.vm.provision
|
315
|
-
end
|
316
|
-
config.vm.define
|
317
|
-
host.vm.box =
|
318
|
-
host.vm.synced_folder
|
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'
|
319
325
|
# there's no official support for fedora 35, so we need ruby 2.7 and facter from Fedora
|
320
|
-
host.vm.provision
|
321
|
-
host.vm.provision
|
322
|
-
host.vm.provision
|
323
|
-
host.vm.provision
|
324
|
-
host.vm.provision
|
325
|
-
end
|
326
|
-
config.vm.define
|
327
|
-
host.vm.box =
|
328
|
-
host.vm.synced_folder
|
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'
|
329
335
|
# there's no official support for fedora 36, so we need facter from Fedora
|
330
|
-
host.vm.provision
|
331
|
-
host.vm.provision
|
332
|
-
host.vm.provision
|
333
|
-
host.vm.provision
|
334
|
-
end
|
335
|
-
config.vm.define
|
336
|
-
host.vm.box =
|
337
|
-
host.vm.synced_folder
|
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'
|
338
344
|
# there's no official support for fedora 37, so we need facter from Fedora
|
339
|
-
host.vm.provision
|
340
|
-
host.vm.provision
|
341
|
-
host.vm.provision
|
342
|
-
host.vm.provision
|
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'
|
343
358
|
end
|
344
359
|
end
|