logdest doesn't seem to work like you'd expect.

Change-Id: Ie73c441ad43b4f30dc5965d8106d242ff2bd3295
Reviewed-on: https://review.openstack.org/11635
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Monty Taylor 2012-08-19 18:14:39 -06:00 committed by Jenkins
parent 991d65e8ec
commit db0ea935a1
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ class openstack_project::puppet_cron($ensure=present) {
ensure => $ensure,
user => root,
minute => "*/15",
command => 'apt-get update >/dev/null 2>&1 ; sleep $((RANDOM\%600)) && puppet agent --test --logdest /var/log/manifest.log',
command => 'apt-get update >/dev/null 2>&1 ; sleep $((RANDOM\%600)) && puppet agent --test >>/var/log/manifest.log',
environment => "PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin",
}
logrotate::file { 'updatepuppet':

View File

@ -6,6 +6,6 @@ start on runlevel[2345]
script
echo "Running puppet on boot" >> /var/log/manifest.log
date >> /var/log/manifest.log
/usr/bin/puppet agent --test --logdest /var/log/manifest.log
/usr/bin/puppet agent --test >> /var/log/manifest.log
end script