Set path properly for jenkins restarter cron
ansible-playbook is found in /usr/local/bin so we need to set the PATH for the jenkins restarter cron otherwise it won't find ansible-playbook in the default PATH. Change-Id: I0ad8c838d7dae11c8726b98b708bf24893f7f45f
This commit is contained in:
parent
8cdaf92609
commit
a4a1b49872
@ -156,6 +156,7 @@ class openstack_project::puppetmaster (
|
||||
weekday => '6',
|
||||
hour => '0',
|
||||
minute => '15',
|
||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
command => "flock -n /var/run/puppet/restart_jenkins_masters.lock ansible-playbook -f 1 /opt/system-config/production/playbooks/restart_jenkins_masters.yaml --extra-vars 'user=${jenkins_api_user} password=${jenkins_api_key}' >> /var/log/restart_jenkins_masters.log 2>&1",
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user