-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
34 lines (30 loc) · 824 Bytes
/
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
nodes = [
{
hostname: 'playground-01',
ip: '192.168.10.100',
ram: 1024,
box: 'bento/ubuntu-16.04'
}
]
Vagrant.configure('2') do |config|
nodes.each do |node|
config.vm.define node[:hostname] do |host|
host.vm.box = node[:box]
host.vm.box_check_update = true
host.vm.hostname = node[:hostname]
host.vm.network :private_network, ip: node[:ip], netmask: '255.255.255.0'
host.vm.synced_folder './', '/vagrant'
host.vm.provision 'shell', path: './host-setup.sh'
memory ||= 512
host.vm.provider :virtualbox do |vb|
vb.name = node[:hostname]
vb.customize [
'modifyvm', :id,
'--memory', memory.to_s
]
end
end
config.hostmanager.enabled = true
config.hostmanager.manage_guest = true
end
end