diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-03-18 21:01:00 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-24 16:41:59 -0400 |
| commit | d156d7e1155fc325cb398f98ed41b540031c9df3 (patch) | |
| tree | ba2a39a7f0254c7353a45356b01e3ecc87246eab /meta-openstack/recipes-devtools/python/python-cinder_git.bb | |
| parent | 70ed2ece07ffc406249dcc4edc17ee2cdfcf5d9d (diff) | |
| download | meta-cloud-services-d156d7e1155fc325cb398f98ed41b540031c9df3.tar.gz | |
cinder: enable cinder-backup to use ceph
Enable cinder-backup to use ceph as backend. It mainly
changes cinder.conf and creates cinder-backup package.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index e03b54f..a06aca7 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
| @@ -54,6 +54,8 @@ do_install_append() { | |||
| 54 | install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api | 54 | install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api |
| 55 | sed 's:@suffix@:scheduler:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-scheduler.init.sh | 55 | sed 's:@suffix@:scheduler:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-scheduler.init.sh |
| 56 | install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler | 56 | install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler |
| 57 | sed 's:@suffix@:backup:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-backup.init.sh | ||
| 58 | install -m 0755 ${WORKDIR}/cinder-backup.init.sh ${D}${sysconfdir}/init.d/cinder-backup | ||
| 57 | install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume | 59 | install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume |
| 58 | fi | 60 | fi |
| 59 | 61 | ||
| @@ -103,7 +105,7 @@ pkg_postinst_${SRCNAME}-setup () { | |||
| 103 | fi | 105 | fi |
| 104 | } | 106 | } |
| 105 | 107 | ||
| 106 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" | 108 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" |
| 107 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 109 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| 108 | 110 | ||
| 109 | FILES_${PN} = "${libdir}/*" | 111 | FILES_${PN} = "${libdir}/*" |
| @@ -120,6 +122,9 @@ FILES_${SRCNAME}-volume = "${bindir}/cinder-volume \ | |||
| 120 | FILES_${SRCNAME}-scheduler = "${bindir}/cinder-scheduler \ | 122 | FILES_${SRCNAME}-scheduler = "${bindir}/cinder-scheduler \ |
| 121 | ${sysconfdir}/init.d/cinder-scheduler" | 123 | ${sysconfdir}/init.d/cinder-scheduler" |
| 122 | 124 | ||
| 125 | FILES_${SRCNAME}-backup = "${bindir}/cinder-backup \ | ||
| 126 | ${sysconfdir}/init.d/cinder-backup" | ||
| 127 | |||
| 123 | FILES_${SRCNAME} = "${bindir}/* \ | 128 | FILES_${SRCNAME} = "${bindir}/* \ |
| 124 | ${sysconfdir}/${SRCNAME}/* \ | 129 | ${sysconfdir}/${SRCNAME}/* \ |
| 125 | ${localstatedir}/* \ | 130 | ${localstatedir}/* \ |
| @@ -166,10 +171,12 @@ RDEPENDS_${SRCNAME}-volume = "${SRCNAME}" | |||
| 166 | RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" | 171 | RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" |
| 167 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}" | 172 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}" |
| 168 | 173 | ||
| 169 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" | 174 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" |
| 170 | INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" | 175 | INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" |
| 171 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 176 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" |
| 172 | INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" | 177 | INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" |
| 173 | INITSCRIPT_PARAMS_${SRCNAME}-volume = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 178 | INITSCRIPT_PARAMS_${SRCNAME}-volume = "${OS_DEFAULT_INITSCRIPT_PARAMS}" |
| 174 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" | 179 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" |
| 175 | INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 180 | INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}" |
| 181 | INITSCRIPT_NAME_${SRCNAME}-backup = "cinder-backup" | ||
| 182 | INITSCRIPT_PARAMS_${SRCNAME}-backup = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
