|
@@ -85,7 +85,7 @@ pipeline {
|
|
|
NEW_ENDDATE = sh (script: "openssl x509 -enddate -noout -in ${CONFIG_DIR}/live/${DOMAIN}/cert.pem", returnStdout: true).trim()
|
|
|
TARGET_HOSTS_APACHE.each { item ->
|
|
|
ENDDATE = sh (script: "echo|openssl s_client -servername ${item}.${DOMAIN} -connect ${item}.${DOMAIN}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
|
- if (ENDDATE != NEW_ENDDATE) {
|
|
|
+// if (ENDDATE != NEW_ENDDATE) {
|
|
|
echo "Update certificate and key for ${item}"
|
|
|
def PLAYBOOK = PKI_GIT_NAME + '/' + DOMAIN + '/wildcard/acme-dns/' + 'apache.yml'
|
|
|
def TARGET_HOST = item + '.' + DOMAIN
|
|
@@ -93,7 +93,7 @@ pipeline {
|
|
|
def TARGET_DIR = WORKSPACE + '/' + CONFIG_DIR
|
|
|
update_sertificate(PLAYBOOK, TARGET_DIR, TARGET_HOST, DOT_DOMAIN)
|
|
|
// ap(PLAYBOOK, TARGET_DIR, TARGET_HOST, DOT_DOMAIN)
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
/* ENDDATE = sh (script: "echo|openssl s_client -servername ${SMTP_SERVER} -connect ${SMTP_SERVER} 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
|
if (ENDDATE != NEW_ENDDATE) {
|