Last active
December 16, 2015 16:29
-
-
Save fgrehm/5463831 to your computer and use it in GitHub Desktop.
VBox + LXC
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
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