Add apt-get update so that we get latest packages.

Puppet does not run apt-get update. Ever. We could put it in as a module
with an exec {} and make things depend on it - but since we're cronning
puppet itself, we're just going to do it here.

Change-Id: I2f180e535017bb4ed14b4a58525cb4f9396568d5
This commit is contained in:
Monty Taylor 2011-09-21 17:26:03 -04:00
parent 7698f7d2fe
commit 001a1ad071

View File

@ -32,7 +32,7 @@ class openstack_base {
cron { "updatepuppet":
user => root,
minute => "*/15",
command => 'sleep $((RANDOM\%600)) && cd /root/openstack-ci-puppet && /usr/bin/git pull -q && /var/lib/gems/1.8/bin/puppet apply -l /tmp/manifest.log --modulepath=/root/openstack-ci-puppet/modules manifests/site.pp',
command => 'apt-get update >/dev/null 2>&1 ; sleep $((RANDOM\%600)) && cd /root/openstack-ci-puppet && /usr/bin/git pull -q && /var/lib/gems/1.8/bin/puppet apply -l /tmp/manifest.log --modulepath=/root/openstack-ci-puppet/modules manifests/site.pp',
}
}