summaryrefslogtreecommitdiff
path: root/devstack/lib
diff options
context:
space:
mode:
authorerus <erudyn@protonmail.com>2019-01-30 10:44:03 -0300
committererus <erudyn@protonmail.com>2019-02-17 16:55:23 -0300
commit32d92f80120ba26676e876e3e166909ee2d77570 (patch)
treef88ff45f7176c62b128c0c75cd248dd1f8f85ca0 /devstack/lib
parent12d56691034b8edc730fa042fdfac0fe65f7a647 (diff)
downloadkeystone-32d92f80120ba26676e876e3e166909ee2d77570.tar.gz
Add OpenSUSE support in devstack federation plugin
Modify the install_federation function for adding Shibboleth installation for OpenSUSE in federation.sh, and also modify uninstall_federation function for removing Shibboleth packages when running `./unstack.sh`. Partial-bug: #1757000 Change-Id: Ic3e0c37cff4d0dd3336521bac13da550fa6edfcf
Diffstat (limited to 'devstack/lib')
-rw-r--r--devstack/lib/federation.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/devstack/lib/federation.sh b/devstack/lib/federation.sh
index d4acc7ec6..eec204ba8 100644
--- a/devstack/lib/federation.sh
+++ b/devstack/lib/federation.sh
@@ -82,8 +82,17 @@ function install_federation {
# Start Shibboleth module
start_service shibd
+ elif is_suse; then
+ # Install Shibboleth
+ install_package shibboleth-sp
+
+ # Create a new keypair for Shibboleth
+ sudo /etc/shibboleth/keygen.sh -f -o /etc/shibboleth
+
+ # Start Shibboleth module
+ start_service shibd
else
- echo "Skipping installation of shibboleth for non ubuntu nor fedora host"
+ echo "Skipping installation of shibboleth for non ubuntu nor fedora nor suse host"
fi
}
@@ -126,6 +135,8 @@ function configure_federation {
restart_service "devstack@keystone"
fi
+ restart_apache_server
+
# TODO(knikolla): We should not be relying on an external service. This
# will be removed once we have an idp deployed during devstack install.
if [[ "$IDP_ID" == "samltest" ]]; then
@@ -172,7 +183,9 @@ function uninstall_federation {
# Remove Shibboleth repository
sudo rm /etc/yum.repos.d/shibboleth.repo
+ elif is_suse; then
+ unistall_package shibboleth-sp
else
- echo "Skipping uninstallation of shibboleth for non ubuntu nor fedora host"
+ echo "Skipping uninstallation of shibboleth for non ubuntu nor fedora nor suse host"
fi
}