multiple templates in user_data of heat template
resources: my_instance:
type: OS::Nova::Server
properties:
# general properties ...
user_data:
str_replace:
template: |
#!/bin/bash
echo "Hello world"
echo "Setting MySQL root password"
mysqladmin -u root password $db_rootpassword
# do more things ...
params:
$db_rootpassword: { get_param: DBRootPassword }
I want to append another shell script (setup.sh) in user data as follows:
user_data:
str_replace:
**template**: |
#!/bin/bash
echo "Hello world"
echo "Setting MySQL root password"
mysqladmin -u root password $db_rootpassword
# do more things ...
**template**: {get_file: 'setup.sh'}
Is it allowed to define two template definitions in user_data as above. If not please suggest.