-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
55 lines (52 loc) · 2.2 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Vagrant.configure("2") do |config|
config.vm.define :web do |web|
web.vm.box = "kakky0312/precise64"
web.vm.hostname = "web-svr"
web.vm.network "private_network", ip: "192.168.20.10", auto_config: true
web.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.cookbooks_path = ["./cookbooks", "./site-cookbooks"]
chef.roles_path = "./roles"
chef.data_bags_path = "./data_bags"
chef.add_role "web"
end
end
config.vm.define :db do |db|
db.vm.box = "kakky0312/precise64"
db.vm.hostname = "db-svr"
db.vm.network "private_network", ip: "192.168.30.10", auto_config: true
db.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.cookbooks_path = ["./cookbooks", "./site-cookbooks"]
chef.roles_path = "./roles"
chef.data_bags_path = "./data_bags"
chef.add_role "db"
end
end
config.vm.define :sw20 do |sw20|
sw20.vm.box = "svigneux/vyos-1.0.2-amd64"
sw20.vm.hostname = "sw20"
sw20.vm.network "private_network", ip: "192.168.10.10", auto_config: false
sw20.vm.network "private_network", ip: "192.168.20.254", auto_config: true
sw20.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.cookbooks_path = ["./cookbooks", "./site-cookbooks"]
chef.roles_path = "./roles"
chef.data_bags_path = "./data_bags"
chef.add_role "sw20"
end
end
config.vm.define :sw30 do |sw30|
sw30.vm.box = "svigneux/vyos-1.0.2-amd64"
sw30.vm.hostname = "sw30"
sw30.vm.network "private_network", ip: "192.168.10.20", auto_config: false
sw30.vm.network "private_network", ip: "192.168.30.254", auto_config: true
sw30.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.cookbooks_path = ["./cookbooks", "./site-cookbooks"]
chef.roles_path = "./roles"
chef.data_bags_path = "./data_bags"
chef.add_role "sw30"
end
end
end