Browse code

Install heat-cfntools and heat-templates repos

These projects contain agents which can be installed on custom
images. Installing these repos will allow a future change to
build a custom image containing these projects. This will allow
gating on any changes in these projects by running heat-slow
on the custom image.
The corresponding devstack-gate change is
https://review.openstack.org/#/c/92055/
Change-Id: I7b1343c094f755f79ddeb1bac3ff4c0daa3fb70c

Steve Baker authored on 2014/05/27 09:24:18
Showing 3 changed files
... ...
@@ -31,6 +31,8 @@ set +o xtrace
31 31
 # set up default directories
32 32
 HEAT_DIR=$DEST/heat
33 33
 HEATCLIENT_DIR=$DEST/python-heatclient
34
+HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools
35
+HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates
34 36
 HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
35 37
 HEAT_STANDALONE=`trueorfalse False $HEAT_STANDALONE`
36 38
 HEAT_CONF_DIR=/etc/heat
... ...
@@ -179,6 +181,12 @@ function install_heat {
179 179
     git_clone $HEAT_REPO $HEAT_DIR $HEAT_BRANCH
180 180
 }
181 181
 
182
+# install_heat_other() - Collect source and prepare
183
+function install_heat_other {
184
+    git_clone $HEAT_CFNTOOLS_REPO $HEAT_CFNTOOLS_DIR $HEAT_CFNTOOLS_BRANCH
185
+    git_clone $HEAT_TEMPLATES_REPO $HEAT_TEMPLATES_REPO_DIR $HEAT_TEMPLATES_BRANCH
186
+}
187
+
182 188
 # start_heat() - Start running processes, including screen
183 189
 function start_heat {
184 190
     screen_it h-eng "cd $HEAT_DIR; bin/heat-engine --config-file=$HEAT_CONF"
... ...
@@ -812,6 +812,7 @@ fi
812 812
 
813 813
 if is_service_enabled heat; then
814 814
     install_heat
815
+    install_heat_other
815 816
     cleanup_heat
816 817
     configure_heat
817 818
 fi
... ...
@@ -140,6 +140,14 @@ HEAT_BRANCH=${HEAT_BRANCH:-master}
140 140
 HEATCLIENT_REPO=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git}
141 141
 HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master}
142 142
 
143
+# heat-cfntools server agent
144
+HEAT_CFNTOOLS_REPO=${HEAT_CFNTOOLS_REPO:-${GIT_BASE}/openstack/heat-cfntools.git}
145
+HEAT_CFNTOOLS_BRANCH=${HEAT_CFNTOOLS_BRANCH:-master}
146
+
147
+# heat example templates and elements
148
+HEAT_TEMPLATES_REPO=${HEAT_TEMPLATES_REPO:-${GIT_BASE}/openstack/heat-templates.git}
149
+HEAT_TEMPLATES_BRANCH=${HEAT_TEMPLATES_BRANCH:-master}
150
+
143 151
 # django powered web control panel for openstack
144 152
 HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git}
145 153
 HORIZON_BRANCH=${HORIZON_BRANCH:-master}