Bug #324 ยป 0001-Don-t-try-to-read-CA-signed-certs-as-foreman-user-be.patch
vendor/plugins/proxy/lib/proxy.rb | ||
---|---|---|
return false
|
||
end
|
||
begin
|
||
if (ssldir + "ca/signed/#{fqdn}.pem").file?
|
||
command = "/usr/bin/sudo -S #{@sbin}/puppetca --clean #{fqdn}< /dev/null"
|
||
logger.info system(command)
|
||
return true
|
||
else
|
||
logger.warn ssldir + "PuppetCA: ca/signed/#{fqdn}.pem does not exists - skipping"
|
||
return true
|
||
end
|
||
command = "/usr/bin/sudo -S #{@sbin}/puppetca --clean #{fqdn}< /dev/null"
|
||
logger.info system(command)
|
||
return true
|
||
rescue StandardError => e
|
||
logger.info "PuppetCA: clean failed: #{e}"
|
||
false
|