forked from StreisandEffect/streisand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
48 lines (42 loc) · 1.49 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
# See documentation/testing.md for instructions on using this Vagrantfile
#
Vagrant.require_version ">= 1.9.0"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.define "streisand-host", primary: true do |streisand|
streisand.vm.hostname = "streisand-host"
streisand.vm.network :private_network, ip: "10.0.0.10"
streisand.vm.provision "ansible" do |ansible|
# NOTE: Uncomment the below line for verbose Ansible output
# ansible.verbose = "v"
ansible.playbook = "playbooks/vagrant.yml"
ansible.host_vars = {
"streisand-host" => {
# Don't prompt or pause during the playbook runs
"streisand_noninteractive" => true,
# Do copy the files required by the client test locally
"streisand_client_test" => true,
"streisand_ipv4_address" => "10.0.0.10"
}
}
ansible.raw_arguments = [
"--extra-vars=@global_vars/vars.yml",
"--extra-vars=@global_vars/default-site.yml"
]
end
end
config.vm.define "streisand-client" do |client|
client.vm.hostname = "streisand-client"
client.vm.network :private_network, ip: "10.0.0.11"
client.vm.provision "ansible" do |ansible|
# NOTE: Uncomment the below line for verbose Ansible output
#ansible.verbose = "v"
ansible.playbook = "playbooks/test-client.yml"
ansible.host_vars = {
"streisand-client" => {
"streisand_ip" => "10.0.0.10",
}
}
end
end
end