summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
index b543b13..d80f9bb 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
@@ -11,6 +11,7 @@ SRC_URI = "https://launchpad.net/keystone/grizzly/${PV}/+download/${SRCNAME}-${P
11 file://keystone.conf \ 11 file://keystone.conf \
12 file://identity.sh \ 12 file://identity.sh \
13 file://openrc \ 13 file://openrc \
14 file://keystone \
14 " 15 "
15 16
16SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da" 17SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da"
@@ -18,7 +19,7 @@ SRC_URI[sha256sum] = "34347a3242a40d93b98c3722e6f3fbc112bc1c9ef20c045c3d40637e45
18 19
19S = "${WORKDIR}/${SRCNAME}-${PV}" 20S = "${WORKDIR}/${SRCNAME}-${PV}"
20 21
21inherit setuptools 22inherit setuptools update-rc.d
22 23
23SERVICE_TOKEN = "password" 24SERVICE_TOKEN = "password"
24 25
@@ -36,6 +37,11 @@ do_install_append() {
36 install -m 600 ${S}/etc/logging.conf.sample ${KEYSTONE_CONF_DIR}/logging.conf 37 install -m 600 ${S}/etc/logging.conf.sample ${KEYSTONE_CONF_DIR}/logging.conf
37 install -m 600 ${S}/etc/policy.json ${KEYSTONE_CONF_DIR}/policy.json 38 install -m 600 ${S}/etc/policy.json ${KEYSTONE_CONF_DIR}/policy.json
38 39
40 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
41 install -d ${D}${sysconfdir}/init.d
42 install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone
43 fi
44
39 # Create the sqlite database 45 # Create the sqlite database
40 touch ${KEYSTONE_CONF_DIR}/keystone.db 46 touch ${KEYSTONE_CONF_DIR}/keystone.db
41} 47}
@@ -53,6 +59,7 @@ pkg_postinst_${SRCNAME} () {
53 keystone-manage pki_setup 59 keystone-manage pki_setup
54 # quick fix 60 # quick fix
55 echo "source /etc/keystone/openrc" > /home/root/.bashrc 61 echo "source /etc/keystone/openrc" > /home/root/.bashrc
62 /etc/init.d/keystone start
56 sleep 1 63 sleep 1
57 bash /etc/keystone/identity.sh 64 bash /etc/keystone/identity.sh
58} 65}
@@ -83,3 +90,6 @@ RDEPENDS_${PN} += "python-pam \
83 90
84RDEPENDS_${SRCNAME} = "${PN} \ 91RDEPENDS_${SRCNAME} = "${PN} \
85 postgresql postgresql-client python-psycopg2" 92 postgresql postgresql-client python-psycopg2"
93
94INITSCRIPT_PACKAGES = "${SRCNAME}"
95INITSCRIPT_NAME_${SRCNAME} = "keystone"