Skip to content

Instantly share code, notes, and snippets.

@ygbourhis
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ygbourhis/37413eb9664364292dc9 to your computer and use it in GitHub Desktop.
Save ygbourhis/37413eb9664364292dc9 to your computer and use it in GitHub Desktop.
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "devstack_controller"
config.vm.hostname = "devstack"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
# set auto_update to false, if do NOT want to check the correct additions
# version when booting this machine
#config.vbguest.auto_update = true
# do NOT download the iso file from a webserver
#config.vbguest.no_remote = true
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "4096"]
v.customize ["modifyvm", :id, "--cpus", "2"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
v.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
end
config.vm.provision :shell, :path => "bootstrap.sh"
#config.vm.provision :shell, :path => "vagrant_guest_additions.sh"
config.vm.network :private_network, ip: "192.168.56.4"
config.vm.network :private_network, ip: "192.168.57.225"
#config.vm.synced_folder "/home/yves/openstack/neutron", "/opt/stack/neutron"
#config.vm.synced_folder "/home/yves/openstack/magnetodb", "/opt/stack/magnetodb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment