Ask Your Question

Revision history [back]

Hi boniamd,

In your case instead of executing custom script as part of User-Data on launching a VM, it can be executed by defining a separate resource software-config/deploy and make it as dependency to volume attachment task so that the script execution will be done only after volume is attached.

Please refer cirros-hello-world.yaml heat template on how to define a software config resource to execute shell script.