Run apt-get update prior to installing packages

This commit is contained in:
Fabio Rehm 2013-09-28 01:24:31 -03:00
parent 93ba8414bf
commit a6bd483275

View file

@ -1,5 +1,18 @@
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/', '/usr/local/bin'] }
stage { 'preinstall':
before => Stage['main']
}
class apt_get_update {
exec { 'apt-get -y update':
unless => "test -f /etc/default/lxc"
}
}
class { 'apt_get_update':
stage => preinstall
}
# Because I'm lazy ;)
exec {
'echo "alias be=\"bundle exec\"" >> /home/vagrant/.bashrc':