forked from zarf-dev/zarf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
52 lines (39 loc) · 1.52 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
vb.check_guest_additions = false
vb.cpus = 6
vb.memory = 8192
end
config.vm.disk :disk, size: "20GB", primary: true
config.vm.define "rhel7" do |target|
target.vm.box = "generic/rhel7"
end
config.vm.define "rhel8" do |target|
target.vm.box = "generic/rhel8"
end
config.vm.define "centos7" do |target|
target.vm.box = "boxomatic/centos-7"
end
config.vm.define "centos8" do |target|
target.vm.box = "boxomatic/centos-8"
end
config.vm.define "ubuntu" do |target|
target.vm.box = "boxomatic/ubuntu-20.04"
end
config.vm.define "debian" do |target|
target.vm.box = "boxomatic/debian-11"
end
config.vm.define "rocky" do |target|
target.vm.box = "boxomatic/rocky-8.4"
end
config.vm.hostname = "zarf-test"
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.synced_folder 'build', '/opt/zarf', SharedFoldersEnableSymlinksCreate: false
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 443, host: 8443
config.ssh.insert_key = false
config.vm.provision "shell", inline: <<-SHELL
# Airgap images please
echo "0.0.0.0 registry.hub.docker.com hub.docker.com charts.helm.sh repo1.dso.mil github.com registry.dso.mil registry1.dso.mil docker.io index.docker.io auth.docker.io registry-1.docker.io dseasb33srnrn.cloudfront.net production.cloudflare.docker.com registry.opensource.zalan.do" >> /etc/hosts
SHELL
end