aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-08-22 21:06:14 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-08-22 21:07:38 +0300
commitab48d3a438845f1fe7a862cb1396963e7ca754e2 (patch)
tree45b173585c6e37e2b52adb498befcdeae6bdb80f
parent92c04bbb77468214d2f1cba7c11f1de50fa6ad63 (diff)
Add -s (silent) to curl command for CRL refresh
Without it, it doesn't reload the services it should. Change-Id: I43e6188700deb585f905ca700e69b6875f0ded45 Closes-Bug: #1712404
-rw-r--r--manifests/certmonger/ca/crl.pp2
-rw-r--r--spec/classes/tripleo_certmonger_ca_crl_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/certmonger/ca/crl.pp b/manifests/certmonger/ca/crl.pp
index 2454460..a69065d 100644
--- a/manifests/certmonger/ca/crl.pp
+++ b/manifests/certmonger/ca/crl.pp
@@ -129,7 +129,7 @@ class tripleo::certmonger::ca::crl (
if $ensure == 'present' {
# Fetch CRL in cron job and notify needed services
- $cmd_list = concat(["${sleep}curl -L -o ${fetched_crl} ${crl_source}"], $process_cmd, $reload_cmds)
+ $cmd_list = concat(["${sleep}curl -s -L -o ${fetched_crl} ${crl_source}"], $process_cmd, $reload_cmds)
$cron_cmd = join($cmd_list, ' && ')
} else {
$cron_cmd = absent
diff --git a/spec/classes/tripleo_certmonger_ca_crl_spec.rb b/spec/classes/tripleo_certmonger_ca_crl_spec.rb
index 1e605ce..29726f1 100644
--- a/spec/classes/tripleo_certmonger_ca_crl_spec.rb
+++ b/spec/classes/tripleo_certmonger_ca_crl_spec.rb
@@ -47,7 +47,7 @@ describe 'tripleo::certmonger::ca::crl' do
end
let :cron_cmd do
- "curl -L -o #{params[:crl_preprocessed]} #{params[:crl_source]} && #{process_cmd}"
+ "curl -s -L -o #{params[:crl_preprocessed]} #{params[:crl_source]} && #{process_cmd}"
end
it 'should create and process CRL file' do
@@ -75,7 +75,7 @@ describe 'tripleo::certmonger::ca::crl' do
end
let :cron_cmd do
- "curl -L -o #{params[:crl_dest]} #{params[:crl_source]}"
+ "curl -s -L -o #{params[:crl_dest]} #{params[:crl_source]}"
end
it 'should create and process CRL file' do