From 66e9c7216387db234f695a5a378f64370b23203b Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 14 May 2014 16:11:41 -0400 Subject: heat: add example hot templates Add 2 hot templates which can be used to create heat stack for demonstrating heat stack lifecycle management and autoscaling Signed-off-by: Vu Tran --- meta-openstack/recipes-devtools/python/python-heat_git.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-heat_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb index b5dd958..94ea031 100644 --- a/meta-openstack/recipes-devtools/python/python-heat_git.bb +++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb @@ -10,6 +10,9 @@ SRCNAME = "heat" SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ file://heat.conf \ file://heat.init \ + file://autoscaling_example.template \ + file://one_vm_example.template \ + file://two_vms_example.template \ " SRCREV="58de9e6415f5bdabde708c8584b21b59b7e96a88" @@ -25,6 +28,7 @@ do_install_append() { install -m 600 ${TEMPLATE_CONF_DIR}/*.json ${HEAT_CONF_DIR} install -d ${HEAT_CONF_DIR}/templates install -m 600 ${TEMPLATE_CONF_DIR}/templates/* ${HEAT_CONF_DIR}/templates + install -m 600 ${WORKDIR}/*.template ${HEAT_CONF_DIR}/templates install -d ${HEAT_CONF_DIR}/environment.d install -m 600 ${TEMPLATE_CONF_DIR}/environment.d/* ${HEAT_CONF_DIR}/environment.d install -m 664 ${TEMPLATE_CONF_DIR}/api-paste.ini ${HEAT_CONF_DIR} @@ -82,7 +86,7 @@ pkg_postinst_${SRCNAME}-setup () { inherit setuptools identity hosts update-rc.d default_configs -PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" +PACKAGES += "${SRCNAME}-tests ${SRCNAME}-templates ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" PACKAGES += "${SRCNAME}-setup" ALLOW_EMPTY_${SRCNAME}-setup = "1" @@ -91,6 +95,8 @@ FILES_${PN} = "${libdir}/*" FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" +FILES_${SRCNAME}-templates = "${sysconfdir}/${SRCNAME}/templates/*" + FILES_${SRCNAME}-common = "${sysconfdir}/${SRCNAME}/* \ " @@ -157,7 +163,7 @@ RDEPENDS_${PN} += " \ python-pbr \ " -RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" +RDEPENDS_${SRCNAME}-engine = "${PN} ${SRCNAME}-templates ${SRCNAME}-common postgresql postgresql-client python-psycopg2 tgt" RDEPENDS_${SRCNAME}-api = "${SRCNAME}-engine" RDEPENDS_${SRCNAME}-api-cfn = "${SRCNAME}-engine" RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-engine" -- cgit v1.2.3-54-g00ecf