Heat: how to provide the user_data script path
Hi, I have trying to execute cloud init script (post boot), but not sure how to provide the file path. part of the template looks like this. Also "heat-preview" shows that, always file mentioned in default section of "parameter" is passed to resources, thought we pass different file name from "environemnt.yaml" file.
parameter:
config_file:
type: string
default: cloudfile.sh
resources:
config_drive: "true"
user_data :
str_replace:
template: |
{ get_file : cloudfile.sh }
params:
$config_file: { get_param: config_file }
In my case "cloudfile.sh " is placed in same directory where launcher.yaml and environment.yaml files are located.