Created
November 12, 2013 16:07
-
-
Save AlexYangYu/7433490 to your computer and use it in GitHub Desktop.
Vagrantfile for OpenStack two nodes environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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| | |
config.vm.box = "precise64" | |
config.vm.provider :virtualbox do |provider| | |
#provider.gui = true | |
provider.customize ["modifyvm", :id, "--memory", 1024] | |
provider.customize ["modifyvm", :id, "--vram", 12] | |
end | |
config.vm.define :controller do |controller_config| | |
controller_config.vm.host_name = "controller" | |
controller_config.vm.network "public_network", :bridge => "en0: Wi-Fi (AirPort)", :ip => "192.168.1.5", :netmask => "255.255.255.0", :gateway => "192.168.1.253" | |
controller_config.vm.network "private_network", :ip => "10.0.0.5", :netmask => "255.255.255.0" | |
end | |
config.vm.define :compute do |compute_config| | |
compute_config.vm.host_name = "compute" | |
compute_config.vm.network "public_network", :bridge => "en0: Wi-Fi (AirPort)", :ip => "192.168.1.6", :netmask => "255.255.255.0", :gateway => "192.168.1.253" | |
compute_config.vm.network "private_network", :ip => "10.0.0.6", :netmask => "255.255.255.0" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment