forked from lorin/devstack-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
32 lines (28 loc) · 1.35 KB
/
Vagrantfile
File metadata and controls
32 lines (28 loc) · 1.35 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "saucy64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
# eth1, this will be the endpoint
config.vm.network :private_network, ip: "192.168.27.100"
# eth2, this will be the OpenStack "public" network, use DevStack default
config.vm.network :private_network, ip: "172.24.4.225", :netmask => "255.255.255.224", :auto_config => false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 4096]
# eth2 must be in promiscuous mode for floating IPs to be accessible
vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
end
config.vm.provision :ansible do |ansible|
ansible.host_key_checking = false
ansible.playbook = "devstack.yaml"
ansible.verbose = "v"
end
config.vm.provision :shell, :inline => "cd devstack; sudo -u vagrant env HOME=/home/vagrant ./stack.sh"
config.vm.provision :shell, :inline => "ovs-vsctl add-port br-ex eth2"
# Workaround for https://bugs.launchpad.net/devstack/+bug/1243075
config.vm.provision :ansible do |ansible|
ansible.host_key_checking = false
ansible.playbook = "horizon-workaround.yaml"
ansible.verbose = "v"
end
end