From 9298413ab14ceb14e77f162608f69322b4331a64 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Wed, 22 Aug 2018 14:54:04 -0400 Subject: [PATCH] Revise diretory server install commands The Dogtag gate is broken because the directory server install commands have changed. Fix gate script to use the newer commands. Change-Id: I546c324ddfb9d156f38a963d6d47b9562e1caed6 --- devstack/lib/barbican | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/devstack/lib/barbican b/devstack/lib/barbican index 8b1478e10..2396252bb 100644 --- a/devstack/lib/barbican +++ b/devstack/lib/barbican @@ -446,27 +446,15 @@ function install_389_directory_server { sudo mkdir -p /etc/389-ds - # Instead of spawning a sub-shell to cat this whole chunk into the desired - # file. I just cat it into a temporary file that this user will have access - # to, and subsequently use elevated privileges to move the already made - # file where we need it to be. - cat > .tmp.setup.inf < ds.inf + rm ds.tmp -[slapd] -ServerPort= 389 -ServerIdentifier= pki-tomcat -Suffix= dc=example,dc=com -RootDN= cn=Directory Manager -RootDNPwd= PASSWORD -EOF - - sudo mv .tmp.setup.inf /etc/389-ds/setup.inf - - sudo setup-ds.pl --silent --file=/etc/389-ds/setup.inf + sudo mv ds.inf /etc/389-ds/ds.inf + sudo dscreate fromfile /etc/389-ds/ds.inf } function install_dogtag_ca {