Bug #1549 » puppetrb.patch
lib/proxy/puppet.rb | ||
---|---|---|
puppetrun << " kick" unless puppetrun.include?('puppetrun')
|
||
command = %x[#{sudo} #{puppetrun} --host #{hosts.join(" --host ")}]
|
||
unless command =~ /finished with exit code 0/
|
||
logger.warn command
|
||
false
|
||
status = $?.to_i
|
||
if status == 0
|
||
logger.info "Puppet run was successfully triggered on #{hosts.join(" --host ")}"
|
||
else
|
||
logger.warn "Puppet run failed: #{command}"
|
||
return false
|
||
end
|
||
end
|
||
end
|
- « Previous
- 1
- 2
- 3
- Next »