Skip to content

Instantly share code, notes, and snippets.

@fgrehm fgrehm/Vagrantfile
Last active Dec 16, 2015

Embed
What would you like to do?
VBox + LXC
Vagrant.configure("2") do |config|
config.vm.box = "quantal64"
config.vm.network :private_network, ip: "192.168.50.23"
config.vm.define :vbox do |vbox_config|
vbox_config.vm.network :forwarded_port, guest: 3000, host: 3001
vbox_config.vm.provision :shell, inline:
# vagrant-lxc required dependencies and vagrant itself
'sudo apt-get install -y redir lxc &&
wget -q "http://files.vagrantup.com/packages/64e360814c3ad960d810456add977fd4c7d47ce6/vagrant_`uname -m`.deb" -O /tmp/vagrant.deb &&
sudo dpkg -i /tmp/vagrant.deb'
end
config.vm.define :lxc do |lxc_config|
lxc_config.vm.network :forwarded_port, guest: 80, host: 3000
lxc_config.vm.provision :shell, inline:
'echo "Replace this with your puppet manifests"'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.