diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb index 95fa45b..83d583d 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb | |||
| @@ -10,6 +10,7 @@ SRCNAME = "cinder" | |||
| 10 | SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ | 10 | SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ |
| 11 | file://cinder.conf \ | 11 | file://cinder.conf \ |
| 12 | file://cinder.init \ | 12 | file://cinder.init \ |
| 13 | file://cinder-volume \ | ||
| 13 | " | 14 | " |
| 14 | 15 | ||
| 15 | SRC_URI[md5sum] = "8fbfbd8aad5f1a6d5e2a239b7801966d" | 16 | SRC_URI[md5sum] = "8fbfbd8aad5f1a6d5e2a239b7801966d" |
| @@ -41,8 +42,7 @@ do_install_append() { | |||
| 41 | install -d ${D}${sysconfdir}/init.d | 42 | install -d ${D}${sysconfdir}/init.d |
| 42 | sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh | 43 | sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh |
| 43 | install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api | 44 | install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api |
| 44 | sed 's:@suffix@:volume:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-volume.init.sh | 45 | install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume |
| 45 | install -m 0755 ${WORKDIR}/cinder-volume.init.sh ${D}${sysconfdir}/init.d/cinder-volume | ||
| 46 | fi | 46 | fi |
| 47 | } | 47 | } |
| 48 | 48 | ||
| @@ -61,6 +61,9 @@ pkg_postinst_${SRCNAME} () { | |||
| 61 | 61 | ||
| 62 | sudo -u postgres createdb cinder | 62 | sudo -u postgres createdb cinder |
| 63 | cinder-manage db sync | 63 | cinder-manage db sync |
| 64 | |||
| 65 | #Create cinder volume group backing file | ||
| 66 | [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing | ||
| 64 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf | 67 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf |
| 65 | } | 68 | } |
| 66 | 69 | ||
