Revision 688e146c
Added by Bernhard Suttner 27 days ago
app/views/templates/script/puppet_run_once.erb | ||
---|---|---|
required: false
|
||
feature: puppet_run_host
|
||
%>
|
||
<% if @host.operatingsystem.family == 'Debian' -%>
|
||
export PATH=/opt/puppetlabs/bin:$PATH
|
||
<% end -%>
|
||
if [ -f /etc/profile.d/puppet-agent.sh ]; then
|
||
. /etc/profile.d/puppet-agent.sh
|
||
fi
|
||
puppet agent --onetime --no-usecacheonfailure --no-daemonize <%= input("puppet_options") %>
|
Also available in: Unified diff
Fixes #37397 - use puppet-agent.sh to set $PATH