bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_ipa-server/1-configure_freeipa.sh

James Hogarth a5d690
#!/bin/bash
James Hogarth a5d690
# Author: James Hogarth <james.hogarth@gmail.com>
James Hogarth a5d690
#
James Hogarth acc301
if (t_GetPkgRel basesystem | grep -q el6)
James Hogarth acc301
then
James Hogarth a5d690
James Hogarth a5d690
t_Log "Configuring IPA server"
James Hogarth a5d690
James Hogarth a5d690
ipa-server-install -U --hostname=c6test.c6ipa.local --ip-address=$(ip a s dev eth0 | awk '$0 ~ /scope global eth0/ {print $2}' | cut -d'/' -f 1) -r C6IPA.LOCAL -n c6ipa.local -p p455w0rd -a p455w0rd --ssh-trust-dns --setup-dns --forwarder=$(awk '$0 ~ /nameserver/ {print $2}' /etc/resolv.conf | head -n 1)
James Hogarth a5d690
James Hogarth a5d690
t_CheckExitStatus $?
James Hogarth a5d690
James Hogarth acc301
else
James Hogarth acc301
    echo "Skipped on CentOS 5"
James Hogarth acc301
fi
James Hogarth acc301