Created
June 29, 2016 16:23
-
-
Save sierra-tango-echo/ec83809c388e759407b183925cc41b58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CLUSTER=cluster1 | |
KEYTAB=/root/admin.keytab | |
KEYUSER=admin | |
DIRECTORYAPPLIANCE=`hostname -f` | |
DOMAIN=`hostname -d` | |
REALM=`echo $DOMAIN | sed -e 's/\(.*\)/\U\1/'` | |
kinit -kt $KEYTAB $KEYUSER@$REALM | |
ipa dnszone-add $CLUSTER.$DOMAIN --name-server $DIRECTORYAPPLIANCE. | |
ipa dnsrecord-add $DOMAIN $CLUSTER --ns-rec=$DIRECTORYAPPLIANCE. | |
kdestroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment