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
This commit is contained in:
parent
12d5669103
commit
32d92f8012
|
@ -80,10 +80,19 @@ function install_federation {
|
||||||
# Create a new keypair for Shibboleth
|
# Create a new keypair for Shibboleth
|
||||||
sudo /etc/shibboleth/keygen.sh -f -o /etc/shibboleth
|
sudo /etc/shibboleth/keygen.sh -f -o /etc/shibboleth
|
||||||
|
|
||||||
|
# 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 Shibboleth module
|
||||||
start_service shibd
|
start_service shibd
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,6 +135,8 @@ function configure_federation {
|
||||||
restart_service "devstack@keystone"
|
restart_service "devstack@keystone"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
restart_apache_server
|
||||||
|
|
||||||
# TODO(knikolla): We should not be relying on an external service. This
|
# TODO(knikolla): We should not be relying on an external service. This
|
||||||
# will be removed once we have an idp deployed during devstack install.
|
# will be removed once we have an idp deployed during devstack install.
|
||||||
if [[ "$IDP_ID" == "samltest" ]]; then
|
if [[ "$IDP_ID" == "samltest" ]]; then
|
||||||
|
@ -172,7 +183,9 @@ function uninstall_federation {
|
||||||
|
|
||||||
# Remove Shibboleth repository
|
# Remove Shibboleth repository
|
||||||
sudo rm /etc/yum.repos.d/shibboleth.repo
|
sudo rm /etc/yum.repos.d/shibboleth.repo
|
||||||
|
elif is_suse; then
|
||||||
|
unistall_package shibboleth-sp
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue