heat_template_version: 2018-08-31 parameters: image: type: string default: bionic flavor: type: string default: m1.small network: type: string default: d486570f-55aa-4516-b5c2-ae766e07d626 resources: config: type: OS::Heat::SoftwareConfig properties: group: script inputs: - name: foo - name: bar outputs: - name: result config: | #!/bin/sh -x echo "Writing to /tmp/$bar" echo $foo > /tmp/$bar echo -n "The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action" > $heat_outputs_path.result echo "Written to /tmp/$bar" echo "Output to stderr" 1>&2 deployment: type: OS::Heat::SoftwareDeployment properties: config: get_resource: config server: get_resource: server input_values: foo: fooooo bar: baaaaa server: type: OS::Nova::Server properties: image: {get_param: image} flavor: {get_param: flavor} #key_name: {get_param: key_name} networks: - network: {get_param: network} user_data_format: SOFTWARE_CONFIG outputs: result: value: get_attr: [deployment, result] stdout: value: get_attr: [deployment, deploy_stdout]