diff --git a/manifests/ca.pp b/manifests/ca.pp index e8dd598..e484fc9 100644 --- a/manifests/ca.pp +++ b/manifests/ca.pp @@ -100,7 +100,7 @@ } exec { "get_${resource_name}": command => - "wget ${verify_https} -O '${ca_cert}' '${source}' 2> /dev/null", + "wget ${verify_https} -O '${ca_cert}' '${source}' 2> /dev/null || rm -f '${ca_cert}'", path => ['/usr/bin', '/bin'], creates => $ca_cert, notify => Exec['ca_cert_update'],