diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-barbican_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-barbican_git.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-barbican_git.bb b/meta-openstack/recipes-devtools/python/python-barbican_git.bb index f7eea61..308bb77 100644 --- a/meta-openstack/recipes-devtools/python/python-barbican_git.bb +++ b/meta-openstack/recipes-devtools/python/python-barbican_git.bb | |||
| @@ -21,6 +21,24 @@ S = "${WORKDIR}/git" | |||
| 21 | 21 | ||
| 22 | inherit update-rc.d setuptools identity hosts useradd default_configs | 22 | inherit update-rc.d setuptools identity hosts useradd default_configs |
| 23 | 23 | ||
| 24 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup" | ||
| 25 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 26 | |||
| 27 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 28 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 29 | # Parameters not in the list will be set to empty. | ||
| 30 | |||
| 31 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 32 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 33 | python () { | ||
| 34 | flags = {'type':'keystore',\ | ||
| 35 | 'description':'Barbican Key Management Service',\ | ||
| 36 | 'publicurl':"'http://${KEYSTONE_HOST}:9311/v1'",\ | ||
| 37 | 'adminurl':"'http://${KEYSTONE_HOST}:9312/v1'",\ | ||
| 38 | 'internalurl':"'http://${KEYSTONE_HOST}:9313/v1'"} | ||
| 39 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 40 | } | ||
| 41 | |||
| 24 | do_install_append() { | 42 | do_install_append() { |
| 25 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} | 43 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} |
| 26 | BARBICAN_CONF_DIR=${D}${sysconfdir}/${SRCNAME} | 44 | BARBICAN_CONF_DIR=${D}${sysconfdir}/${SRCNAME} |
