-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvagrantfile
More file actions
26 lines (22 loc) · 835 Bytes
/
vagrantfile
File metadata and controls
26 lines (22 loc) · 835 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
vms = {
'zabbix-server' => {'memory' => '2048', 'cpus' => 2, 'ip' => '10', 'box' => 'debian/bookworm64'},
'mantis' => {'memory' => '1024', 'cpus' => 1, 'ip' => '12', 'box' => 'debian/bookworm64'},
# 'drax' => {'memory' => '1024', 'cpus' => 1, 'ip' => '11', 'box' => 'generic/rocky9'},
}
Vagrant.configure('2') do |config|
config.vm.synced_folder "./ansible", "/ansible"
config.vm.provision "shell", path: "install_run_ansible.sh"
vms.each do |name, conf|
config.vm.define "#{name}" do |parm|
parm.vm.box = conf['box']
parm.vm.hostname = "#{name}"
parm.vm.network 'private_network', ip: "192.168.56.#{conf['ip']}"
parm.vm.provider 'virtualbox' do |vb|
vb.memory = conf['memory']
vb.cpus = conf['cpus']
end
end
end
end