-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
83 lines (76 loc) · 4.24 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Vagrant.configure(2) do |config|
config.vm.box_check_update = false
# vbox template for all vagrant instances
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.cpus = 2
end
#OK WORKING
config.vm.define "vg-nagios-01" do |k8scluster|
k8scluster.vm.box = "bento/centos-stream-8"
k8scluster.vm.hostname = "vg-nagios-01"
#bridged network, DHCP disabled,manual IP assignment
# k8scluster.vm.network "public_network", ip: "10.35.8.70"
# k8scluster.vm.boot_timeout = 31999 # 30 minutes
k8scluster.vm.network "private_network", ip: "192.168.50.15"
#Disabling the default /vagrant share can be done as follows:
k8scluster.vm.synced_folder ".", "/vagrant", disabled: true
k8scluster.vm.provider "virtualbox" do |vb|
vb.name = "vbox-nagios-01"
vb.memory = "4096"
end
k8scluster.vm.provision :shell, path: "provisioning/bootstrap.sh"
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios.sh"
# NOT OK WITH bento/centos-stream-8 image
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios-4-4-7.sh"
end
#OK WORKING
config.vm.define "vg-nagios-02" do |k8scluster|
k8scluster.vm.box = "centos/stream8"
k8scluster.vm.hostname = "vg-nagios-02"
#bridged network, DHCP disabled,manual IP assignment
k8scluster.vm.network "public_network", ip: "10.35.8.71"
# k8scluster.vm.network "private_network", ip: "192.168.50.16"
#Disabling the default /vagrant share can be done as follows:
k8scluster.vm.synced_folder ".", "/vagrant", disabled: true
k8scluster.vm.provider "virtualbox" do |vb|
vb.name = "vbox-nagios-02"
vb.memory = "4096" #min 2GB nagios 4.4.7
end
k8scluster.vm.provision :shell, path: "provisioning/bootstrap.sh"
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios.sh"
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios-4-4-7.sh"
end
#OK WORKING
config.vm.define "vg-nagios-03" do |k8scluster|
k8scluster.vm.box = "centos/7"
k8scluster.vm.hostname = "vg-nagios-03"
#bridged network, DHCP disabled,manual IP assignment
k8scluster.vm.network "public_network", ip: "10.35.8.72"
# k8scluster.vm.network "private_network", ip: "192.168.50.17"
#Disabling the default /vagrant share can be done as follows:
k8scluster.vm.synced_folder ".", "/vagrant", disabled: true
k8scluster.vm.provider "virtualbox" do |vb|
vb.name = "vbox-nagios-03"
vb.memory = "1024"
end
k8scluster.vm.provision :shell, path: "provisioning/bootstrap.sh"
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios.sh"
# k8scluster.vm.provision :shell, path: "scripts/deploy-centos-nagios-4-4-7.sh"
end
#NOT WORKING
config.vm.define "vg-nagios-04" do |k8scluster|
k8scluster.vm.box = "bento/fedora-latest"
k8scluster.vm.hostname = "vg-nagios-04"
k8scluster.vm.network "private_network", ip: "192.168.50.18"
#Disabling the default /vagrant share can be done as follows:
k8scluster.vm.synced_folder ".", "/vagrant", disabled: true
k8scluster.vm.provider "virtualbox" do |vb|
vb.name = "vbox-nagios-04"
vb.memory = "1024"
end
k8scluster.vm.provision :shell, path: "provisioning/bootstrap.sh"
k8scluster.vm.provision :shell, path: "scripts/deploy-centos-stream-nagios.sh"
end
end