X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c..dc524f398ed78c9820ef90b87d2ec4422d4f9132:/tools/salt-install/common.sh diff --git a/tools/salt-install/common.sh b/tools/salt-install/common.sh index 5d9dba14cd..5392da71be 100644 --- a/tools/salt-install/common.sh +++ b/tools/salt-install/common.sh @@ -48,6 +48,14 @@ for node in "${!NODES[@]}"; do done done +# Sets TLS certificate expiration thresholds +TLS_EXPIRATION_YELLOW=5184000 # > 2 months +TLS_EXPIRATION_GREEN=15552000 # > 6 months +if [[ "${SSL_MODE}" == "lets-encrypt" ]]; then + TLS_EXPIRATION_YELLOW=1900800 # > 22 days + TLS_EXPIRATION_GREEN=2505600 # > 29 days +fi + # Auto-detects load-balancing mode if [ -z "${ROLE2NODES['balancer']:-}" ]; then ENABLE_BALANCER="no"