Skip to content

Commit

Permalink
[AD] Increasing the attempt and sleep time when we create AD Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Himani Anil Deshpande committed Dec 10, 2024
1 parent 03f4dc8 commit cfa5d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudformation/ad/ad-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfa5d7c

Please sign in to comment.