Ask Your Question
1

Can you reverse generate a HOT template from an existing stack?

asked 2014-10-02 09:01:16 -0500

Heather gravatar image

updated 2014-10-06 08:19:00 -0500

zaneb gravatar image

I see numerous API calls that could be used to piece this together, but I was wondering if something already existed. I see the heat resource-template command that generates a skeleton HOT doc. heat resource-list, resource-show which provide some of the data.

it would be nice to be able to re-baseline your stack(s) to account for situations where people might use the dashboard or direct api calls to implement changes without your knowledge.

Update

This is excellent information. Thank you. The question we were grappling with was how to manage the change process and what to establish as the source document for the implementations.

edit retag flag offensive close merge delete

Comments

If you need to update your question, please edit the question rather than posting your updates as "answers". For smaller things (like asking for clarification), you can "add a comment" directly to the answer. If you have a new question, please open a new question.

larsks gravatar imagelarsks ( 2014-10-03 13:41:28 -0500 )edit

I removed the second question, as it has now been posted separately at https://ask.openstack.org/en/question...

zaneb gravatar imagezaneb ( 2014-10-06 08:19:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-10-02 15:02:39 -0500

zaneb gravatar image

updated 2014-10-06 08:17:40 -0500

There are some tools around such as Flame, which is focused on bringing existing infrastructure under Heat's control. In general it's impossible to infer all of the relationships correctly, but you can get pretty close heuristically.

What you're looking for is closer to what a tool called ReHeat is trying to do. However, I strongly, strongly recommend against working this way. The main goal of Heat is to allow you to update things through the template, and that power is lost if you use the APIs directly. If people are messing with the contents of your stacks without your knowledge, you should deny them access to your project in Keystone ;)

In the long term, we have plans to make Heat actually enforce this, by reversing any changes in a stacks resources not made through the template.

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

1 follower

Stats

Asked: 2014-10-02 09:01:16 -0500

Seen: 718 times

Last updated: Oct 06 '14