summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_git.bb15
1 files changed, 6 insertions, 9 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
index be511e2..96ce440 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
@@ -4,7 +4,7 @@ SECTION = "devel/python"
4LICENSE = "Apache-2.0" 4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6 6
7PR = "r1" 7PR = "r2"
8SRCNAME = "keystone" 8SRCNAME = "keystone"
9 9
10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ 10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
@@ -15,6 +15,8 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
15 file://keystone-search-in-etc-directory-for-config-files.patch \ 15 file://keystone-search-in-etc-directory-for-config-files.patch \
16 file://keystone-fix-location-of-files-for-tests.patch \ 16 file://keystone-fix-location-of-files-for-tests.patch \
17 file://keystone-remove-git-commands-in-tests.patch \ 17 file://keystone-remove-git-commands-in-tests.patch \
18 file://hybrid-backend-setup \
19 file://convert_keystone_backend.py \
18 " 20 "
19 21
20SRCREV="e7c29874e5a0e43f4f0e9970556c701af508152f" 22SRCREV="e7c29874e5a0e43f4f0e9970556c701af508152f"
@@ -73,14 +75,6 @@ do_install_append() {
73 sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${D}${sysconfdir}/init.d/keystone 75 sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${D}${sysconfdir}/init.d/keystone
74 76
75 if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then 77 if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
76 sed -i -e '/^\[identity\]/a \
77# Uncomment the following lines to enable the hybrid backend \
78# driver = keystone.identity.backends.hybrid_identity.Identity \
79#\
80# [assignment] \
81# driver = keystone.assignment.backends.hybrid_assignment.Assignment \
82' ${D}/etc/keystone/keystone.conf
83
84 sed -i -e '/^\[ldap\]/a \ 78 sed -i -e '/^\[ldap\]/a \
85url = ldap://localhost \ 79url = ldap://localhost \
86user = cn=Manager,${LDAP_DN} \ 80user = cn=Manager,${LDAP_DN} \
@@ -111,6 +105,9 @@ role_id_attribute = cn \
111role_name_attribute = ou \ 105role_name_attribute = ou \
112role_tree_dn = ou=Roles,${LDAP_DN} \ 106role_tree_dn = ou=Roles,${LDAP_DN} \
113' ${D}/etc/keystone/keystone.conf 107' ${D}/etc/keystone/keystone.conf
108
109 install -m 0755 ${WORKDIR}/hybrid-backend-setup ${D}${sysconfdir}/keystone/hybrid-backend-setup
110 install -m 0755 ${WORKDIR}/convert_keystone_backend.py ${D}${sysconfdir}/keystone/convert_keystone_backend.py
114 fi 111 fi
115} 112}
116 113