facterdb 1.21.0 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) 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 +28 -5
  5. data/.rubocop.yml +5 -0
  6. data/.rubocop_todo.yml +219 -0
  7. data/CHANGELOG.md +30 -0
  8. data/Gemfile +3 -6
  9. data/README.md +125 -122
  10. data/Rakefile +56 -51
  11. data/facterdb.gemspec +7 -7
  12. data/facts/3.0/ubuntu-15.10-i386.facts +1 -0
  13. data/facts/3.0/ubuntu-15.10-x86_64.facts +1 -0
  14. data/facts/3.10/ubuntu-18.04-aarch64.facts +1 -0
  15. data/facts/3.6/pcs-6-x86_64.facts +1 -0
  16. data/facts/4.0/centos-7-x86_64.facts +1 -0
  17. data/facts/4.0/centos-8-x86_64.facts +512 -0
  18. data/facts/4.0/debian-10-x86_64.facts +1 -0
  19. data/facts/4.0/oraclelinux-7-x86_64.facts +1 -0
  20. data/facts/4.0/redhat-7-x86_64.facts +1 -0
  21. data/facts/4.0/scientific-7-x86_64.facts +1 -0
  22. data/facts/4.1/centos-7-x86_64.facts +582 -0
  23. data/facts/4.1/centos-8-x86_64.facts +514 -0
  24. data/facts/4.1/debian-10-x86_64.facts +519 -0
  25. data/facts/4.2/amazon-2022-x86_64.facts +1 -0
  26. data/facts/4.2/centos-9-x86_64.facts +1 -0
  27. data/facts/4.2/debian-12-i386.facts +593 -0
  28. data/facts/4.2/debian-12-x86_64.facts +593 -0
  29. data/facts/4.2/fedora-38-x86_64.facts +656 -0
  30. data/facts/4.2/fedora-39-x86_64.facts +577 -0
  31. data/facts/4.2/oraclelinux-9-x86_64.facts +1 -0
  32. data/facts/4.2/popos-21.10-x86_64.facts +1 -0
  33. data/facts/4.3/almalinux-8-x86_64.facts +551 -0
  34. data/facts/4.3/almalinux-9-x86_64.facts +525 -0
  35. data/facts/4.3/archlinux-x86_64.facts +548 -0
  36. data/facts/4.3/centos-7-x86_64.facts +592 -0
  37. data/facts/4.3/centos-8-x86_64.facts +521 -0
  38. data/facts/4.3/centos-9-x86_64.facts +565 -0
  39. data/facts/4.3/debian-10-x86_64.facts +526 -0
  40. data/facts/4.3/debian-11-x86_64.facts +521 -0
  41. data/facts/4.3/debian-12-i386.facts +593 -0
  42. data/facts/4.3/debian-12-x86_64.facts +593 -0
  43. data/facts/4.3/fedora-36-x86_64.facts +507 -0
  44. data/facts/4.3/fedora-37-x86_64.facts +512 -0
  45. data/facts/4.3/fedora-38-x86_64.facts +656 -0
  46. data/facts/4.3/fedora-39-x86_64.facts +577 -0
  47. data/facts/4.3/freebsd-13-x86_64.facts +455 -0
  48. data/facts/4.3/opensuse-15-x86_64.facts +533 -0
  49. data/facts/4.3/redhat-8-x86_64.facts +526 -0
  50. data/facts/4.3/rocky-8-x86_64.facts +545 -0
  51. data/facts/4.3/rocky-9-x86_64.facts +626 -0
  52. data/facts/4.3/sles-12-x86_64.facts +908 -0
  53. data/facts/4.3/ubuntu-18.04-x86_64.facts +557 -0
  54. data/facts/4.3/ubuntu-20.04-x86_64.facts +647 -0
  55. data/facts/4.3/ubuntu-22.04-x86_64.facts +655 -0
  56. data/facts/4.3/windows-10-x86_64.facts +182 -0
  57. data/facts/4.3/windows-11-x86_64.facts +182 -0
  58. data/facts/4.3/windows-2012 r2-x86_64.facts +179 -0
  59. data/facts/4.3/windows-2012-x86_64.facts +179 -0
  60. data/facts/4.3/windows-2016-core-x86_64.facts +181 -0
  61. data/facts/4.3/windows-2016-x86_64.facts +181 -0
  62. data/facts/4.3/windows-2019-core-x86_64.facts +181 -0
  63. data/facts/4.3/windows-2019-x86_64.facts +181 -0
  64. data/facts/4.3/windows-2022-core-x86_64.facts +183 -0
  65. data/facts/4.3/windows-2022-x86_64.facts +183 -0
  66. data/facts/4.4/almalinux-8-x86_64.facts +551 -0
  67. data/facts/4.4/almalinux-9-x86_64.facts +525 -0
  68. data/facts/4.4/archlinux-x86_64.facts +548 -0
  69. data/facts/4.4/centos-7-x86_64.facts +592 -0
  70. data/facts/4.4/centos-8-x86_64.facts +521 -0
  71. data/facts/4.4/centos-9-x86_64.facts +565 -0
  72. data/facts/4.4/debian-10-x86_64.facts +526 -0
  73. data/facts/4.4/debian-11-x86_64.facts +521 -0
  74. data/facts/4.4/debian-12-i386.facts +593 -0
  75. data/facts/4.4/debian-12-x86_64.facts +593 -0
  76. data/facts/4.4/fedora-36-x86_64.facts +507 -0
  77. data/facts/4.4/fedora-37-x86_64.facts +512 -0
  78. data/facts/4.4/fedora-38-x86_64.facts +656 -0
  79. data/facts/4.4/fedora-39-x86_64.facts +577 -0
  80. data/facts/4.4/freebsd-13-x86_64.facts +473 -0
  81. data/facts/4.4/opensuse-15-x86_64.facts +514 -0
  82. data/facts/4.4/redhat-8-x86_64.facts +526 -0
  83. data/facts/4.4/rocky-8-x86_64.facts +545 -0
  84. data/facts/4.4/rocky-9-x86_64.facts +626 -0
  85. data/facts/4.4/sles-12-x86_64.facts +908 -0
  86. data/facts/4.4/ubuntu-18.04-x86_64.facts +557 -0
  87. data/facts/4.4/ubuntu-20.04-x86_64.facts +647 -0
  88. data/facts/4.4/ubuntu-22.04-x86_64.facts +655 -0
  89. data/facts/4.4/windows-10-x86_64.facts +182 -0
  90. data/facts/4.4/windows-11-x86_64.facts +186 -0
  91. data/facts/4.4/windows-2012 r2-x86_64.facts +179 -0
  92. data/facts/4.4/windows-2012-x86_64.facts +179 -0
  93. data/facts/4.4/windows-2016-core-x86_64.facts +181 -0
  94. data/facts/4.4/windows-2016-x86_64.facts +181 -0
  95. data/facts/4.4/windows-2019-core-x86_64.facts +181 -0
  96. data/facts/4.4/windows-2019-x86_64.facts +181 -0
  97. data/facts/4.4/windows-2022-core-x86_64.facts +183 -0
  98. data/facts/4.4/windows-2022-x86_64.facts +183 -0
  99. data/facts/4.5/almalinux-8-x86_64.facts +537 -0
  100. data/facts/4.5/almalinux-9-x86_64.facts +533 -0
  101. data/facts/4.5/amazon-2-x86_64.facts +526 -0
  102. data/facts/4.5/archlinux-x86_64.facts +554 -0
  103. data/facts/4.5/centos-7-x86_64.facts +602 -0
  104. data/facts/4.5/centos-8-x86_64.facts +527 -0
  105. data/facts/4.5/centos-9-x86_64.facts +573 -0
  106. data/facts/4.5/debian-10-x86_64.facts +532 -0
  107. data/facts/4.5/debian-11-x86_64.facts +529 -0
  108. data/facts/4.5/debian-12-x86_64.facts +595 -0
  109. data/facts/4.5/fedora-37-x86_64.facts +518 -0
  110. data/facts/4.5/fedora-38-x86_64.facts +662 -0
  111. data/facts/4.5/fedora-39-x86_64.facts +583 -0
  112. data/facts/4.5/freebsd-12-x86_64.facts +456 -0
  113. data/facts/4.5/freebsd-13-x86_64.facts +455 -0
  114. data/facts/4.5/gentoo-2-x86_64.facts +493 -0
  115. data/facts/4.5/opensuse-15-x86_64.facts +541 -0
  116. data/facts/4.5/redhat-8-x86_64.facts +532 -0
  117. data/facts/4.5/rocky-8-x86_64.facts +551 -0
  118. data/facts/4.5/rocky-9-x86_64.facts +632 -0
  119. data/facts/4.5/ubuntu-18.04-x86_64.facts +563 -0
  120. data/facts/4.5/ubuntu-20.04-x86_64.facts +653 -0
  121. data/facts/4.5/ubuntu-22.04-x86_64.facts +661 -0
  122. data/facts/Gemfile +3 -7
  123. data/facts/Vagrantfile +345 -301
  124. data/facts/get_facts.sh +67 -9
  125. data/lib/facterdb/bin.rb +1 -1
  126. data/lib/facterdb/version.rb +1 -1
  127. data/lib/facterdb.rb +40 -32
  128. data/rakelib/rhel_alts.rake +8 -14
  129. data/spec/{facterdb_spec.rb → facter_db_spec.rb} +37 -37
  130. data/spec/facts_spec.rb +20 -7
  131. 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 = "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
