-
Notifications
You must be signed in to change notification settings - Fork 8
/
Vagrantfile
34 lines (26 loc) · 1.09 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
Vagrant.configure(2) do |config|
config.vm.define "puppet", primary: true do |puppet|
puppet.vm.hostname = "puppet"
puppet.vm.box = "puppetlabs/centos-7.0-64-puppet"
puppet.vm.box_version = "1.0.2"
puppet.vm.network "private_network", ip: "10.13.37.2"
puppet.vm.network :forwarded_port, guest: 8080, host: 8080, id: "puppetdb"
puppet.vm.synced_folder "code", "/etc/puppetlabs/code"
puppet.vm.provider :virtualbox do |vb|
vb.memory = "3072"
end
puppet.vm.provision "shell", path: "puppetupgrade.sh"
puppet.vm.provision "puppet" do |puppetapply|
puppetapply.environment = "production"
puppetapply.environment_path = ["vm", "/etc/puppetlabs/code/environments"]
end
end
config.vm.define "node1", primary: true do |node1|
node1.vm.hostname = "node1"
node1.vm.box = "puppetlabs/centos-7.0-64-puppet"
node1.vm.box_version = "1.0.2"
node1.vm.network "private_network", ip: "10.13.37.3"
node1.vm.provision "shell", path: "puppetupgrade.sh"
node1.vm.provision "shell", inline: "/bin/systemctl start puppet.service"
end
end