-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
52 lines (45 loc) · 2.13 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.memory = 512
end
config.vm.define "inetRouter" do |inetRouter|
inetRouter.vm.box = "centos/7"
inetRouter.vm.hostname = "inetRouter"
inetRouter.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "link1"
inetRouter.vm.network :private_network, adapter: 3, auto_config: false, virtualbox__intnet: "link2"
end
config.vm.define "centralRouter" do |centralRouter|
centralRouter.vm.box = "centos/7"
centralRouter.vm.hostname = "centralRouter"
centralRouter.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "link1"
centralRouter.vm.network :private_network, adapter: 3, auto_config: false, virtualbox__intnet: "link2"
centralRouter.vm.network :private_network, adapter: 4, auto_config: false, virtualbox__intnet: "localnet"
end
###-----------hosts-------------------------------------------------------------------
config.vm.define "testServer1" do |testServer1|
testServer1.vm.box = "centos/7"
testServer1.vm.hostname = "TestServer1"
testServer1.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "localnet"
end
config.vm.define "testServer2" do |testServer2|
testServer2.vm.box = "centos/7"
testServer2.vm.hostname = "TestServer2"
testServer2.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "localnet"
end
config.vm.define "testClient1" do |testClient1|
testClient1.vm.box = "centos/7"
testClient1.vm.hostname = "TestClient1"
testClient1.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "localnet"
end
config.vm.define "testClient2" do |testClient2|
testClient2.vm.box = "centos/7"
testClient2.vm.hostname = "testClient2"
testClient2.vm.network :private_network, adapter: 2, auto_config: false, virtualbox__intnet: "localnet"
end
config.vm.provision "ansible" do |ansible|
ansible.verbose = "vvv"
ansible.playbook = "playbooks/network_provision.yml"
end
end