Setup FreeIPA to serve DNS in the setup script
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Wed, 15 Feb 2017 08:57:12 +0000 (10:57 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Wed, 15 Feb 2017 13:21:53 +0000 (15:21 +0200)
This is needed for the overcloud nodes to automatically get their domain
and to autodiscover the FreeIPA server.

Change-Id: I4c055e4b4086b02fa706380f01911f499966dfc1

ci/scripts/freeipa_setup.sh

index a4a3d66..e699841 100644 (file)
@@ -94,7 +94,9 @@ rm -f /etc/httpd/conf.d/ssl.conf
 # Set up FreeIPA
 ipa-server-install -U -r `hostname -d|tr "[a-z]" "[A-Z]"` \
                    -p $DirectoryManagerPassword -a $AdminPassword \
-                   --hostname `hostname -f`
+                   --hostname `hostname -f` \
+                   --ip-address=$FreeIPAIP \
+                   --setup-dns --auto-forwarders --auto-reverse
 
 # Authenticate
 echo $AdminPassword | kinit admin