Last active
December 17, 2015 14:59
-
-
Save dizz/5627969 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 : | |
Vagrant.configure("2") do |config| | |
box = "raring-server-cloudimg-vagrant-amd64-disk1" | |
url = "http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-vagrant-amd64-disk1.box" | |
config.vm.define :os_ctl do |os_ctl| | |
os_ctl.vm.box = box | |
os_ctl.vm.box_url = url | |
os_ctl.vm.hostname = "os-ctl.cloudcomplab.dev" | |
# eth1 - internal management | |
os_ctl.vm.network :private_network, ip: "10.10.10.51", netmask: "255.255.255.0", nic_type: '82545EM' | |
# eth2 - external management (API) | |
os_ctl.vm.network :private_network, ip: "192.168.100.51", netmask: "255.255.255.0", nic_type: '82545EM' | |
os_ctl.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1536"] | |
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] | |
vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"] | |
end | |
end | |
config.vm.define :os_net do |os_net| | |
os_net.vm.box = box | |
os_net.vm.box_url = url | |
os_net.vm.hostname = "os-net.cloudcomplab.dev" | |
# eth1 - management | |
os_net.vm.network :private_network, ip: "10.10.10.52", netmask: "255.255.255.0", nic_type: '82545EM' | |
# eth2 - VM conf | |
os_net.vm.network :private_network, ip: "10.20.20.52", netmask: "255.255.255.0", nic_type: '82545EM' | |
# eth3 - net egress | |
os_net.vm.network :private_network, ip: "192.168.100.52", netmask: "255.255.255.0", nic_type: '82545EM' | |
os_net.vm.provider :virtualbox do |vb| | |
# vb.gui = true | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] | |
vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"] | |
vb.customize ["modifyvm", :id, "--nicpromisc4", "allow-all"] | |
end | |
end | |
config.vm.define :os_cmp do |os_cmp| | |
os_cmp.vm.box = box | |
os_cmp.vm.box_url = url | |
os_cmp.vm.hostname = "os-cmp.cloudcomplab.dev" | |
# eth1 - management | |
os_cmp.vm.network :private_network, ip: "10.10.10.53", netmask: "255.255.255.0", nic_type: '82545EM' | |
# eth2 - VM conf | |
os_cmp.vm.network :private_network, ip: "10.20.20.53", netmask: "255.255.255.0", nic_type: '82545EM' | |
os_cmp.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1536"] | |
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] | |
vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"] | |
end | |
end | |
config.vm.define :router do |router| | |
router.vm.box = box | |
router.vm.box_url = url | |
router.vm.hostname = "router.cloudcomplab.dev" | |
# eth1 - receive and pass out through the NAT | |
router.vm.network :private_network, ip: "192.168.100.2", netmask: "255.255.255.0", nic_type: '82545EM' | |
router.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "512"] | |
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment