-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
49 lines (34 loc) · 1.17 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.define "ns01" do |ns01|
ns01.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: "dns"
ns01.vm.hostname = "ns01"
end
config.vm.define "ns02" do |ns02|
ns02.vm.network "private_network", ip: "192.168.50.11", virtualbox__intnet: "dns"
ns02.vm.hostname = "ns02"
end
config.vm.define "client" do |client|
client.vm.network "private_network", ip: "192.168.50.15", virtualbox__intnet: "dns"
client.vm.hostname = "client"
end
config.vm.define "client2" do |client|
client.vm.network "private_network", ip: "192.168.50.16", virtualbox__intnet: "dns"
client.vm.hostname = "client2"
end
config.vm.provision "setup", type: "ansible" do |ansible|
# ansible.verbose = "vvv"
ansible.playbook = "provisioning/playbook.yml"
ansible.become = "true"
end
config.vm.provision "test", type: "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "provisioning/test.yml"
ansible.become = "true"
end
end