diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-06-11 14:37:05 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:56 -0400 |
| commit | 03412fe2cee41990c101ba69ab40db871467754f (patch) | |
| tree | 699d4a8c6e4a1e88713eb88078905ba1d153448e /meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | |
| parent | c199e0a83897fc9c0d24c018767171a6feed2108 (diff) | |
| download | meta-cloud-services-03412fe2cee41990c101ba69ab40db871467754f.tar.gz | |
python-keystone: Added initscript
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
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.bb | 12 |
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 | ||
| 16 | SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da" | 17 | SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da" |
| @@ -18,7 +19,7 @@ SRC_URI[sha256sum] = "34347a3242a40d93b98c3722e6f3fbc112bc1c9ef20c045c3d40637e45 | |||
| 18 | 19 | ||
| 19 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 20 | 21 | ||
| 21 | inherit setuptools | 22 | inherit setuptools update-rc.d |
| 22 | 23 | ||
| 23 | SERVICE_TOKEN = "password" | 24 | SERVICE_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 | ||
| 84 | RDEPENDS_${SRCNAME} = "${PN} \ | 91 | RDEPENDS_${SRCNAME} = "${PN} \ |
| 85 | postgresql postgresql-client python-psycopg2" | 92 | postgresql postgresql-client python-psycopg2" |
| 93 | |||
| 94 | INITSCRIPT_PACKAGES = "${SRCNAME}" | ||
| 95 | INITSCRIPT_NAME_${SRCNAME} = "keystone" | ||
