From 09811a0c23e011f65be1e58a3917bc9ffee234e7 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Fri, 12 Oct 2012 02:36:46 -0500 Subject: Updated install scripts. --- scripts/host-enroll.sh | 2 +- scripts/install-dogtag.sh | 13 +++++++++---- scripts/install-rpms.sh | 4 +++- scripts/install-selfsign.sh | 8 ++++---- scripts/service-enroll.sh | 2 +- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/scripts/host-enroll.sh b/scripts/host-enroll.sh index e65bb6d..69871af 100755 --- a/scripts/host-enroll.sh +++ b/scripts/host-enroll.sh @@ -2,4 +2,4 @@ . ./include.sh -ipa-getkeytab -s localhost -p host/test.example.com -k test.keytab +ipa-getkeytab -s $HOSTNAME -p host/test.example.com -k test.keytab diff --git a/scripts/install-dogtag.sh b/scripts/install-dogtag.sh index c37338a..52e7c9a 100755 --- a/scripts/install-dogtag.sh +++ b/scripts/install-dogtag.sh @@ -1,11 +1,16 @@ -#!/bin/sh +x +#!/bin/sh -x + +IP_ADDRESS=`ifconfig eth0 | grep "inet " | awk '{print $2}'` +FORWARDER=`grep nameserver /etc/resolv.conf | awk '{print $2;}'` ipa-server-install\ + -d\ -U\ - -r EXAMPLE.COM\ - -n example.com\ + -r REDHAT.COM\ + -n redhat.com\ -p Secret123\ -a Secret123\ --no-pkinit\ --setup-dns\ - --forwarder=10.16.255.2 + --forwarder $FORWARDER\ + --no-ntp diff --git a/scripts/install-rpms.sh b/scripts/install-rpms.sh index 3c4621b..48b9064 100755 --- a/scripts/install-rpms.sh +++ b/scripts/install-rpms.sh @@ -2,4 +2,6 @@ cd ../../freeipa/dist/rpms -rpm -i * +yum install -y\ + bind-dyndb-ldap\ + `ls` diff --git a/scripts/install-selfsign.sh b/scripts/install-selfsign.sh index 7cf6984..809f6ec 100755 --- a/scripts/install-selfsign.sh +++ b/scripts/install-selfsign.sh @@ -6,11 +6,11 @@ FORWARDER=`grep nameserver /etc/resolv.conf | awk '{print $2;}'` ipa-server-install\ -d\ -U\ - -r EXAMPLE.COM\ - -n example.com\ + -r REDHAT.COM\ + -n redhat.com\ -p Secret123\ -a Secret123\ --selfsign\ --setup-dns\ - --no-ntp\ - --forwarder $FORWARDER + --forwarder $FORWARDER\ + --no-ntp diff --git a/scripts/service-enroll.sh b/scripts/service-enroll.sh index 1e11964..9b33773 100755 --- a/scripts/service-enroll.sh +++ b/scripts/service-enroll.sh @@ -2,4 +2,4 @@ . ./include.sh -ipa-getkeytab -s localhost -p ftp/test.example.com -k test.keytab +ipa-getkeytab -s $HOSTNAME -p ftp/test.example.com -k test.keytab -- cgit