forked from lorin/devstack-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
19 lines (19 loc) · 1.04 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Vagrant.configure("2") do |config|
config.vm.box = "raring64"
config.vm.box_url = "http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-vagrant-amd64-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", 2048]
# 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.playbook = "devstack.yaml"
ansible.inventory_file = "ansible_hosts"
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"
end