Minor tweaks to the dev vagrantfile

This commit is contained in:
Fabio Rehm 2014-04-06 22:08:57 -03:00
parent 12f121e6e4
commit f10a2d488e

View file

@ -1,12 +1,6 @@
# -*- mode: ruby -*- # -*- mode: ruby -*-
# vi: set ft=ruby : # vi: set ft=ruby :
Vagrant.require_plugin 'vagrant-cachier'
Vagrant.require_plugin 'vagrant-librarian-chef'
Vagrant.require_plugin 'vagrant-lxc'
Vagrant.require_plugin 'vagrant-omnibus'
Vagrant.require_plugin 'vagrant-pristine'
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.synced_folder "../", "/vagrant", id: 'vagrant-root' config.vm.synced_folder "../", "/vagrant", id: 'vagrant-root'
@ -18,6 +12,10 @@ Vagrant.configure("2") do |config|
vb.customize [ "modifyvm", :id, "--memory", 256, "--cpus", "1" ] vb.customize [ "modifyvm", :id, "--memory", 256, "--cpus", "1" ]
end end
config.vm.provider :lxc do |lxc|
lxc.customize 'aa_profile', 'unconfined'
end
configure_private_network = lambda do |node, suffix| configure_private_network = lambda do |node, suffix|
node.vm.network :private_network, ip: "192.168.50.#{suffix}" node.vm.network :private_network, ip: "192.168.50.#{suffix}"
end end
@ -61,7 +59,11 @@ Vagrant.configure("2") do |config|
end end
config.vm.define :ubuntu do |ubuntu| config.vm.define :ubuntu do |ubuntu|
ubuntu.vm.box = "quantal64" ubuntu.vm.box = "raring64"
ubuntu.vm.provider :lxc do |_, override|
override.vm.box = 'fgrehm/raring64-lxc'
end
configure_private_network.call ubuntu, 10 configure_private_network.call ubuntu, 10
initial_debian_setup.call(ubuntu) initial_debian_setup.call(ubuntu)