File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ CRLFILE="${SSLDIR}/crl.pem"
62
62
CA=" https://${PUPPETSERVER_HOSTNAME} :8140/puppet-ca/v1"
63
63
CERTSUBJECT=" /CN=${CERTNAME} "
64
64
CERTHEADER=" -----BEGIN CERTIFICATE-----"
65
- CURLFLAGS=" --silent --show-error --cacert ${CACERTFILE} "
65
+ CURLFLAGS=" --silent --show-error --cacert ${CACERTFILE} --retry 5 --retry-connrefused --retry-delay 2 "
66
66
67
67
# ## Print configuration for troubleshooting
68
68
msg " Using configuration values:"
@@ -73,7 +73,7 @@ msg "* WAITFORCERT: '${WAITFORCERT}' seconds"
73
73
74
74
# ## Get the CA certificate for use with subsequent requests
75
75
# ## Fail-fast if curl errors or the CA certificate can't be parsed
76
- curl --insecure --silent --show-error --output " ${CACERTFILE} " " ${CA} /certificate/ca"
76
+ curl --insecure --silent --show-error --output " ${CACERTFILE} " --retry 5 --retry-connrefused --retry-delay 2 " ${CA} /certificate/ca"
77
77
if [ $? -ne 0 ]; then
78
78
error " cannot reach CA host '${PUPPETSERVER_HOSTNAME} '"
79
79
elif ! openssl x509 -subject -issuer -noout -in " ${CACERTFILE} " ; then
You can’t perform that action at this time.
0 commit comments