blob: 53eca25450aa5e83ce122ff712a7d3608884aea7 [file] [log] [blame]
Mate Lakat45ea0812013-09-25 10:00:29 +01001# lib/heat
Dean Troyer6d04fd72012-12-21 11:03:37 -06002# Install and start **Heat** service
3
Steve Bakerbfdad752012-08-18 09:00:42 +12004# To enable, add the following to localrc
Adam Spiers6a5aa7c2013-10-24 11:27:02 +01005#
6# ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
Steve Bakerbfdad752012-08-18 09:00:42 +12007
8# Dependencies:
Adam Spiers6a5aa7c2013-10-24 11:27:02 +01009#
Steve Bakerbfdad752012-08-18 09:00:42 +120010# - functions
11
12# stack.sh
13# ---------
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010014# - install_heatclient
15# - install_heat
16# - configure_heatclient
17# - configure_heat
18# - init_heat
19# - start_heat
20# - stop_heat
21# - cleanup_heat
Steve Bakerbfdad752012-08-18 09:00:42 +120022
Dean Troyer7903b792012-09-13 17:16:12 -050023# Save trace setting
24XTRACE=$(set +o | grep xtrace)
25set +o xtrace
Steve Bakerbfdad752012-08-18 09:00:42 +120026
27
28# Defaults
29# --------
Dean Troyercc6b4432013-04-08 15:38:03 -050030
31# set up default directories
Steve Bakerbfdad752012-08-18 09:00:42 +120032HEAT_DIR=$DEST/heat
Steve Baker32761a42012-11-05 09:57:57 +130033HEATCLIENT_DIR=$DEST/python-heatclient
Steve Baker315971d2014-05-27 12:24:18 +120034HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools
35HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates
Steve Bakerc3249082013-04-09 13:41:47 +120036HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
Steve Baker389b3a02013-08-01 10:44:09 +120037HEAT_STANDALONE=`trueorfalse False $HEAT_STANDALONE`
Angus Salkeldf645a852013-08-26 10:13:36 +100038HEAT_CONF_DIR=/etc/heat
Angus Salkelda213e2c2013-08-30 10:48:46 +100039HEAT_CONF=$HEAT_CONF_DIR/heat.conf
Angus Salkeldf645a852013-08-26 10:13:36 +100040HEAT_ENV_DIR=$HEAT_CONF_DIR/environment.d
Angus Salkeldfb71a272013-08-26 10:15:38 +100041HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates
Steve Baker16aca8a2014-03-11 14:01:57 +130042HEAT_STACK_DOMAIN=`trueorfalse True $HEAT_STACK_DOMAIN`
Steve Bakere389aed2014-09-23 17:10:39 +120043HEAT_API_HOST=${HEAT_API_HOST:-$HOST_IP}
44HEAT_API_PORT=${HEAT_API_PORT:-8004}
Dean Troyercc6b4432013-04-08 15:38:03 -050045
Steven Hardyf83cf932014-03-12 16:54:01 +000046# other default options
47HEAT_DEFERRED_AUTH=${HEAT_DEFERRED_AUTH:-trusts}
48
Dean Troyer4237f592014-01-29 16:22:11 -060049# Tell Tempest this project is present
50TEMPEST_SERVICES+=,heat
51
52
Dean Troyercc6b4432013-04-08 15:38:03 -050053# Functions
54# ---------
Steve Bakerbfdad752012-08-18 09:00:42 +120055
Sean Dague29870cc2014-03-14 14:32:01 -040056# Test if any Heat services are enabled
57# is_heat_enabled
58function is_heat_enabled {
59 [[ ,${ENABLED_SERVICES} =~ ,"h-" ]] && return 0
60 return 1
61}
62
Steve Bakerbfdad752012-08-18 09:00:42 +120063# cleanup_heat() - Remove residual data files, anything left over from previous
64# runs that a clean run would need to clean up
Ian Wienandaee18c72014-02-21 15:35:08 +110065function cleanup_heat {
Steve Bakerc3249082013-04-09 13:41:47 +120066 sudo rm -rf $HEAT_AUTH_CACHE_DIR
Angus Salkeldf645a852013-08-26 10:13:36 +100067 sudo rm -rf $HEAT_ENV_DIR
Angus Salkeldfb71a272013-08-26 10:15:38 +100068 sudo rm -rf $HEAT_TEMPLATES_DIR
Steve Bakerbfdad752012-08-18 09:00:42 +120069}
70
71# configure_heat() - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +110072function configure_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +120073 setup_develop $HEAT_DIR
Steve Bakere389aed2014-09-23 17:10:39 +120074 if [[ "$HEAT_STANDALONE" = "True" ]]; then
75 setup_develop $HEAT_DIR/contrib/heat_keystoneclient_v2
76 fi
Steve Bakerbfdad752012-08-18 09:00:42 +120077
Steve Bakerbfdad752012-08-18 09:00:42 +120078 if [[ ! -d $HEAT_CONF_DIR ]]; then
79 sudo mkdir -p $HEAT_CONF_DIR
80 fi
Attila Fazekas91b8d132013-01-06 22:40:09 +010081 sudo chown $STACK_USER $HEAT_CONF_DIR
Angus Salkelda213e2c2013-08-30 10:48:46 +100082 # remove old config files
83 rm -f $HEAT_CONF_DIR/heat-*.conf
Steve Bakerbfdad752012-08-18 09:00:42 +120084
Steve Bakere61bc612014-01-27 15:21:29 +130085 HEAT_API_CFN_HOST=${HEAT_API_CFN_HOST:-$HOST_IP}
Angus Salkelde2790212012-09-11 11:24:09 +100086 HEAT_API_CFN_PORT=${HEAT_API_CFN_PORT:-8000}
Steve Bakerbfdad752012-08-18 09:00:42 +120087 HEAT_ENGINE_HOST=${HEAT_ENGINE_HOST:-$SERVICE_HOST}
88 HEAT_ENGINE_PORT=${HEAT_ENGINE_PORT:-8001}
Steve Bakere61bc612014-01-27 15:21:29 +130089 HEAT_API_CW_HOST=${HEAT_API_CW_HOST:-$HOST_IP}
Angus Salkelde2790212012-09-11 11:24:09 +100090 HEAT_API_CW_PORT=${HEAT_API_CW_PORT:-8003}
Steve Bakerd5cd79b2013-04-13 11:14:41 -070091 HEAT_API_PASTE_FILE=$HEAT_CONF_DIR/api-paste.ini
92 HEAT_POLICY_FILE=$HEAT_CONF_DIR/policy.json
93
94 cp $HEAT_DIR/etc/heat/api-paste.ini $HEAT_API_PASTE_FILE
95 cp $HEAT_DIR/etc/heat/policy.json $HEAT_POLICY_FILE
Angus Salkelda213e2c2013-08-30 10:48:46 +100096 cp $HEAT_DIR/etc/heat/heat.conf.sample $HEAT_CONF
Steve Bakerbfdad752012-08-18 09:00:42 +120097
Angus Salkelda213e2c2013-08-30 10:48:46 +100098 # common options
99 iniset_rpc_backend heat $HEAT_CONF DEFAULT
100 iniset $HEAT_CONF DEFAULT heat_metadata_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT
101 iniset $HEAT_CONF DEFAULT heat_waitcondition_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1/waitcondition
102 iniset $HEAT_CONF DEFAULT heat_watch_server_url http://$HEAT_API_CW_HOST:$HEAT_API_CW_PORT
Angus Salkelde2314382013-11-14 14:36:46 +1100103 iniset $HEAT_CONF database connection `database_connection_url heat`
Attila Fazekasf71b5002014-05-28 09:52:22 +0200104 iniset $HEAT_CONF DEFAULT auth_encryption_key $(generate_hex_string 16)
Steve Bakerbfdad752012-08-18 09:00:42 +1200105
Bartosz Górski0abde392014-02-28 14:15:19 +0100106 iniset $HEAT_CONF DEFAULT region_name_for_services "$REGION_NAME"
107
Angus Salkelda213e2c2013-08-30 10:48:46 +1000108 # logging
109 iniset $HEAT_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
110 iniset $HEAT_CONF DEFAULT use_syslog $SYSLOG
Steve Baker556ffe42013-08-06 16:42:38 +1200111 if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
112 # Add color to logging output
Arata Notsu4897ff52013-10-09 18:49:32 +0900113 setup_colorized_logging $HEAT_CONF DEFAULT tenant user
Steve Baker556ffe42013-08-06 16:42:38 +1200114 fi
115
Brant Knudson05952372014-09-19 17:22:22 -0500116 configure_auth_token_middleware $HEAT_CONF heat $HEAT_AUTH_CACHE_DIR
Angus Salkelde2790212012-09-11 11:24:09 +1000117
Rob Crittendenfefd64b2014-05-27 22:27:15 -0400118 if is_ssl_enabled_service "key"; then
Rob Crittenden18d47782014-03-19 17:47:42 -0400119 iniset $HEAT_CONF clients_keystone ca_file $SSL_BUNDLE_FILE
Rob Crittendenfefd64b2014-05-27 22:27:15 -0400120 fi
121
Angus Salkelda213e2c2013-08-30 10:48:46 +1000122 # ec2authtoken
Jamie Lennox3561d7f2014-05-21 17:18:43 +1000123 iniset $HEAT_CONF ec2authtoken auth_uri $KEYSTONE_SERVICE_URI/v2.0
Angus Salkelda213e2c2013-08-30 10:48:46 +1000124
125 # paste_deploy
Steve Bakere389aed2014-09-23 17:10:39 +1200126 if [[ "$HEAT_STANDALONE" = "True" ]]; then
127 iniset $HEAT_CONF paste_deploy flavor standalone
128 iniset $HEAT_CONF DEFAULT keystone_backend heat_keystoneclient_v2.client.KeystoneClientV2
129 iniset $HEAT_CONF clients_heat url "http://$HEAT_API_HOST:$HEAT_API_PORT/v1/%(tenant_id)s"
130 fi
Angus Salkelda213e2c2013-08-30 10:48:46 +1000131
132 # OpenStack API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000133 iniset $HEAT_CONF heat_api bind_port $HEAT_API_PORT
134
135 # Cloudformation API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000136 iniset $HEAT_CONF heat_api_cfn bind_port $HEAT_API_CFN_PORT
137
138 # Cloudwatch API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000139 iniset $HEAT_CONF heat_api_cloudwatch bind_port $HEAT_API_CW_PORT
Angus Salkelde2790212012-09-11 11:24:09 +1000140
Rob Crittenden18d47782014-03-19 17:47:42 -0400141 if is_ssl_enabled_service "key" || is_service_enabled tls-proxy; then
142 iniset $HEAT_CONF clients_keystone ca_file $SSL_BUNDLE_FILE
143 fi
144
145 if is_ssl_enabled_service "nova" || is_service_enabled tls-proxy; then
146 iniset $HEAT_CONF clients_nova ca_file $SSL_BUNDLE_FILE
147 fi
148
149 if is_ssl_enabled_service "cinder" || is_service_enabled tls-proxy; then
150 iniset $HEAT_CONF clients_cinder ca_file $SSL_BUNDLE_FILE
151 fi
152
Angus Salkeldf645a852013-08-26 10:13:36 +1000153 # heat environment
154 sudo mkdir -p $HEAT_ENV_DIR
155 sudo chown $STACK_USER $HEAT_ENV_DIR
156 # copy the default environment
157 cp $HEAT_DIR/etc/heat/environment.d/* $HEAT_ENV_DIR/
158
Angus Salkeldfb71a272013-08-26 10:15:38 +1000159 # heat template resources.
160 sudo mkdir -p $HEAT_TEMPLATES_DIR
161 sudo chown $STACK_USER $HEAT_TEMPLATES_DIR
162 # copy the default templates
163 cp $HEAT_DIR/etc/heat/templates/* $HEAT_TEMPLATES_DIR/
164
Steve Bakerbfdad752012-08-18 09:00:42 +1200165}
166
167# init_heat() - Initialize database
Ian Wienandaee18c72014-02-21 15:35:08 +1100168function init_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +1200169
170 # (re)create heat database
Terry Wilson428af5a2012-11-01 16:12:39 -0400171 recreate_database heat utf8
Steve Bakerbfdad752012-08-18 09:00:42 +1200172
Steve Bakere3111322013-06-19 13:57:31 +1200173 $HEAT_DIR/bin/heat-manage db_sync
Steve Bakerc3249082013-04-09 13:41:47 +1200174 create_heat_cache_dir
175}
176
177# create_heat_cache_dir() - Part of the init_heat() process
Ian Wienandaee18c72014-02-21 15:35:08 +1100178function create_heat_cache_dir {
Steve Bakerc3249082013-04-09 13:41:47 +1200179 # Create cache dirs
Angus Salkelde1186552013-09-06 13:35:09 +1000180 sudo mkdir -p $HEAT_AUTH_CACHE_DIR
181 sudo chown $STACK_USER $HEAT_AUTH_CACHE_DIR
Steve Bakerbfdad752012-08-18 09:00:42 +1200182}
183
Steve Baker32761a42012-11-05 09:57:57 +1300184# install_heatclient() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100185function install_heatclient {
Steve Baker32761a42012-11-05 09:57:57 +1300186 git_clone $HEATCLIENT_REPO $HEATCLIENT_DIR $HEATCLIENT_BRANCH
Sean Dagued644e232013-07-25 15:34:48 -0400187 setup_develop $HEATCLIENT_DIR
Attila Fazekas8664ca52014-02-02 10:07:39 +0100188 sudo install -D -m 0644 -o $STACK_USER {$HEATCLIENT_DIR/tools/,/etc/bash_completion.d/}heat.bash_completion
Steve Baker32761a42012-11-05 09:57:57 +1300189}
190
Steve Bakerbfdad752012-08-18 09:00:42 +1200191# install_heat() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100192function install_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +1200193 git_clone $HEAT_REPO $HEAT_DIR $HEAT_BRANCH
194}
195
Steve Baker315971d2014-05-27 12:24:18 +1200196# install_heat_other() - Collect source and prepare
197function install_heat_other {
198 git_clone $HEAT_CFNTOOLS_REPO $HEAT_CFNTOOLS_DIR $HEAT_CFNTOOLS_BRANCH
199 git_clone $HEAT_TEMPLATES_REPO $HEAT_TEMPLATES_REPO_DIR $HEAT_TEMPLATES_BRANCH
200}
201
Steve Bakerbfdad752012-08-18 09:00:42 +1200202# start_heat() - Start running processes, including screen
Ian Wienandaee18c72014-02-21 15:35:08 +1100203function start_heat {
Chris Dent2f27a0e2014-09-09 13:46:02 +0100204 run_process h-eng "$HEAT_DIR/bin/heat-engine --config-file=$HEAT_CONF"
205 run_process h-api "$HEAT_DIR/bin/heat-api --config-file=$HEAT_CONF"
206 run_process h-api-cfn "$HEAT_DIR/bin/heat-api-cfn --config-file=$HEAT_CONF"
207 run_process h-api-cw "$HEAT_DIR/bin/heat-api-cloudwatch --config-file=$HEAT_CONF"
Steve Bakerbfdad752012-08-18 09:00:42 +1200208}
209
Dean Troyer699a29f2012-09-10 14:10:27 -0500210# stop_heat() - Stop running processes
Ian Wienandaee18c72014-02-21 15:35:08 +1100211function stop_heat {
Kieran Spear70338292013-05-28 11:31:31 +1000212 # Kill the screen windows
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500213 local serv
Kieran Spear70338292013-05-28 11:31:31 +1000214 for serv in h-eng h-api h-api-cfn h-api-cw; do
Chris Dent2f27a0e2014-09-09 13:46:02 +0100215 stop_process $serv
Dean Troyer699a29f2012-09-10 14:10:27 -0500216 done
Steve Bakerbfdad752012-08-18 09:00:42 +1200217}
Dean Troyer7903b792012-09-13 17:16:12 -0500218
Steven Hardy33d1f862014-02-13 15:00:33 +0000219# create_heat_accounts() - Set up common required heat accounts
Ian Wienandaee18c72014-02-21 15:35:08 +1100220function create_heat_accounts {
Steven Hardy57d478d2014-02-28 16:37:43 +0000221 # migrated from files/keystone_data.sh
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500222 local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
223 local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
Steven Hardy57d478d2014-02-28 16:37:43 +0000224
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500225 local heat_user=$(get_or_create_user "heat" \
226 "$SERVICE_PASSWORD" $service_tenant)
227 get_or_add_user_role $admin_role $heat_user $service_tenant
Bartosz Górski0abde392014-02-28 14:15:19 +0100228
Steven Hardy57d478d2014-02-28 16:37:43 +0000229 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
Bartosz Górski0abde392014-02-28 14:15:19 +0100230
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500231 local heat_service=$(get_or_create_service "heat" \
Bartosz Górski0abde392014-02-28 14:15:19 +0100232 "orchestration" "Heat Orchestration Service")
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500233 get_or_create_endpoint $heat_service \
Bartosz Górski0abde392014-02-28 14:15:19 +0100234 "$REGION_NAME" \
235 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s" \
236 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s" \
237 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s"
238
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500239 local heat_cfn_service=$(get_or_create_service "heat-cfn" \
Bartosz Górski0abde392014-02-28 14:15:19 +0100240 "cloudformation" "Heat CloudFormation Service")
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500241 get_or_create_endpoint $heat_cfn_service \
Bartosz Górski0abde392014-02-28 14:15:19 +0100242 "$REGION_NAME" \
243 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1" \
244 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1" \
245 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1"
Steven Hardy57d478d2014-02-28 16:37:43 +0000246 fi
247
248 # heat_stack_user role is for users created by Heat
Bartosz Górski0abde392014-02-28 14:15:19 +0100249 get_or_create_role "heat_stack_user"
Steven Hardy57d478d2014-02-28 16:37:43 +0000250
Steven Hardyf83cf932014-03-12 16:54:01 +0000251 if [[ $HEAT_DEFERRED_AUTH == trusts ]]; then
Bartosz Górski0abde392014-02-28 14:15:19 +0100252
Steven Hardyf83cf932014-03-12 16:54:01 +0000253 # heat_stack_owner role is given to users who create Heat stacks,
254 # it's the default role used by heat to delegate to the heat service
255 # user (for performing deferred operations via trusts), see heat.conf
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500256 local heat_owner_role=$(get_or_create_role "heat_stack_owner")
Steven Hardy2ca3bf12014-03-03 18:07:33 +0000257
Steven Hardyf83cf932014-03-12 16:54:01 +0000258 # Give the role to the demo and admin users so they can create stacks
259 # in either of the projects created by devstack
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500260 get_or_add_user_role $heat_owner_role demo demo
261 get_or_add_user_role $heat_owner_role admin demo
262 get_or_add_user_role $heat_owner_role admin admin
Steven Hardyf83cf932014-03-12 16:54:01 +0000263 iniset $HEAT_CONF DEFAULT deferred_auth_method trusts
264 fi
Steven Hardy2ca3bf12014-03-03 18:07:33 +0000265
Steve Baker16aca8a2014-03-11 14:01:57 +1300266 if [[ "$HEAT_STACK_DOMAIN" == "True" ]]; then
267 # Note we have to pass token/endpoint here because the current endpoint and
268 # version negotiation in OSC means just --os-identity-api-version=3 won't work
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500269 local ks_endpoint_v3="$KEYSTONE_SERVICE_URI/v3"
Steven Hardydd029da2014-02-24 18:09:10 +0000270
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500271 D_ID=$(openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100272 --os-identity-api-version=3 domain list | grep ' heat ' | get_field 1)
273
274 if [[ -z "$D_ID" ]]; then
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500275 D_ID=$(openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100276 --os-identity-api-version=3 domain create heat \
277 --description "Owns users and projects created by heat" \
278 | grep ' id ' | get_field 2)
Sirushti Murugesan2f92c8d2014-10-09 14:35:38 +0530279 iniset $HEAT_CONF DEFAULT stack_user_domain_id ${D_ID}
Bartosz Górski0abde392014-02-28 14:15:19 +0100280
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500281 openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100282 --os-identity-api-version=3 user create --password $SERVICE_PASSWORD \
283 --domain $D_ID heat_domain_admin \
284 --description "Manages users and projects created by heat"
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500285 openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100286 --os-identity-api-version=3 role add \
287 --user heat_domain_admin --domain ${D_ID} admin
288 iniset $HEAT_CONF DEFAULT stack_domain_admin heat_domain_admin
289 iniset $HEAT_CONF DEFAULT stack_domain_admin_password $SERVICE_PASSWORD
290 fi
Steve Baker16aca8a2014-03-11 14:01:57 +1300291 fi
Steven Hardy33d1f862014-02-13 15:00:33 +0000292}
293
Steve Baker2a6009c2014-05-05 16:13:39 +1200294# build_heat_functional_test_image() - Build and upload functional test image
295function build_heat_functional_test_image {
296 build_dib_pip_repo "$OCC_DIR $OAC_DIR $ORC_DIR $HEAT_CFNTOOLS_DIR"
297 local image_name=heat-functional-tests-image
298
299 # The elements to invoke disk-image-create with
300 local image_elements="vm fedora selinux-permissive pypi \
301 os-collect-config os-refresh-config os-apply-config heat-cfntools \
302 heat-config heat-config-cfn-init heat-config-puppet heat-config-script"
303
304 # Elements path for tripleo-image-elements and heat-templates software-config
305 local elements_path=$TIE_DIR/elements:$HEAT_TEMPLATES_REPO_DIR/hot/software-config/elements
306
307 disk_image_create_upload "$image_name" "$image_elements" "$elements_path"
308 iniset $TEMPEST_CONFIG orchestration image_ref $image_name
309}
310
Dean Troyer7903b792012-09-13 17:16:12 -0500311# Restore xtrace
312$XTRACE
Sean Dague584d90e2013-03-29 14:34:53 -0400313
Adam Spiers6a5aa7c2013-10-24 11:27:02 +0100314# Tell emacs to use shell-script-mode
315## Local variables:
316## mode: shell-script
317## End: