Ask Your Question

Revision history [back]

Hi Reeni,

Answering your first question: Yes, you can deploy an application with a VM launch. In your HEAT template, include this section for that particular VM.

user_data:
  str_replace:
    template: |
      < your script for ur application >

Your second question: Yes you can decide for which VM you want to run this script. Just include the above section for the machines of your choice.

The generic syntax for your use case would be:

my_instance:
  type: OS::Nova::Server
  depends_on: <..>
  properties: 
    networks: <..>
    user_data_format: RAW
    user_data:
      str_replace:
        template: |
        params: