diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-ceilometer_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb index fb5526d..5851500 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb +++ b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | |||
| @@ -58,16 +58,16 @@ do_install_append() { | |||
| 58 | fi | 58 | fi |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | pkg_postinst_${SRCNAME}-controller () { | 61 | pkg_postinst_${SRCNAME}-setup () { |
| 62 | if [ "x$D" != "x" ]; then | 62 | if [ "x$D" != "x" ]; then |
| 63 | exit 1 | 63 | exit 1 |
| 64 | fi | 64 | fi |
| 65 | 65 | ||
| 66 | # This is to make sure postgres is configured and running | 66 | # This is to make sure postgres is configured and running |
| 67 | if ! pidof postmaster > /dev/null; then | 67 | if ! pidof postmaster > /dev/null; then |
| 68 | /etc/init.d/postgresql-init | 68 | /etc/init.d/postgresql-init |
| 69 | /etc/init.d/postgresql start | 69 | /etc/init.d/postgresql start |
| 70 | sleep 5 | 70 | sleep 2 |
| 71 | fi | 71 | fi |
| 72 | 72 | ||
| 73 | mkdir /var/log/ceilometer | 73 | mkdir /var/log/ceilometer |
| @@ -77,7 +77,9 @@ pkg_postinst_${SRCNAME}-controller () { | |||
| 77 | 77 | ||
| 78 | inherit setuptools identity hosts update-rc.d | 78 | inherit setuptools identity hosts update-rc.d |
| 79 | 79 | ||
| 80 | PACKAGES += "${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" | 80 | PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" |
| 81 | |||
| 82 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
| 81 | 83 | ||
| 82 | FILES_${PN} = "${libdir}/*" | 84 | FILES_${PN} = "${libdir}/*" |
| 83 | 85 | ||
| @@ -145,7 +147,7 @@ RDEPENDS_${PN} += " \ | |||
| 145 | python-pytz \ | 147 | python-pytz \ |
| 146 | " | 148 | " |
| 147 | 149 | ||
| 148 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" | 150 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-setup ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" |
| 149 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" | 151 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" |
| 150 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" | 152 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" |
| 151 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" | 153 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" |
