Skip to content

Commit cfa5d7c

Browse files
author
Himani Anil Deshpande
committed
[AD] Increasing the attempt and sleep time when we create AD Domain
1 parent 03f4dc8 commit cfa5d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudformation/ad/ad-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,14 @@ Resources:
451451
ADMIN_PW="${AdminPassword}"
452452
453453
attempt=0
454-
max_attempts=5
454+
max_attempts=8
455455
until [ $attempt -ge $max_attempts ]; do
456456
attempt=$((attempt+1))
457457
echo "[DEBUG] Checking domain name resolution for ${DirectoryDomain} ..."
458458
dig ${DirectoryDomain}
459459
echo "Joining domain (attempt $attempt/$max_attempts) ..."
460460
echo "$ADMIN_PW" | sudo realm join -U "${Admin}" "${DirectoryDomain}" --verbose && echo "Domain joined" && break
461-
sleep 10
461+
sleep 12
462462
done
463463
464464
sleep 10

0 commit comments

Comments
 (0)