Browse code

Use keystone[ldap] for ldap packages

Keystone now provides an "ldap" in extras to install its ldap
dependencies so devstack doesn't have to track the python
dependencies itself.

Installation of the extras is done in an extra install line. This is
slightly redundant, however this pattern works much better from an
install stand point as it supports an arbitrarily large number of
extras.

Partial-Bug: 1479962
Change-Id: If0f0ff48f3d6b3c414f2d6fcd747ecf45a397658

Brant Knudson authored on 2015/08/01 23:19:18
Showing 2 changed files
... ...
@@ -506,6 +506,11 @@ function install_keystone {
506 506
     fi
507 507
     git_clone $KEYSTONE_REPO $KEYSTONE_DIR $KEYSTONE_BRANCH
508 508
     setup_develop $KEYSTONE_DIR
509
+
510
+    if is_service_enabled ldap; then
511
+        setup_develop $KEYSTONE_DIR ldap
512
+    fi
513
+
509 514
     if [ "$KEYSTONE_USE_MOD_WSGI" == "True" ]; then
510 515
         install_apache_wsgi
511 516
         if is_ssl_enabled_service "key"; then
... ...
@@ -145,8 +145,6 @@ function install_ldap {
145 145
         sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif
146 146
     fi
147 147
 
148
-    pip_install_gr ldappool
149
-
150 148
     rm -rf $tmp_ldap_dir
151 149
 }
152 150