Use primary DNS hostname for testing IPA deployment.
Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
parent
71d224b4e0
commit
3203e4dcd0
@ -1,7 +1,16 @@
|
|||||||
#!/bin/sh -eux
|
#!/bin/sh -eux
|
||||||
|
|
||||||
|
dnshost="$(hostname)"
|
||||||
|
if command -v dig >/dev/null
|
||||||
|
then
|
||||||
|
hostip="$(dig +short $(hostname))"
|
||||||
|
if [ -n "${hostip}" ]
|
||||||
|
then
|
||||||
|
dnshost="$(dig +short -x "${hostip}" | sed "s/\(.*\)\./\1/")"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
systemctl unmask gssproxy
|
systemctl unmask gssproxy
|
||||||
ipa-server-install --hostname=$(hostname) --no-host-dns -r EXAMPLE.TEST -n example.test --setup-dns --no-forwarders --allow-zone-overlap -p Secret123 -a Secret123 -U
|
ipa-server-install --hostname=${dnshost} -r EXAMPLE.TEST -n example.test --setup-dns --no-forwarders --allow-zone-overlap -p Secret123 -a Secret123 -U
|
||||||
echo Secret123 | kinit admin
|
echo Secret123 | kinit admin
|
||||||
ipa config-show
|
ipa config-show
|
||||||
ipa-server-install --uninstall -U
|
ipa-server-install --uninstall -U
|
||||||
|
Loading…
Reference in New Issue
Block a user