mirror of
https://github.com/sstent/Vagrant_Openstack.git
synced 2026-01-25 22:52:45 +00:00
updating config
This commit is contained in:
@@ -1 +1 @@
|
|||||||
27bb383d-c4f5-4943-a459-5cd5ecf2f6c3
|
95b6de96-61ef-4e5a-be3f-94376f3c2dce
|
||||||
@@ -1 +1 @@
|
|||||||
bfcdeb20-d7cb-45f4-8fc4-394378ea1c78
|
00a9efde-6e58-48d9-a88f-9dca39ab7655
|
||||||
@@ -1 +1 @@
|
|||||||
ff2024ca-2e17-4988-93a3-eb3885c64872
|
3fddf289-bad4-4210-8fac-1153a41105b6
|
||||||
44
Vagrantfile
vendored
44
Vagrantfile
vendored
@@ -2,7 +2,7 @@
|
|||||||
# -*- mode: ruby -*-
|
# -*- mode: ruby -*-
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
Vagrant::Config.run do |config|
|
Vagrant.configure("2") do |config|
|
||||||
# All Vagrant configuration is done here. The most common configuration
|
# All Vagrant configuration is done here. The most common configuration
|
||||||
# options are documented and commented below. For a complete reference,
|
# options are documented and commented below. For a complete reference,
|
||||||
# please see the online documentation at vagrantup.com.
|
# please see the online documentation at vagrantup.com.
|
||||||
@@ -10,35 +10,47 @@ Vagrant::Config.run do |config|
|
|||||||
# Every Vagrant virtual environment requires a box to build off of.
|
# Every Vagrant virtual environment requires a box to build off of.
|
||||||
config.vm.box = "Centos64Puppet"
|
config.vm.box = "Centos64Puppet"
|
||||||
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box"
|
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box"
|
||||||
|
#config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20130427.box"
|
||||||
|
|
||||||
config.vm.define :puppet do |puppet_config|
|
config.vm.define :puppet do |puppet_config|
|
||||||
puppet_config.vm.host_name = "puppet.vagrant.info"
|
puppet_config.vm.hostname = "puppet.vagrant.info"
|
||||||
puppet_config.vm.network :hostonly, "192.168.33.10" #eth1 MGMT
|
puppet_config.vm.network :private_network, ip: "192.168.33.10" #eth1 MGMT
|
||||||
end
|
end
|
||||||
config.vm.define :controller do |controller_config|
|
config.vm.define :controller do |controller_config|
|
||||||
controller_config.vm.host_name = "controller.vagrant.info"
|
controller_config.vm.hostname = "controller.vagrant.info"
|
||||||
controller_config.vm.network :hostonly, "192.168.33.11" #eth1 MGMT
|
controller_config.vm.network :private_network, ip: "192.168.33.11" #eth1 MGMT
|
||||||
controller_config.vm.network :hostonly, "10.0.1.11" #eth2 VM Traffic
|
controller_config.vm.network :private_network, ip: "10.10.1.11" #eth2 VM Traffic
|
||||||
controller_config.vm.network :hostonly, "10.0.2.11" #eth3 floating
|
controller_config.vm.network :private_network, ip: "10.10.2.11" #eth3 floating
|
||||||
controller_config.vm.customize ["modifyvm", :id, "--nicpromisc4", "allow-all"] # eth3
|
controller_config.vm.network :forwarded_port, guest: 80, host: 8080
|
||||||
controller_config.vm.provision :shell, :inline => "ip link set mtu 1546 dev eth2"
|
controller_config.vm.provision :shell, :inline => "ip link set mtu 1546 dev eth2"
|
||||||
controller_config.vm.forward_port 80, 8080
|
controller_config.vm.provider "virtualbox" do |controller_vbox|
|
||||||
|
controller_vbox.customize ["modifyvm", :id, "--nicpromisc4", "allow-all"] # eth3
|
||||||
|
controller_vbox.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"] # eth3
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.define :compute1 do |compute1_config|
|
config.vm.define :compute1 do |compute1_config|
|
||||||
compute1_config.vm.host_name = "compute1.vagrant.info"
|
compute1_config.vm.hostname = "compute1.vagrant.info"
|
||||||
compute1_config.vm.network :hostonly, "192.168.33.12" #eth1 MGMT
|
compute1_config.vm.network :private_network, ip: "192.168.33.12" #eth1 MGMT
|
||||||
compute1_config.vm.network :hostonly, "10.0.1.12"
|
compute1_config.vm.network :private_network, ip: "10.10.1.12" #eth2 VM Traffic
|
||||||
compute1_config.vm.provision :shell, :inline => "ip link set mtu 1546 dev eth2"
|
compute1_config.vm.provision :shell, :inline => "ip link set mtu 1546 dev eth2"
|
||||||
compute1_config.vm.customize ["modifyvm", :id, "--memory", 2048]
|
compute1_config.vm.provision :shell, :inline => "ip link set eth2 promisc on"
|
||||||
compute1_config.vm.customize ["modifyvm", :id, "--cpus", 4]
|
|
||||||
|
compute1_config.vm.provider "virtualbox" do |compute1_vbox|
|
||||||
|
compute1_vbox.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] # eth2
|
||||||
|
compute1_vbox.customize ["modifyvm", :id, "--cpus", 4]
|
||||||
|
compute1_vbox.customize ["modifyvm", :id, "--memory", 2048]
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.boot_mode = :headless
|
config.vm.provider "virtualbox" do |vbox|
|
||||||
|
vbox.gui = false
|
||||||
|
end
|
||||||
|
|
||||||
config.vm.provision :puppet do |puppet|
|
config.vm.provision :puppet do |puppet|
|
||||||
puppet.manifests_path = "manifests"
|
|
||||||
puppet.module_path = "modules"
|
puppet.module_path = "modules"
|
||||||
|
|
||||||
puppet.manifest_file = "site.pp"
|
puppet.manifest_file = "site.pp"
|
||||||
|
|||||||
Reference in New Issue
Block a user