- # the ssh bits on this did not work right, most of the steps for
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 "ubuntu-22.10-x86_64" do |host|
66
- host.vm.box = "ubuntu/kinetic64"
67
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
68
- host.vm.provision "shell", path: "get_facts.sh"
69
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
70
- end
71
- config.vm.define "centos-7-x86_64" do |host|
72
- host.vm.box = "centos/7"
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 ".", "/vagrant", :nfs => true
75
- host.vm.provision "shell", inline: "yum -y install ruby-devel gcc wget 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"
79
- end
80
- config.vm.define "centos-8-x86_64" do |host|
81
- host.vm.box = "centos/8"
82
- host.vm.synced_folder ".", "/vagrant"
83
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
84
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
85
- host.vm.provision "shell", path: "get_facts.sh"
86
- 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'
87
93
  host.vbguest.auto_update = true
88
94
  end
89
- config.vm.define "centos-stream8-x86_64" do |host|
90
- host.vm.box = "centos/stream8"
91
- host.vm.synced_folder ".", "/vagrant"
92
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
93
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
94
- host.vm.provision "shell", path: "get_facts.sh"
95
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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
- # will work after https://www.centos.org/centos-stream/#tab-3 got updated
99
- # in the meantime images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
100
- # can be imported with vagrant box add --name centos/stream9 $url
101
- config.vm.define "centos-stream9-x86_64" do |host|
102
- host.vm.box = "centos/stream9"
103
- host.vm.synced_folder ".", "/vagrant"
104
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
105
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
106
- host.vm.provision "shell", path: "get_facts.sh"
107
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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 "almalinux-8-x86_64" do |host|
111
- host.vm.box = "almalinux/8"
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 "almalinux-9-x86_64" do |host|
119
- host.vm.box = "almalinux/9"
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 "rockylinux-8-x86_64" do |host|
127
- host.vm.box = "rockylinux/8"
128
- host.vm.synced_folder ".", "/vagrant"
129
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
130
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
131
- host.vm.provision "shell", path: "get_facts.sh"
132
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
133
- end
134
- config.vm.define "rockylinux-9-x86_64" do |host|
135
- host.vm.box = "rockylinux/9"
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 "redhat-8-x86_64" do |host|
143
- host.vm.box = "generic/rhel8"
144
- host.vm.synced_folder ".", "/vagrant"
145
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
146
- host.vm.provision "shell", path: "get_facts.sh"
147
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
148
- end
149
- config.vm.define "archlinux-x86_64" do |host|
150
- host.vm.box = "archlinux/archlinux"
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 "sles-11sp1-x86_64" do |host|
156
- host.vm.box = "suse/sles11sp3"
157
- host.vm.network "private_network", ip: "192.168.123.2"
158
- host.vm.synced_folder ".", "/vagrant", type: "nfs"
159
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
160
- host.vm.provision "shell", path: "get_facts.sh"
161
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
162
- end
163
- config.vm.define "sles-12sp1-x86_64" do |host|
164
- host.vm.box = "idar/sles12sp3"
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-15-x86_64" do |host|
170
- host.vm.box = "trueability/sles-15-sp1"
171
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
172
- host.vm.provision "shell", inline: [
173
- "SUSEConnect -p sle-module-desktop-applications/15.1/x86_64",
174
- "SUSEConnect -p sle-module-legacy/15.1/x86_64",
175
- "zypper install --no-confirm net-tools-deprecated",
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 "shell", path: "get_facts.sh"
178
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
179
- end
180
- config.vm.define "opensuse-42.3-x86_64" do |host|
181
- host.vm.box = "opensuse/openSUSE-42.3-x86_64"
182
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
183
- host.vm.provision "shell", path: "get_facts.sh"
184
- end
185
- config.vm.define "opensuse-Tumbleweed-x86_64" do |host|
186
- host.vm.box = "opensuse/openSUSE-Tumbleweed-x86_64"
187
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
188
- host.vm.provision "shell", path: "get_facts.sh"
189
- end
190
- config.vm.define "opensuse-15.4-x86_64" do |host|
191
- host.vm.box = "opensuse/Leap-15.4.x86_64"
192
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
193
- host.vm.provision "shell", path: "get_facts.sh"
194
- end
195
- config.vm.define "freebsd-11-x86_64" do |host|
196
- host.vm.box = "bento/freebsd-11"
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 "freebsd-12-x86_64" do |host|
204
- host.vm.box = "bento/freebsd-12"
205
- host.vm.synced_folder ".", "/vagrant"
206
- host.vm.provision "shell", inline: "pkg install -y bash devel/ruby-gems"
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 -p now"
210
- end
211
- config.vm.define "freebsd-13-x86_64" do |host|
212
- host.vm.box = "bento/freebsd-13"
213
- host.vm.synced_folder ".", "/vagrant"
214
- host.vm.provision "shell", inline: "pkg install -y bash devel/ruby-gems"
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 -p now"
218
- end
219
- config.vm.define "gentoo-x86_64" do |host|
220
- host.vm.box = "generic/gentoo"
221
- host.vm.synced_folder ".", "/vagrant"
222
- host.vm.provision "shell", inline: "emerge-webrsync && emerge app-crypt/gnupg net-misc/curl"
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 -h now"
226
- end
227
- config.vm.define "solaris-11-x86_64" do |host|
228
- host.vm.box = "http://benden.us/vagrant/solaris-11.2.box"
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 "shell", inline: "pkg info gcc || pkg install gcc"
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 -i S -g0 -y 'Bye' &"
234
- end
235
- config.vm.define "openbsd-6.4-x86_64" do |host|
236
- host.vm.box = "generic/openbsd6"
237
- host.vm.box_version = "~> 1.9.18"
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 ".", "/vagrant", :nfs => true
240
- host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
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 "file", source: "Gemfile", destination: "Gemfile"
249
- host.vm.provision "shell", path: "get_facts.sh"
250
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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 "osx-10.10-x86_64" do |host|
253
- host.vm.box = "AndrewDryga/vagrant-box-osx"
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 ".", "/vagrant", :nfs => true
256
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
257
- host.vm.provision "shell", path: "get_facts.sh"
258
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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 "windows-7-x86_64" do |host|
286
+ config.vm.define 'windows-7-x86_64' do |host|
261
287
  host.vm.hostname = 'foo'
262
- host.vm.box = "ferventcoder/win7pro-x64-nocm-lite"
263
- host.vm.communicator = "winrm"
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, :auto_network => true
266
- host.vm.network "forwarded_port", guest: 22, host: 2200, id: "ssh", auto_correct: true
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: "windows_get_facts.ps1"
269
- #host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
270
- host.vm.provision 'shell', inline: "shutdown -s -f -c \"Fact Collection Complete\""
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 "windows-2012r2-core-x86_64" do |host|
299
+ config.vm.define 'windows-2012r2-core-x86_64' do |host|
274
300
  host.vm.hostname = 'foo'
275
- host.vm.box = "windows-2012r2-core-x86_64"
276
- host.vm.communicator = "winrm"
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, :auto_network => true
279
- host.vm.network "forwarded_port", guest: 22, host: 2200, id: "ssh", auto_correct: true
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: "windows_get_facts.ps1"
282
- host.vm.provision 'shell', inline: "shutdown -s -f -c \"Fact Collection Complete\""
283
- end
284
- config.vm.define "amazonlinux-2-x86_64" do |host|
285
- host.vm.box = "bento/amazonlinux-2"
286
- host.vm.provision "shell", inline: "yum -y install gcc glibc-devel"
287
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
288
- host.vm.provision "shell", path: "get_facts.sh"
289
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
290
- end
291
- config.vm.define "fedora-32-x86_64" do |host|
292
- host.vm.box = "generic/fedora32"
293
- host.vm.synced_folder ".", "/vagrant"
294
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
295
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
296
- host.vm.provision "shell", path: "get_facts.sh"
297
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
298
- end
299
- config.vm.define "fedora-33-x86_64" do |host|
300
- host.vm.box = "generic/fedora33"
301
- host.vm.synced_folder ".", "/vagrant"
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 "shell", inline: "dnf -y install wget make gcc net-tools ruby ruby-devel facter"
304
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
305
- host.vm.provision "shell", path: "get_facts.sh"
306
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
307
- end
308
- config.vm.define "fedora-34-x86_64" do |host|
309
- host.vm.box = "generic/fedora34"
310
- host.vm.synced_folder ".", "/vagrant"
311
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
312
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
313
- host.vm.provision "shell", path: "get_facts.sh"
314
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
315
- end
316
- config.vm.define "fedora-35-x86_64" do |host|
317
- host.vm.box = "generic/fedora35"
318
- host.vm.synced_folder ".", "/vagrant"
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 "shell", inline: "dnf -y module install ruby:2.7/default"
321
- host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools facter ruby-devel"
322
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
323
- host.vm.provision "shell", path: "get_facts.sh"
324
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
325
- end
326
- config.vm.define "fedora-36-x86_64" do |host|
327
- host.vm.box = "generic/fedora36"
328
- host.vm.synced_folder ".", "/vagrant"
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 "shell", inline: "dnf -y install facter ruby ruby-devel wget make gcc net-tools"
331
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
332
- host.vm.provision "shell", path: "get_facts.sh"
333
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
334
- end
335
- config.vm.define "fedora-37-x86_64" do |host|
336
- host.vm.box = "generic/fedora37"
337
- host.vm.synced_folder ".", "/vagrant"
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 "shell", inline: "dnf -y install facter ruby ruby-devel wget make gcc net-tools"
340
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
341
- host.vm.provision "shell", path: "get_facts.sh"
342
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
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