diff options
Diffstat (limited to 'devstack/plugin.sh')
-rw-r--r-- | devstack/plugin.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh index b194bc18f..a1158881d 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -13,6 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. +KEYSTONE_PLUGIN=$DEST/keystone/devstack +source $KEYSTONE_PLUGIN/lib/federation.sh + # For more information on Devstack plugins, including a more detailed # explanation on when the different steps are executed please see: # http://docs.openstack.org/developer/devstack/plugins.html @@ -20,15 +23,24 @@ if [[ "$1" == "stack" && "$2" == "install" ]]; then # This phase is executed after the projects have been installed echo "Keystone plugin - Install phase" + if is_service_enabled keystone-saml2-federation; then + install_federation + fi elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then # This phase is executed after the projects have been configured and # before they are started echo "Keystone plugin - Post-config phase" + if is_service_enabled keystone-saml2-federation; then + configure_federation + fi elif [[ "$1" == "stack" && "$2" == "extra" ]]; then # This phase is executed after the projects have been started echo "Keystone plugin - Extra phase" + if is_service_enabled keystone-saml2-federation; then + register_federation + fi fi if [[ "$1" == "unstack" ]]; then @@ -40,5 +52,7 @@ fi if [[ "$1" == "clean" ]]; then # Called by clean.sh after the "unstack" phase # Undo what was performed during the "install" phase - : + if is_service_enabled keystone-saml2-federation; then + uninstall_federation + fi fi |