Run apt-get update prior to installing packages
This commit is contained in:
parent
93ba8414bf
commit
a6bd483275
1 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,18 @@
|
||||||
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/', '/usr/local/bin'] }
|
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 ;)
|
# Because I'm lazy ;)
|
||||||
exec {
|
exec {
|
||||||
'echo "alias be=\"bundle exec\"" >> /home/vagrant/.bashrc':
|
'echo "alias be=\"bundle exec\"" >> /home/vagrant/.bashrc':
|
||||||
|
|
Loading…
Reference in a new issue