From db0ea935a19a10e0130706d6974731b5f127b689 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 19 Aug 2012 18:14:39 -0600 Subject: [PATCH] logdest doesn't seem to work like you'd expect. Change-Id: Ie73c441ad43b4f30dc5965d8106d242ff2bd3295 Reviewed-on: https://review.openstack.org/11635 Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- modules/openstack_project/manifests/puppet_cron.pp | 2 +- modules/puppetboot/files/puppetboot.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/puppet_cron.pp b/modules/openstack_project/manifests/puppet_cron.pp index 429b030422..673a7ecff3 100644 --- a/modules/openstack_project/manifests/puppet_cron.pp +++ b/modules/openstack_project/manifests/puppet_cron.pp @@ -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': diff --git a/modules/puppetboot/files/puppetboot.conf b/modules/puppetboot/files/puppetboot.conf index 8a888a6c3d..0361b5c566 100644 --- a/modules/puppetboot/files/puppetboot.conf +++ b/modules/puppetboot/files/puppetboot.conf @@ -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