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 -0500

Satyanarayana Patibandla gravatar image

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

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 -0500

fgorbat gravatar image

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools


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

Seen: 125 times

Last updated: Aug 08 '14