-
Notifications
You must be signed in to change notification settings - Fork 37
/
Vagrantfile
29 lines (25 loc) · 1.2 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.ssh.forward_agent = true
# eth1, this will be the endpoint
config.vm.network :private_network, ip: "192.168.27.100"
# eth2, this will be the OpenStack "public" network
# ip and subnet mask should match floating_ip_range var in devstack.yml
config.vm.network :private_network, ip: "172.24.4.225", :netmask => "255.255.255.0", :auto_config => false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 6144]
vb.customize ["modifyvm", :id, "--cpus", 2]
# 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.yml"
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"
config.vm.provision :shell, :inline => "virsh net-destroy default"
end