-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
30 lines (26 loc) · 1004 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/centos7"
config.vm.define "db-server-1" do |dbserver|
dbserver.vm.hostname = "db-server-1.example.com"
dbserver.vm.provision "ansible" do |ansible|
ansible.playbook = "v2/site.yml"
ansible.config_file = "v2/ansible.cfg"
ansible.compatibility_mode = '2.0'
ansible.extra_vars = { 'gateway_ip' => '1.2.3.4',
'gateway_pass' => 'your_password' }
end
end
config.vm.define "db-server-2", autostart: false do |dbserver|
dbserver.vm.hostname = "db-server-2.example.com"
dbserver.vm.provision "ansible" do |ansible|
ansible.playbook = "v2/site.yml"
ansible.config_file = "v2/ansible.cfg"
ansible.compatibility_mode = '2.0'
ansible.extra_vars = { 'gateway_ip' => '1.2.3.4',
'gateway_pass' => 'your_password',
'install' => true }
end
end
end