get_file in cloud_config runcmd [closed]
Hello,
I want to know if we can use get_file to fetch a file with cloud_config's runcmd command?
For example, can this:
run_cloud_config:
type: OS::Heat::CloudConfig
properties:
cloud_config:
runcmd:
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
- sed -i -e '$aPasswordAuthentication yes' /etc/ssh/sshd_config
- restart ssh
be written as or something similar so that I could fetch the set of command from external source rather than keeping them in template:
run_cloud_config:
type: OS::Heat::CloudConfig
properties:
cloud_config:
runcmd:
- content: {get_file: <path to file>}