Skip puppet installation on example vagrant file since the box's after-create script handles that now

This commit is contained in:
Fabio Rehm 2013-03-04 19:34:11 -03:00
parent b06d755926
commit 6f6d14aee7

14
example/Vagrantfile vendored
View file

@ -14,19 +14,7 @@ Vagrant.configure("2") do |config|
lxc.start_opts << 'lxc.cgroup.memory.memsw.limit_in_bytes=500M' lxc.start_opts << 'lxc.cgroup.memory.memsw.limit_in_bytes=500M'
end end
config.vm.provision :shell, :inline => <<-SCRIPT config.vm.provision :shell, :inline => 'echo "Hi there I\'m a shell script used for provisioning"'
echo "Hi there I'm the shell script used for provisioning"
if `which puppet > /dev/null`; then
echo "Looks like puppet has already been installed, moving on"
exit 0
fi
echo "I'm about to install puppet!"
sleep 1
echo "Hang tight, I just need to wait for a while since vagrant-lxc is not handling network properly ;)"
sleep 5
sudo apt-get update
sudo apt-get install puppet -y
SCRIPT
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.module_path = "puppet/modules" puppet.module_path = "puppet/modules"