diff options
author | Amy Fong <amy.fong@windriver.com> | 2014-07-29 14:09:01 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-31 15:15:31 -0400 |
commit | eff254762070ec2cac69e8dcb5ca87a744ef649a (patch) | |
tree | 19a61860b105651726650bb99c72e43a3cf508d3 | |
parent | 9dc8b721c41b0b547e064ca36cf398f8e53c58a9 (diff) | |
download | meta-cloud-services-eff254762070ec2cac69e8dcb5ca87a744ef649a.tar.gz |
keystone: set default backend to ldap
Signed-off-by: Amy Fong <amy.fong@windriver.com>
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_git.bb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index ec5d775..6ce1963 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb | |||
@@ -15,7 +15,6 @@ 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 | file://convert_keystone_backend.py \ |
20 | " | 19 | " |
21 | 20 | ||
@@ -102,6 +101,13 @@ do_install_append() { | |||
102 | sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${D}${sysconfdir}/init.d/keystone | 101 | sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${D}${sysconfdir}/init.d/keystone |
103 | 102 | ||
104 | if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then | 103 | if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then |
104 | sed -i -e '/^\[identity\]/a \ | ||
105 | driver = keystone.identity.backends.hybrid_identity.Identity \ | ||
106 | \ | ||
107 | [assignment]\ | ||
108 | driver = keystone.assignment.backends.hybrid_assignment.Assignment\ | ||
109 | ' ${D}/etc/keystone/keystone.conf | ||
110 | |||
105 | sed -i -e '/^\[ldap\]/a \ | 111 | sed -i -e '/^\[ldap\]/a \ |
106 | url = ldap://localhost \ | 112 | url = ldap://localhost \ |
107 | user = cn=Manager,${LDAP_DN} \ | 113 | user = cn=Manager,${LDAP_DN} \ |
@@ -133,7 +139,6 @@ role_name_attribute = ou \ | |||
133 | role_tree_dn = ou=Roles,${LDAP_DN} \ | 139 | role_tree_dn = ou=Roles,${LDAP_DN} \ |
134 | ' ${D}/etc/keystone/keystone.conf | 140 | ' ${D}/etc/keystone/keystone.conf |
135 | 141 | ||
136 | install -m 0755 ${WORKDIR}/hybrid-backend-setup ${D}${sysconfdir}/keystone/hybrid-backend-setup | ||
137 | install -m 0755 ${WORKDIR}/convert_keystone_backend.py ${D}${sysconfdir}/keystone/convert_keystone_backend.py | 142 | install -m 0755 ${WORKDIR}/convert_keystone_backend.py ${D}${sysconfdir}/keystone/convert_keystone_backend.py |
138 | fi | 143 | fi |
139 | } | 144 | } |
@@ -158,6 +163,9 @@ pkg_postinst_${SRCNAME}-setup () { | |||
158 | keystone-manage db_sync | 163 | keystone-manage db_sync |
159 | keystone-manage pki_setup --keystone-user=root --keystone-group=root | 164 | keystone-manage pki_setup --keystone-user=root --keystone-group=root |
160 | 165 | ||
166 | if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then | ||
167 | /etc/init.d/openldap start | ||
168 | fi | ||
161 | /etc/init.d/keystone start | 169 | /etc/init.d/keystone start |
162 | fi | 170 | fi |
163 | } | 171 | } |