forked from martezr/puppet-in-4-hours
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
23 lines (22 loc) · 884 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
Vagrant.configure("2") do |config|
config.vm.define "server" do |server|
server.vm.box = "bento/ubuntu-20.04"
server.vm.host_name = "puppet"
server.vm.network "private_network", ip: "192.168.56.4"
server.vm.provision "shell", inline: 'echo "192.168.56.4 puppet" >> /etc/hosts'
server.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
end
config.vm.define "agent" do |agent|
agent.vm.box = "bento/ubuntu-20.04"
agent.vm.host_name = "agent"
agent.vm.network "private_network", ip: "192.168.56.5"
agent.vm.provision "shell", inline: 'echo "192.168.56.4 puppet" >> /etc/hosts'
agent.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
end
end