diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-22 16:34:17 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-25 16:17:20 -0500 |
| commit | 86398e60a1039f67c77c15974a002fc80b076298 (patch) | |
| tree | bb506f581d994b1358ea2f3e85d5db3ed8693df1 /meta-openstack/recipes-devtools/python | |
| parent | bebcf13e5eca199d98a2c94ef1c20da50cba7f51 (diff) | |
| download | meta-cloud-services-86398e60a1039f67c77c15974a002fc80b076298.tar.gz | |
init: remove remaining createdb commands to separate init packages
After moving all database creation initialization packages, we also
remove it from the RDEPENDS of the various control node recipes.
This allows images to select database initialization or skip it.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
7 files changed, 14 insertions, 11 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb index 5851500..70f9166 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb +++ b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | |||
| @@ -147,7 +147,7 @@ RDEPENDS_${PN} += " \ | |||
| 147 | python-pytz \ | 147 | python-pytz \ |
| 148 | " | 148 | " |
| 149 | 149 | ||
| 150 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-setup ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" | 150 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" |
| 151 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" | 151 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" |
| 152 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" | 152 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" |
| 153 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" | 153 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" |
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index 6e6f31b..28ae314 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
| @@ -49,7 +49,7 @@ do_install_append() { | |||
| 49 | fi | 49 | fi |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | pkg_postinst_${SRCNAME} () { | 52 | pkg_postinst_${SRCNAME}-setup () { |
| 53 | if [ "x$D" != "x" ]; then | 53 | if [ "x$D" != "x" ]; then |
| 54 | exit 1 | 54 | exit 1 |
| 55 | fi | 55 | fi |
| @@ -68,7 +68,8 @@ pkg_postinst_${SRCNAME} () { | |||
| 68 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf | 68 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | PACKAGES += "${SRCNAME} ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" | 71 | PACKAGES += "${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" |
| 72 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
| 72 | 73 | ||
| 73 | FILES_${PN} = "${libdir}/*" | 74 | FILES_${PN} = "${libdir}/*" |
| 74 | 75 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index 2fe4ed0..935fdc9 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb | |||
| @@ -58,7 +58,7 @@ do_install_append() { | |||
| 58 | fi | 58 | fi |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | pkg_postinst_${SRCNAME} () { | 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 |
| @@ -75,7 +75,8 @@ pkg_postinst_${SRCNAME} () { | |||
| 75 | glance-manage db_sync | 75 | glance-manage db_sync |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | PACKAGES += " ${SRCNAME} ${SRCNAME}-api ${SRCNAME}-registry" | 78 | PACKAGES += " ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" |
| 79 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
| 79 | 80 | ||
| 80 | FILES_${PN} = "${libdir}/*" | 81 | FILES_${PN} = "${libdir}/*" |
| 81 | 82 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb index abe3517..5cfd8bd 100644 --- a/meta-openstack/recipes-devtools/python/python-heat_git.bb +++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb | |||
| @@ -146,7 +146,7 @@ RDEPENDS_${PN} += " \ | |||
| 146 | python-pytz \ | 146 | python-pytz \ |
| 147 | " | 147 | " |
| 148 | 148 | ||
| 149 | RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-setup ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" | 149 | RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" |
| 150 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-engine" | 150 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-engine" |
| 151 | RDEPENDS_${SRCNAME}-api-cfn = "${SRCNAME}-engine" | 151 | RDEPENDS_${SRCNAME}-api-cfn = "${SRCNAME}-engine" |
| 152 | 152 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index e018d8d..dbc76d8 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb | |||
| @@ -109,8 +109,7 @@ RDEPENDS_${PN} += "python-pam \ | |||
| 109 | python-dogpile.cache \ | 109 | python-dogpile.cache \ |
| 110 | " | 110 | " |
| 111 | 111 | ||
| 112 | RDEPENDS_${SRCNAME} = "${PN} ${SRCNAME}-setup \ | 112 | RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2" |
| 113 | postgresql postgresql-client python-psycopg2" | ||
| 114 | 113 | ||
| 115 | INITSCRIPT_PACKAGES = "${SRCNAME}" | 114 | INITSCRIPT_PACKAGES = "${SRCNAME}" |
| 116 | INITSCRIPT_NAME_${SRCNAME} = "keystone" | 115 | INITSCRIPT_NAME_${SRCNAME} = "keystone" |
diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb index 1cb0b9f..f33db97 100644 --- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb +++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb | |||
| @@ -181,7 +181,7 @@ RDEPENDS_${PN} += "python-paste \ | |||
| 181 | RDEPENDS_${SRCNAME} = "${PN} \ | 181 | RDEPENDS_${SRCNAME} = "${PN} \ |
| 182 | postgresql postgresql-client python-psycopg2" | 182 | postgresql postgresql-client python-psycopg2" |
| 183 | 183 | ||
| 184 | RDEPENDS_${SRCNAME}-server = "${SRCNAME} ${SRCNAME}-setup" | 184 | RDEPENDS_${SRCNAME}-server = "${SRCNAME}" |
| 185 | RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} ${SRCNAME}-plugin-openvswitch-setup openvswitch-switch " | 185 | RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} ${SRCNAME}-plugin-openvswitch-setup openvswitch-switch " |
| 186 | RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils" | 186 | RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils" |
| 187 | RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq" | 187 | RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq" |
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb index 14f9b05..6a065cb 100644 --- a/meta-openstack/recipes-devtools/python/python-nova_git.bb +++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb | |||
| @@ -105,7 +105,7 @@ do_install_append() { | |||
| 105 | fi | 105 | fi |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | pkg_postinst_${SRCNAME}-controller () { | 108 | pkg_postinst_${SRCNAME}-setup () { |
| 109 | if [ "x$D" != "x" ]; then | 109 | if [ "x$D" != "x" ]; then |
| 110 | exit 1 | 110 | exit 1 |
| 111 | fi | 111 | fi |
| @@ -139,7 +139,7 @@ GROUPADD_PARAM_${PN} = "--system nova" | |||
| 139 | USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ | 139 | USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ |
| 140 | --no-create-home --shell /bin/false nova" | 140 | --no-create-home --shell /bin/false nova" |
| 141 | 141 | ||
| 142 | PACKAGES += " ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" | 142 | PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" |
| 143 | PACKAGES += " ${SRCNAME}-consoleauth" | 143 | PACKAGES += " ${SRCNAME}-consoleauth" |
| 144 | PACKAGES += " ${SRCNAME}-novncproxy" | 144 | PACKAGES += " ${SRCNAME}-novncproxy" |
| 145 | PACKAGES += " ${SRCNAME}-network" | 145 | PACKAGES += " ${SRCNAME}-network" |
| @@ -148,6 +148,8 @@ PACKAGES += " ${SRCNAME}-cert" | |||
| 148 | PACKAGES += " ${SRCNAME}-conductor" | 148 | PACKAGES += " ${SRCNAME}-conductor" |
| 149 | PACKAGES += " ${SRCNAME}-api" | 149 | PACKAGES += " ${SRCNAME}-api" |
| 150 | 150 | ||
| 151 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
| 152 | |||
| 151 | FILES_${PN} = "${libdir}/*" | 153 | FILES_${PN} = "${libdir}/*" |
| 152 | 154 | ||
| 153 | FILES_${SRCNAME}-common = "${bindir}/nova-manage \ | 155 | FILES_${SRCNAME}-common = "${bindir}/nova-manage \ |
