forked from openstack-ansible/ansible-role-horizon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (28 loc) · 930 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
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :private_network, ip: "10.1.0.2", :netmask => "255.255.0.0"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provider :virtualbox do |v|
v.memory = 2048
v.customize ["modifyvm", :id, "--nicpromisc2", "allow-vms"]
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "getreqs.yml"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "prepare-vm.yml"
ansible.extra_vars = {
openstack_network_external_device: "eth1",
openstack_network_external_gateway: "10.1.0.2"
}
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "deploy.yml"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "test.yml"
end
end