Fix run puppet cronjob.

ansible-playbook is in /usr/local, but that's not in the cron job path.

Also, although there is an ansible log setting in ansible.cfg, the
ansible-playbook command still outputs stuff. We don't want cronspam,
so add the redirection to the log file back in.

Change-Id: Id585c11cca4cbd7e1ba26adbfbe22af650ca2b50
This commit is contained in:
Monty Taylor 2014-07-04 14:16:56 -07:00
parent 23fe4a345f
commit db57161a47
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class openstack_project::puppetmaster (
user => 'root',
minute => '*/15',
command => $cron_command,
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin',
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
}
cron { 'deleteoldreports':

View File

@ -24,4 +24,4 @@ git fetch -a && git reset -q --hard @{u}
touch manifests/site.pp
# Run this as an external script so that the above pull will get new changes
ansible-playbook -v /etc/ansible/remote_puppet.yaml
ansible-playbook -v /etc/ansible/remote_puppet.yaml >> /var/log/puppet_run_all.log 2>&1