diff options
| author | Andy Ning <andy.ning@windriver.com> | 2014-07-16 11:37:37 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-31 15:15:31 -0400 |
| commit | be2e56c0bbd019e450beca62f1cad13cf5fe37e4 (patch) | |
| tree | 7cbf2f17513a79242709706558af68682100bc00 /meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | |
| parent | f300718c549178e924699d4b8de7f98a7bad6375 (diff) | |
| download | meta-cloud-services-be2e56c0bbd019e450beca62f1cad13cf5fe37e4.tar.gz | |
Keystone: package service/user additions
Instead of creating tenant/user/role and service/endpoint for all
openstack services in keystone postinstall, now each of the services
creates its own keystone identities by queueing them up in its postinstall
to a file /etc/keystone/service-user-setup. service-user-setup
script, when run as the last postinstall, calls identity.sh with keystone
identity parameters to create necessary identities for the services.
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-ceilometer_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb index c3354c0..6e58cac 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb +++ b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | |||
| @@ -23,6 +23,32 @@ S = "${WORKDIR}/git" | |||
| 23 | 23 | ||
| 24 | CEILOMETER_SECRET ?= "12121212" | 24 | CEILOMETER_SECRET ?= "12121212" |
| 25 | 25 | ||
| 26 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup ${SRCNAME}-reseller" | ||
| 27 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 28 | |||
| 29 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 30 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 31 | # Parameters not in the list will be set to empty. | ||
| 32 | |||
| 33 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 34 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 35 | python () { | ||
| 36 | flags = {'type':'metering',\ | ||
| 37 | 'description':'OpenStack Metering Service',\ | ||
| 38 | 'publicurl':"'http://${KEYSTONE_HOST}:8777/'",\ | ||
| 39 | 'adminurl':"'http://${KEYSTONE_HOST}:8777/'",\ | ||
| 40 | 'internalurl':"'http://${KEYSTONE_HOST}:8777/'"} | ||
| 41 | |||
| 42 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 43 | } | ||
| 44 | |||
| 45 | # Add service user to service tenant as ResellerAdmin role | ||
| 46 | USERCREATE_PARAM_${SRCNAME}-reseller = "name pass tenant role email" | ||
| 47 | python () { | ||
| 48 | flags = {'role':'ResellerAdmin'} | ||
| 49 | d.setVarFlags("USERCREATE_PARAM_%s-reseller" % d.getVar('SRCNAME',True), flags) | ||
| 50 | } | ||
| 51 | |||
| 26 | do_configure_append() { | 52 | do_configure_append() { |
| 27 | # We are using postgresql support, hence this requirement is not valid | 53 | # We are using postgresql support, hence this requirement is not valid |
| 28 | # removing it, to avoid on-target runtime issues | 54 | # removing it, to avoid on-target runtime issues |
| @@ -104,8 +130,10 @@ PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" | |||
| 104 | PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator" | 130 | PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator" |
| 105 | PACKAGES += "${SRCNAME}-agent-notification" | 131 | PACKAGES += "${SRCNAME}-agent-notification" |
| 106 | PACKAGES += "${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" | 132 | PACKAGES += "${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" |
| 133 | PACKAGES += " ${SRCNAME}-reseller" | ||
| 107 | 134 | ||
| 108 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 135 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| 136 | ALLOW_EMPTY_${SRCNAME}-reseller = "1" | ||
| 109 | 137 | ||
| 110 | FILES_${PN} = "${libdir}/*" | 138 | FILES_${PN} = "${libdir}/*" |
| 111 | 139 | ||
| @@ -199,12 +227,13 @@ RDEPENDS_${PN} += " \ | |||
| 199 | python-pysnmp \ | 227 | python-pysnmp \ |
| 200 | " | 228 | " |
| 201 | 229 | ||
| 202 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common ${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator ${SRCNAME}-agent-notification \ | 230 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common ${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator ${SRCNAME}-agent-notification ${SRCNAME}-reseller \ |
| 203 | postgresql postgresql-client python-psycopg2 tgt" | 231 | postgresql postgresql-client python-psycopg2 tgt" |
| 204 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" | 232 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-controller" |
| 205 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" | 233 | RDEPENDS_${SRCNAME}-collector = "${SRCNAME}-controller" |
| 206 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" | 234 | RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common python-ceilometerclient libvirt" |
| 207 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-controller" | 235 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-controller" |
| 236 | RDEPENDS_${SRCNAME}-reseller = "postgresql sudo ${SRCNAME}-controller" | ||
| 208 | 237 | ||
| 209 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" | 238 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" |
| 210 | INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator ${SRCNAME}-agent-notification" | 239 | INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator ${SRCNAME}-agent-notification" |
