-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
39 lines (33 loc) · 1.04 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
35
36
37
38
39
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.define "gluster1" do |gluster1|
gluster1.vm.box = "precise64"
gluster1.vm.network :private_network, ip: "192.168.33.10"
gluster1.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "."
chef.roles_path = "roles"
chef.add_role "opsworks_server"
end
end
config.vm.define "gluster2" do |gluster2|
gluster2.vm.box = "precise64"
gluster2.vm.network :private_network, ip: "192.168.33.11"
gluster2.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "."
chef.roles_path = "roles"
chef.add_role "opsworks_server"
end
end
config.vm.define "client" do |client|
client.vm.box = "precise64"
client.vm.network :private_network, ip: "192.168.33.12"
client.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "."
chef.roles_path = "roles"
chef.add_role "opsworks_client"
end
end
end
# vim:set ts=4 sw=4: