How to modify a heat template to update a stack
Does someone have an example or explanation how to modify a stack template properly .I've been using the WordPress_Single_Instance template on Havana . As a test I'd like to change some settings in a running configuration but I suspect that only specific settings are to be specified in the modified template ,right ?
For example create a new file : ..... "systemctl restart httpd.service\n", "touch /tmp/kuku\n", <-------New def
Thanks .
Ok ,let's try this again . I have a stack ( mystack ) was deployed using this template :https://github.com/openstack/heat-templates/blob/master/cfn/F17/WordPress_Single_Instance.template
Now I want to update it - install openssl package for example .Then I add the following line in the tempate within the yum module : "openssl" : [],
and I run heat stack-update command using modified template .
Q. 1. Do I need to leave the rest template configurations as they were in original version ? 2. I left all defs as they are .After update commad - the stack's IP has changed .I may live with that .
but Wordpress is not accesible with a new IP . - I cannot ssh to the updated stack with ec2 user .Before stack update it worked ( ssh -i .ssh/id_rsa ec2-user@stack_IP) - remotely I see that updated stack's ports 80 and 3306 are not opened now ( nmap ) That's why I suspect that may be not all new template should be applied to the running stack but only part of the file . Thanks .