diff --git a/Smoke/IpaInstallAndStart/test.sh b/Smoke/IpaInstallAndStart/test.sh index 6cd2bf9..87904e1 100755 --- a/Smoke/IpaInstallAndStart/test.sh +++ b/Smoke/IpaInstallAndStart/test.sh @@ -31,7 +31,11 @@ prepareIpaServer() fi rlRun "dnf -y install freeipa-server-dns" - HOSTNAME=`hostname --all-fqdns | awk '{print $NF}'` + ORIG_HOSTNAME=${HOSTNAME} +# there is longer name at AWS, more than 64char + hostnamectl set-hostname ipa.ipa + HOSTNAME=`hostname|tail -n1` +# not needed after change ^ if echo $HOSTNAME | grep '\.' then rlLog "Using full hostname $HOSTNAME"