-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathVagrantfile.master_slave
56 lines (54 loc) · 2.38 KB
/
Vagrantfile.master_slave
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
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.define :node1 do |node1_config|
node1_config.vm.box = "centos6.4-i386-minimal"
node1_config.vm.box_url = "https://dl.dropbox.com/u/2519414/centos6.4-i386-minimal.box"
node1_config.vm.hostname = "node1"
node1_config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "256", "--ioapic", "on" ]
end
node1_config.vm.network :private_network, ip: "192.168.70.2"
node1_config.vm.provision :puppet do |node1_puppet|
node1_puppet.pp_path = "/tmp/vagrant-puppet"
node1_puppet.manifests_path = "manifests"
node1_puppet.module_path = "modules"
node1_puppet.manifest_file = "master_slave.pp"
node1_puppet.options = "--verbose"
end
end
config.vm.define :node2 do |node2_config|
node2_config.vm.box = "centos6.4-i386-minimal"
node2_config.vm.box_url = "https://dl.dropbox.com/u/2519414/centos6.4-i386-minimal.box"
node2_config.vm.hostname = "node2"
node2_config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "256", "--ioapic", "on" ]
end
node2_config.vm.network :private_network, ip: "192.168.70.3"
node2_config.vm.provision :puppet do |node2_puppet|
node2_puppet.pp_path = "/tmp/vagrant-puppet"
node2_puppet.manifests_path = "manifests"
node2_puppet.module_path = "modules"
node2_puppet.manifest_file = "master_slave.pp"
node2_puppet.options = "--verbose"
end
end
config.vm.define :node3 do |node3_config|
node3_config.vm.box = "centos6.4-i386-minimal"
node3_config.vm.box_url = "https://dl.dropbox.com/u/2519414/centos6.4-i386-minimal.box"
node3_config.vm.hostname = "node3"
node3_config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "256", "--ioapic", "on" ]
end
node3_config.vm.network :private_network, ip: "192.168.70.4"
node3_config.vm.provision :puppet do |node3_puppet|
node3_puppet.pp_path = "/tmp/vagrant-puppet"
node3_puppet.manifests_path = "manifests"
node3_puppet.module_path = "modules"
node3_puppet.manifest_file = "master_slave.pp"
node3_puppet.options = "--verbose"
end
end
end