update vagrant file

Add controller. Add third virtual network interface.
This commit is contained in:
Dan Bode
2012-10-09 22:56:00 -07:00
parent 58af430dfc
commit 7621262653

12
Vagrantfile vendored
View File

@@ -18,6 +18,11 @@ Vagrant::Config.run do |config|
'ip1' => '172.16.0.2',
}
},
{'openstack_controller' =>
{'memory' => 2000,
'ip1' => '172.16.0.3'
}
},
{'compute1' =>
{
'memory' => 2512,
@@ -48,11 +53,6 @@ Vagrant::Config.run do |config|
'ip1' => '172.16.0.8'
}
#},
#{'controller' =>
# {'memory' => 512,
# 'ip1' => '172.16.0.3'
# }
#},
#{'compute_1' =>
# {'ip1' => '172.16.0.4'}
#},
@@ -72,10 +72,10 @@ Vagrant::Config.run do |config|
agent.vm.forward_port(22, ssh_forward_port)
# host only network
agent.vm.network :hostonly, props['ip1'], :adapter => 2
agent.vm.network :hostonly, props['ip1'].gsub(/(\d+\.\d+)\.\d+\.(\d+)/) {|x| "#{$1}.1.#{$2}" }, :adapter => 3
#agent.vm.customize ["modifyvm", :id, "--nicpromisc1", "allow-all"]
# natted network
#agent.vm.customize ["modifyvm", :id, "--nic3", "hostonly"]
#agent.vm.customize ["modifyvm", :id, "--hostonlyadapter3", host_network]
#agent.vm.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
#agent.vm.customize ["modifyvm", :id, "--macaddress2", 'auto']