Ask Your Question

Can we extend Heat to perform a specific operation in the application which is running in a VM?

asked 2014-08-06 12:39:17 -0600

Satyanarayana Patibandla gravatar image

updated 2014-08-08 15:41:12 -0600

smaffulli gravatar image

If I have installed a application in a VM. Can I extend the existing heat to perform specific operation in the application. If it is possible then please let me know how to extend heat?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-08 16:11:11 -0600

fgorbat gravatar image

updated 2014-08-08 16:12:04 -0600

You can do any operation by utilizing the user_data attribute and run shell scripting See example:

    type: OS::Nova::Server
      name: MyHost
      image: { get_param: db_image }
      flavor: { get_param: db_flavor }
      key_name: { get_param: key_name }
        - port: { get_resource: MyHost_port }
          template: |
            #!/bin/bash -x
            mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
            /bin/sed -e "s/PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config.bak >> /etc/ssh/sshd_config

More infor:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-08-06 12:39:17 -0600

Seen: 112 times

Last updated: Aug 08 '14