From 32761a4961857bd7f46b31866edc24ec5ef2f614 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 5 Nov 2012 09:57:57 +1300 Subject: [PATCH] Install and configure python-heatclient. This uses the new REST API. It installs a client executable called 'heat'. The old heat client in the heat repo has been renamed to heat-cfn. Change-Id: I7bc8662c531e3639cc940a44df96ff426ac3aada --- lib/heat | 12 +++++++++++- stack.sh | 2 ++ stackrc | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/heat b/lib/heat index d1f1c7cf31..efdcfad33c 100644 --- a/lib/heat +++ b/lib/heat @@ -23,7 +23,7 @@ set +o xtrace # Defaults # -------- HEAT_DIR=$DEST/heat - +HEATCLIENT_DIR=$DEST/python-heatclient # set up default directories # cleanup_heat() - Remove residual data files, anything left over from previous @@ -33,6 +33,11 @@ function cleanup_heat() { : } +# configure_heatclient() - Set config files, create data dirs, etc +function configure_heatclient() { + setup_develop $HEATCLIENT_DIR +} + # configure_heat() - Set config files, create data dirs, etc function configure_heat() { setup_develop $HEAT_DIR @@ -193,6 +198,11 @@ function init_heat() { $HEAT_DIR/tools/nova_create_flavors.sh } +# install_heatclient() - Collect source and prepare +function install_heatclient() { + git_clone $HEATCLIENT_REPO $HEATCLIENT_DIR $HEATCLIENT_BRANCH +} + # install_heat() - Collect source and prepare function install_heat() { git_clone $HEAT_REPO $HEAT_DIR $HEAT_BRANCH diff --git a/stack.sh b/stack.sh index 1cd1e1a0c0..4d76949643 100755 --- a/stack.sh +++ b/stack.sh @@ -852,6 +852,7 @@ if is_service_enabled quantum; then fi if is_service_enabled heat; then install_heat + install_heatclient fi if is_service_enabled cinder; then install_cinder @@ -906,6 +907,7 @@ if is_service_enabled quantum; then fi if is_service_enabled heat; then configure_heat + configure_heatclient fi if is_service_enabled cinder; then configure_cinder diff --git a/stackrc b/stackrc index 283b2712c3..5be872baf9 100644 --- a/stackrc +++ b/stackrc @@ -101,6 +101,10 @@ TEMPEST_BRANCH=master HEAT_REPO=${GIT_BASE}/heat-api/heat.git HEAT_BRANCH=master +# python heat client library +HEATCLIENT_REPO=${GIT_BASE}/heat-api/python-heatclient.git +HEATCLIENT_BRANCH=master + # ryu service RYU_REPO=https://github.com/osrg/ryu.git RYU_BRANCH=master