Drop Freeipa-server
This commit is contained in:
parent
181b29cdec
commit
d8bec8df26
8
debian/tests/control
vendored
8
debian/tests/control
vendored
@ -1,8 +0,0 @@
|
|||||||
Tests: server-install
|
|
||||||
Depends:
|
|
||||||
freeipa-server, freeipa-client, freeipa-server-dns,
|
|
||||||
sudo,
|
|
||||||
Restrictions:
|
|
||||||
allow-stderr,
|
|
||||||
isolation-container,
|
|
||||||
needs-root,
|
|
47
debian/tests/server-install
vendored
47
debian/tests/server-install
vendored
@ -1,47 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# hack for lxc
|
|
||||||
IP=`ip route get 1.1.1.1 | sed -n -e's/.*src //; s/ .*//; p; q'`
|
|
||||||
echo "IP address is $IP"
|
|
||||||
|
|
||||||
HOSTNAME=`cat /etc/hosts| grep '127.0.1.1' | awk '{print $NF; exit}' | sed 's/\..*//'`
|
|
||||||
echo "Hostname was: $HOSTNAME"
|
|
||||||
|
|
||||||
if [ -z $HOSTNAME ]; then
|
|
||||||
HOSTNAME=autopkgtest
|
|
||||||
hostname $HOSTNAME
|
|
||||||
echo $HOSTNAME > /etc/hostname
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$IP $HOSTNAME.debci.ipatest $HOSTNAME" >> /etc/hosts
|
|
||||||
|
|
||||||
echo "/etc/hosts now has:"
|
|
||||||
cat /etc/hosts
|
|
||||||
|
|
||||||
if [ ! -d /etc/systemd/system/pki-tomcatd.target.wants ]; then
|
|
||||||
echo "WHOOPS: Creating /etc/systemd/system/pki-tomcatd.target.wants"
|
|
||||||
mkdir /etc/systemd/system/pki-tomcatd.target.wants
|
|
||||||
fi
|
|
||||||
if [ ! -d /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants ]; then
|
|
||||||
echo "WHOOPS: Creating /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants"
|
|
||||||
mkdir /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants
|
|
||||||
fi
|
|
||||||
|
|
||||||
ipa-server-install \
|
|
||||||
-U \
|
|
||||||
-r DEBCI.IPATEST \
|
|
||||||
-n debci.ipatest \
|
|
||||||
-p Secret123 \
|
|
||||||
-a Secret123 \
|
|
||||||
--ip-address=$IP \
|
|
||||||
--setup-dns \
|
|
||||||
--no-forwarders \
|
|
||||||
--hostname=$HOSTNAME.debci.ipatest
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo ">>>>> IPASERVER log >>>>>>>"
|
|
||||||
tail -n 2000 /var/log/ipaserver-install.log
|
|
||||||
echo ">>>>> IPACLIENT log >>>>>>>"
|
|
||||||
tail -n 2000 /var/log/ipaclient-install.log
|
|
||||||
exit 1
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user