diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-10-12 02:36:46 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@vm-117.idm.lab.bos.redhat.com> | 2012-10-12 03:49:54 -0400 |
commit | 09811a0c23e011f65be1e58a3917bc9ffee234e7 (patch) | |
tree | aab4b0eec24fa97143c86f216175911b211f3274 | |
parent | ddc153ad951d8bf2125bf64f2e06013730f8bee1 (diff) | |
download | freeipa-dev-09811a0c23e011f65be1e58a3917bc9ffee234e7.tar.gz freeipa-dev-09811a0c23e011f65be1e58a3917bc9ffee234e7.tar.xz freeipa-dev-09811a0c23e011f65be1e58a3917bc9ffee234e7.zip |
Updated install scripts.
-rwxr-xr-x | scripts/host-enroll.sh | 2 | ||||
-rwxr-xr-x | scripts/install-dogtag.sh | 13 | ||||
-rwxr-xr-x | scripts/install-rpms.sh | 4 | ||||
-rwxr-xr-x | scripts/install-selfsign.sh | 8 | ||||
-rwxr-xr-x | 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 |