diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-heat_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-heat_git.bb | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb index 90a456c..fd21af2 100644 --- a/meta-openstack/recipes-devtools/python/python-heat_git.bb +++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb | |||
| @@ -20,6 +20,44 @@ SRCREV="45f97e6a840bbba2a467558e60549e664496633e" | |||
| 20 | PV="2014.2.b1+git${SRCPV}" | 20 | PV="2014.2.b1+git${SRCPV}" |
| 21 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
| 22 | 22 | ||
| 23 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup ${SRCNAME}-templates ${SRCNAME}-cfn" | ||
| 24 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 25 | |||
| 26 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 27 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 28 | # Parameters not in the list will be set to empty. | ||
| 29 | |||
| 30 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 31 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 32 | python () { | ||
| 33 | flags = {'type':'orchestration',\ | ||
| 34 | 'description':'OpenStack Orchestration Service',\ | ||
| 35 | 'publicurl':"'http://${KEYSTONE_HOST}:8004/v1/\$(tenant_id)s'",\ | ||
| 36 | 'adminurl':"'http://${KEYSTONE_HOST}:8004/v1/\$(tenant_id)s'",\ | ||
| 37 | 'internalurl':"'http://${KEYSTONE_HOST}:8004/v1/\$(tenant_id)s'"} | ||
| 38 | |||
| 39 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 40 | } | ||
| 41 | |||
| 42 | # heat stack template user role | ||
| 43 | USERCREATE_PARAM_${SRCNAME}-templates = "role" | ||
| 44 | python () { | ||
| 45 | flags = {'role':'heat_stack_user'} | ||
| 46 | d.setVarFlags("USERCREATE_PARAM_%s-templates" % d.getVar('SRCNAME',True), flags) | ||
| 47 | } | ||
| 48 | |||
| 49 | # api-cfn service | ||
| 50 | SERVICECREATE_PARAM_${SRCNAME}-cfn = "name type description region publicurl adminurl internalurl" | ||
| 51 | python () { | ||
| 52 | flags = {'name':'heat-cfn',\ | ||
| 53 | 'type':'cloudformation',\ | ||
| 54 | 'description':'OpenStack Cloudformation Service',\ | ||
| 55 | 'publicurl':"'http://${KEYSTONE_HOST}:8000/v1'",\ | ||
| 56 | 'adminurl':"'http://${KEYSTONE_HOST}:8000/v1'",\ | ||
| 57 | 'internalurl':"'http://${KEYSTONE_HOST}:8000/v1'"} | ||
| 58 | d.setVarFlags("SERVICECREATE_PARAM_%s-cfn" % d.getVar('SRCNAME',True), flags) | ||
| 59 | } | ||
| 60 | |||
| 23 | do_install_append() { | 61 | do_install_append() { |
| 24 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} | 62 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} |
| 25 | HEAT_CONF_DIR=${D}${sysconfdir}/${SRCNAME} | 63 | HEAT_CONF_DIR=${D}${sysconfdir}/${SRCNAME} |
| @@ -89,8 +127,11 @@ inherit setuptools identity hosts update-rc.d default_configs | |||
| 89 | 127 | ||
| 90 | PACKAGES += "${SRCNAME}-tests ${SRCNAME}-templates ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" | 128 | PACKAGES += "${SRCNAME}-tests ${SRCNAME}-templates ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" |
| 91 | PACKAGES += "${SRCNAME}-setup" | 129 | PACKAGES += "${SRCNAME}-setup" |
| 130 | PACKAGES += "${SRCNAME}-cfn" | ||
| 92 | 131 | ||
| 93 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 132 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| 133 | ALLOW_EMPTY_${SRCNAME}-templates = "1" | ||
| 134 | ALLOW_EMPTY_${SRCNAME}-cfn = "1" | ||
| 94 | 135 | ||
| 95 | FILES_${PN} = "${libdir}/*" | 136 | FILES_${PN} = "${libdir}/*" |
| 96 | 137 | ||
| @@ -164,10 +205,12 @@ RDEPENDS_${PN} += " \ | |||
| 164 | python-pbr \ | 205 | python-pbr \ |
| 165 | " | 206 | " |
| 166 | 207 | ||
| 167 | RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-templates ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" | 208 | RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-templates ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt ${SRCNAME}-cfn" |
| 168 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-engine" | 209 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}-engine" |
| 169 | RDEPENDS_${SRCNAME}-api-cfn = "${SRCNAME}-engine" | 210 | RDEPENDS_${SRCNAME}-api-cfn = "${SRCNAME}-engine" |
| 170 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-engine" | 211 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-engine" |
| 212 | RDEPENDS_${SRCNAME}-templates = "postgresql sudo" | ||
| 213 | RDEPENDS_${SRCNAME}-cfn = "postgresql sudo" | ||
| 171 | 214 | ||
| 172 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" | 215 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" |
| 173 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" | 216 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" |
