facterdb 1.21.0 → 1.23.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 +219 -0
- data/CHANGELOG.md +30 -0
- data/Gemfile +3 -6
- data/README.md +125 -122
- data/Rakefile +56 -51
- data/facterdb.gemspec +7 -7
- data/facts/3.0/ubuntu-15.10-i386.facts +1 -0
- data/facts/3.0/ubuntu-15.10-x86_64.facts +1 -0
- data/facts/3.10/ubuntu-18.04-aarch64.facts +1 -0
- data/facts/3.6/pcs-6-x86_64.facts +1 -0
- data/facts/4.0/centos-7-x86_64.facts +1 -0
- data/facts/4.0/centos-8-x86_64.facts +512 -0
- data/facts/4.0/debian-10-x86_64.facts +1 -0
- data/facts/4.0/oraclelinux-7-x86_64.facts +1 -0
- data/facts/4.0/redhat-7-x86_64.facts +1 -0
- data/facts/4.0/scientific-7-x86_64.facts +1 -0
- data/facts/4.1/centos-7-x86_64.facts +582 -0
- data/facts/4.1/centos-8-x86_64.facts +514 -0
- data/facts/4.1/debian-10-x86_64.facts +519 -0
- data/facts/4.2/amazon-2022-x86_64.facts +1 -0
- data/facts/4.2/centos-9-x86_64.facts +1 -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.2/fedora-39-x86_64.facts +577 -0
- data/facts/4.2/oraclelinux-9-x86_64.facts +1 -0
- data/facts/4.2/popos-21.10-x86_64.facts +1 -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/archlinux-x86_64.facts +548 -0
- data/facts/4.3/centos-7-x86_64.facts +592 -0
- data/facts/4.3/centos-8-x86_64.facts +521 -0
- data/facts/4.3/centos-9-x86_64.facts +565 -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/fedora-39-x86_64.facts +577 -0
- data/facts/4.3/freebsd-13-x86_64.facts +455 -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/archlinux-x86_64.facts +548 -0
- data/facts/4.4/centos-7-x86_64.facts +592 -0
- data/facts/4.4/centos-8-x86_64.facts +521 -0
- data/facts/4.4/centos-9-x86_64.facts +565 -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/fedora-39-x86_64.facts +577 -0
- data/facts/4.4/freebsd-13-x86_64.facts +473 -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/4.5/almalinux-8-x86_64.facts +537 -0
- data/facts/4.5/almalinux-9-x86_64.facts +533 -0
- data/facts/4.5/amazon-2-x86_64.facts +526 -0
- data/facts/4.5/archlinux-x86_64.facts +554 -0
- data/facts/4.5/centos-7-x86_64.facts +602 -0
- data/facts/4.5/centos-8-x86_64.facts +527 -0
- data/facts/4.5/centos-9-x86_64.facts +573 -0
- data/facts/4.5/debian-10-x86_64.facts +532 -0
- data/facts/4.5/debian-11-x86_64.facts +529 -0
- data/facts/4.5/debian-12-x86_64.facts +595 -0
- data/facts/4.5/fedora-37-x86_64.facts +518 -0
- data/facts/4.5/fedora-38-x86_64.facts +662 -0
- data/facts/4.5/fedora-39-x86_64.facts +583 -0
- data/facts/4.5/freebsd-12-x86_64.facts +456 -0
- data/facts/4.5/freebsd-13-x86_64.facts +455 -0
- data/facts/4.5/gentoo-2-x86_64.facts +493 -0
- data/facts/4.5/opensuse-15-x86_64.facts +541 -0
- data/facts/4.5/redhat-8-x86_64.facts +532 -0
- data/facts/4.5/rocky-8-x86_64.facts +551 -0
- data/facts/4.5/rocky-9-x86_64.facts +632 -0
- data/facts/4.5/ubuntu-18.04-x86_64.facts +563 -0
- data/facts/4.5/ubuntu-20.04-x86_64.facts +653 -0
- data/facts/4.5/ubuntu-22.04-x86_64.facts +661 -0
- data/facts/Gemfile +3 -7
- data/facts/Vagrantfile +345 -301
- 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 → facter_db_spec.rb} +37 -37
- data/spec/facts_spec.rb +20 -7
- metadata +121 -7
data/facts/Vagrantfile
CHANGED
@@ -2,242 +2,268 @@
|
|
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
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
host.vm.
|
94
|
-
host.vm.
|
95
|
-
host.vm.
|
95
|
+
# images are at https://cloud.centos.org/centos/8-stream/x86_64/images/
|
96
|
+
# (check for version updates periodically)
|
97
|
+
# facts land as centos-8-x86_64.facts
|
98
|
+
config.vm.define 'centos-stream8-x86_64' do |host|
|
99
|
+
host.vm.box = 'centos/stream8'
|
100
|
+
host.vm.box_url = 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20231127.0.x86_64.vagrant-virtualbox.box'
|
101
|
+
host.vm.synced_folder '.', '/vagrant'
|
102
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
103
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
104
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
105
|
+
# commented to allow manual retrieval of facts
|
106
|
+
# host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
96
107
|
host.vbguest.auto_update = true
|
97
108
|
end
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
host.vm.
|
105
|
-
host.vm.
|
106
|
-
|
107
|
-
|
109
|
+
# images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
|
110
|
+
# can be imported with `vagrant box add --name centos/stream9 $url` you can also
|
111
|
+
# use the host.vm.box_url below
|
112
|
+
# facts land as centos-9-x86_64.facts
|
113
|
+
#
|
114
|
+
config.vm.define 'centos-stream9-x86_64' do |host|
|
115
|
+
host.vm.box = 'centos/stream9'
|
116
|
+
host.vm.box_url = 'https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20231204.0.x86_64.vagrant-virtualbox.box'
|
117
|
+
# centos packages their box with synced folders set to rsync (presumably
|
118
|
+
# since vboxsf is not built in their kernel)
|
119
|
+
# If the version of the kernel-headers/kernel-devel that are available
|
120
|
+
# for download are newer than what is on the box then guest additions will
|
121
|
+
# not build. If the stars align, then you can set `type: 'virtualbox'`
|
122
|
+
# for synced_folder and maybe it will work, otherwise, it is a manual
|
123
|
+
# effort to rsync the fact files back
|
124
|
+
# host.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
|
125
|
+
host.vm.synced_folder '.', '/vagrant'
|
126
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
127
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
128
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
129
|
+
# commented to allow manual retrieval of the facts
|
130
|
+
# host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
131
|
+
# this will install the guest additions which requires `vagrant plugin install vagrant-vbguest`
|
108
132
|
host.vbguest.auto_update = true
|
109
133
|
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
|
-
|
153
|
-
|
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
|
-
|
134
|
+
config.vm.define 'almalinux-8-x86_64' do |host|
|
135
|
+
host.vm.box = 'almalinux/8'
|
136
|
+
host.vm.synced_folder '.', '/vagrant'
|
137
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
138
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
139
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
140
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
141
|
+
end
|
142
|
+
config.vm.define 'almalinux-9-x86_64' do |host|
|
143
|
+
host.vm.box = 'almalinux/9'
|
144
|
+
host.vm.synced_folder '.', '/vagrant'
|
145
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
146
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
147
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
148
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
149
|
+
end
|
150
|
+
config.vm.define 'rockylinux-8-x86_64' do |host|
|
151
|
+
host.vm.box = 'rockylinux/8'
|
152
|
+
host.vm.synced_folder '.', '/vagrant'
|
153
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
154
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
155
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
156
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
157
|
+
end
|
158
|
+
config.vm.define 'rockylinux-9-x86_64' do |host|
|
159
|
+
host.vm.box = 'rockylinux/9'
|
160
|
+
host.vm.synced_folder '.', '/vagrant'
|
161
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
162
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
163
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
164
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
165
|
+
end
|
166
|
+
config.vm.define 'redhat-8-x86_64' do |host|
|
167
|
+
host.vm.box = 'generic/rhel8'
|
168
|
+
host.vm.synced_folder '.', '/vagrant'
|
169
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
170
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
171
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
172
|
+
end
|
173
|
+
config.vm.define 'archlinux-x86_64' do |host|
|
174
|
+
host.vm.box = 'archlinux/archlinux'
|
175
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
176
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
177
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
178
|
+
end
|
179
|
+
config.vm.define 'sles-11sp1-x86_64' do |host|
|
180
|
+
host.vm.box = 'suse/sles11sp3'
|
181
|
+
host.vm.network 'private_network', ip: '192.168.123.2'
|
182
|
+
host.vm.synced_folder '.', '/vagrant', type: 'nfs'
|
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 -h now'
|
186
|
+
end
|
187
|
+
config.vm.define 'sles-12sp1-x86_64' do |host|
|
188
|
+
host.vm.box = 'idar/sles12sp3'
|
189
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
190
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
191
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
192
|
+
end
|
193
|
+
config.vm.define 'sles-15-x86_64' do |host|
|
194
|
+
host.vm.box = 'trueability/sles-15-sp1'
|
195
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
196
|
+
host.vm.provision 'shell', inline: [
|
197
|
+
'SUSEConnect -p sle-module-desktop-applications/15.1/x86_64',
|
198
|
+
'SUSEConnect -p sle-module-legacy/15.1/x86_64',
|
199
|
+
'zypper install --no-confirm net-tools-deprecated',
|
176
200
|
].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
|
-
|
215
|
-
host.
|
216
|
-
host.vm.provision
|
217
|
-
host.vm.provision
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
host.vm.
|
223
|
-
host.vm.
|
224
|
-
host.vm.provision
|
225
|
-
host.vm.provision
|
226
|
-
|
227
|
-
|
228
|
-
|
201
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
202
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
203
|
+
end
|
204
|
+
config.vm.define 'opensuse-42.3-x86_64' do |host|
|
205
|
+
host.vm.box = 'opensuse/openSUSE-42.3-x86_64'
|
206
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
207
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
208
|
+
end
|
209
|
+
config.vm.define 'opensuse-Tumbleweed-x86_64' do |host|
|
210
|
+
host.vm.box = 'opensuse/openSUSE-Tumbleweed-x86_64'
|
211
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
212
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
213
|
+
end
|
214
|
+
config.vm.define 'opensuse-15.4-x86_64' do |host|
|
215
|
+
host.vm.box = 'opensuse/Leap-15.4.x86_64'
|
216
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
217
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
218
|
+
end
|
219
|
+
config.vm.define 'freebsd-11-x86_64' do |host|
|
220
|
+
host.vm.box = 'bento/freebsd-11'
|
221
|
+
host.vm.synced_folder '.', '/vagrant'
|
222
|
+
host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
|
223
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
224
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
225
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -p now'
|
226
|
+
end
|
227
|
+
config.vm.define 'freebsd-12-x86_64' do |host|
|
228
|
+
host.vm.box = 'bento/freebsd-12'
|
229
|
+
host.vm.synced_folder '.', '/vagrant'
|
230
|
+
host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
|
231
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
232
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
233
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -p now'
|
234
|
+
end
|
235
|
+
config.vm.define 'freebsd-13-x86_64' do |host|
|
236
|
+
host.vm.box = 'bento/freebsd-13'
|
237
|
+
host.vm.synced_folder '.', '/vagrant'
|
238
|
+
# this was needed for the 202309.08.0 release of this box
|
239
|
+
host.ssh.shell = '/bin/sh'
|
240
|
+
host.vm.provision 'shell', inline: 'pkg install -y bash devel/ruby-gems'
|
241
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
242
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
243
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -p now'
|
244
|
+
end
|
245
|
+
config.vm.define 'gentoo-x86_64' do |host|
|
246
|
+
host.vm.box = 'generic/gentoo'
|
247
|
+
host.vm.synced_folder '.', '/vagrant'
|
248
|
+
host.vm.provision 'shell', inline: 'emerge-webrsync && emerge app-crypt/gnupg net-misc/curl'
|
249
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
250
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
251
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
252
|
+
end
|
253
|
+
config.vm.define 'solaris-11-x86_64' do |host|
|
254
|
+
host.vm.box = 'http://benden.us/vagrant/solaris-11.2.box'
|
229
255
|
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 =
|
256
|
+
host.vm.provision 'shell', inline: 'pkg info gcc || pkg install gcc'
|
257
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
258
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
259
|
+
host.vm.provision 'shell', inline: "/sbin/shutdown -i S -g0 -y 'Bye' &"
|
260
|
+
end
|
261
|
+
config.vm.define 'openbsd-6.4-x86_64' do |host|
|
262
|
+
host.vm.box = 'generic/openbsd6'
|
263
|
+
host.vm.box_version = '~> 1.9.18'
|
238
264
|
host.vm.network :private_network, ip: '10.0.0.2'
|
239
|
-
host.vm.synced_folder
|
240
|
-
host.vm.provision
|
265
|
+
host.vm.synced_folder '.', '/vagrant', nfs: true
|
266
|
+
host.vm.provision 'shell', inline: <<-SCRIPT.gsub(/^ +/, '')
|
241
267
|
. ~/.profile
|
242
268
|
|
243
269
|
pkg_info -qe 'bash->=0' || pkg_add bash
|
@@ -245,100 +271,118 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
245
271
|
ln -sf /usr/local/bin/gem24 /usr/bin/gem
|
246
272
|
ln -sf /usr/local/bin/ruby24 /usr/bin/ruby
|
247
273
|
SCRIPT
|
248
|
-
host.vm.provision
|
249
|
-
host.vm.provision
|
250
|
-
host.vm.provision
|
274
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
275
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
276
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
251
277
|
end
|
252
|
-
config.vm.define
|
253
|
-
host.vm.box =
|
278
|
+
config.vm.define 'osx-10.10-x86_64' do |host|
|
279
|
+
host.vm.box = 'AndrewDryga/vagrant-box-osx'
|
254
280
|
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
|
281
|
+
host.vm.synced_folder '.', '/vagrant', nfs: true
|
282
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
283
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
284
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
259
285
|
end
|
260
|
-
config.vm.define
|
286
|
+
config.vm.define 'windows-7-x86_64' do |host|
|
261
287
|
host.vm.hostname = 'foo'
|
262
|
-
host.vm.box =
|
263
|
-
host.vm.communicator =
|
288
|
+
host.vm.box = 'ferventcoder/win7pro-x64-nocm-lite'
|
289
|
+
host.vm.communicator = 'winrm'
|
264
290
|
host.vm.guest = :windows
|
265
|
-
host.vm.network :private_network, :
|
266
|
-
host.vm.network
|
291
|
+
host.vm.network :private_network, auto_network: true
|
292
|
+
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
267
293
|
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.'
|
294
|
+
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
295
|
+
# host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
|
296
|
+
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|
297
|
+
# 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
298
|
end
|
273
|
-
config.vm.define
|
299
|
+
config.vm.define 'windows-2012r2-core-x86_64' do |host|
|
274
300
|
host.vm.hostname = 'foo'
|
275
|
-
host.vm.box =
|
276
|
-
host.vm.communicator =
|
301
|
+
host.vm.box = 'windows-2012r2-core-x86_64'
|
302
|
+
host.vm.communicator = 'winrm'
|
277
303
|
host.vm.guest = :windows
|
278
|
-
host.vm.network :private_network, :
|
279
|
-
host.vm.network
|
304
|
+
host.vm.network :private_network, auto_network: true
|
305
|
+
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
280
306
|
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
|
307
|
+
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
308
|
+
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|
309
|
+
end
|
310
|
+
config.vm.define 'amazonlinux-2-x86_64' do |host|
|
311
|
+
host.vm.box = 'bento/amazonlinux-2'
|
312
|
+
host.vm.provision 'shell', inline: 'yum -y install gcc glibc-devel'
|
313
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
314
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
315
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
316
|
+
end
|
317
|
+
config.vm.define 'fedora-32-x86_64' do |host|
|
318
|
+
host.vm.box = 'generic/fedora32'
|
319
|
+
host.vm.synced_folder '.', '/vagrant'
|
320
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
321
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
322
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
323
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
324
|
+
end
|
325
|
+
config.vm.define 'fedora-33-x86_64' do |host|
|
326
|
+
host.vm.box = 'generic/fedora33'
|
327
|
+
host.vm.synced_folder '.', '/vagrant'
|
302
328
|
# 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
|
329
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools ruby ruby-devel facter'
|
330
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
331
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
332
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
333
|
+
end
|
334
|
+
config.vm.define 'fedora-34-x86_64' do |host|
|
335
|
+
host.vm.box = 'generic/fedora34'
|
336
|
+
host.vm.synced_folder '.', '/vagrant'
|
337
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
338
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
339
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
340
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
341
|
+
end
|
342
|
+
config.vm.define 'fedora-35-x86_64' do |host|
|
343
|
+
host.vm.box = 'generic/fedora35'
|
344
|
+
host.vm.synced_folder '.', '/vagrant'
|
319
345
|
# 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
|
346
|
+
host.vm.provision 'shell', inline: 'dnf -y module install ruby:2.7/default'
|
347
|
+
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools facter ruby-devel'
|
348
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
349
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
350
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
351
|
+
end
|
352
|
+
config.vm.define 'fedora-36-x86_64' do |host|
|
353
|
+
host.vm.box = 'generic/fedora36'
|
354
|
+
host.vm.synced_folder '.', '/vagrant'
|
329
355
|
# 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
|
356
|
+
host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
|
357
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
358
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
359
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
360
|
+
end
|
361
|
+
config.vm.define 'fedora-37-x86_64' do |host|
|
362
|
+
host.vm.box = 'generic/fedora37'
|
363
|
+
host.vm.synced_folder '.', '/vagrant'
|
338
364
|
# 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
|
365
|
+
host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
|
366
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
367
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
368
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
369
|
+
end
|
370
|
+
config.vm.define 'fedora-38-x86_64' do |host|
|
371
|
+
host.vm.box = 'generic/fedora38'
|
372
|
+
host.vm.synced_folder '.', '/vagrant'
|
373
|
+
# there's no official support for fedora 38, so we need facter from Fedora
|
374
|
+
host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
|
375
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
376
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
377
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
378
|
+
end
|
379
|
+
config.vm.define 'fedora-39-x86_64' do |host|
|
380
|
+
host.vm.box = 'generic/fedora39'
|
381
|
+
host.vm.synced_folder '.', '/vagrant'
|
382
|
+
# there's no official support for fedora 39, so we need facter from Fedora
|
383
|
+
host.vm.provision 'shell', inline: 'dnf -y install facter ruby ruby-devel wget make gcc net-tools'
|
384
|
+
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
385
|
+
host.vm.provision 'shell', path: 'get_facts.sh'
|
386
|
+
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
343
387
|
end
|
344
388
|
end
|