Skip to content

Commit

Permalink
[Test] In AD 1-click template, add a debug log lines to make it easie…
Browse files Browse the repository at this point in the history
…r to troubleshoot realm joining issues.

Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Oct 30, 2024
1 parent 0845ada commit 76fa0ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudformation/ad/ad-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ Resources:
max_attempts=5
until [ $attempt -ge $max_attempts ]; do
attempt=$((attempt+1))
echo "[DEBUG] Content of /etc/resolv.conf is:"
cat /etc/resolv.conf
echo "[DEBUG] Resolving ${DirectoryDomain} ..."
dig ${DirectoryDomain}
echo "Joining domain (attempt $attempt/$max_attempts) ..."
echo "$ADMIN_PW" | sudo realm join -U "${Admin}" "${DirectoryDomain}" && echo "Domain joined" && break
sleep 10
Expand Down

0 comments on commit 76fa0ed

Please sign in to comment.