From cfa5d7c1cdf81b773c08f5cd0c94dbbbd4fa0c65 Mon Sep 17 00:00:00 2001 From: Himani Anil Deshpande Date: Tue, 10 Dec 2024 17:44:23 -0500 Subject: [PATCH] [AD] Increasing the attempt and sleep time when we create AD Domain --- cloudformation/ad/ad-integration.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudformation/ad/ad-integration.yaml b/cloudformation/ad/ad-integration.yaml index 3991ffc52c..ba8e5b87b1 100644 --- a/cloudformation/ad/ad-integration.yaml +++ b/cloudformation/ad/ad-integration.yaml @@ -451,14 +451,14 @@ Resources: ADMIN_PW="${AdminPassword}" attempt=0 - max_attempts=5 + max_attempts=8 until [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)) echo "[DEBUG] Checking domain name resolution for ${DirectoryDomain} ..." dig ${DirectoryDomain} echo "Joining domain (attempt $attempt/$max_attempts) ..." echo "$ADMIN_PW" | sudo realm join -U "${Admin}" "${DirectoryDomain}" --verbose && echo "Domain joined" && break - sleep 10 + sleep 12 done sleep 10