Ask Your Question
0

How to flatten nested Heat templates?

asked 2014-08-13 17:37:23 -0500

vahidh gravatar image

Is there a way to flatten a nested Heat template definition? For example the template at https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml makes a reference to the template https://raw.githubusercontent.com/openstack/heat-templates/master/hot/lb_server.yaml (lb_server.yaml). How does one merge the two in one?

edit retag flag offensive close merge delete

Comments

The design is to have templates provided as resource types. Why do you want to merge them?

Qiming gravatar imageQiming ( 2014-08-20 07:11:26 -0500 )edit

I was running into an error with a nested Heat template. The error pointed to a line number that did not make sense for the main template and the nested one. I was hoping by merging them I can better troubleshoot. But the issue is resolved now, turned out the nested template could not be accessed.

vahidh gravatar imagevahidh ( 2014-08-26 10:48:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-05 19:30:29 -0500

asalkeld gravatar image

Note:

heat help resource-list 
usage: heat resource-list [-n <DEPTH>] <NAME or ID>

Show list of resources belonging to a stack.

Positional arguments:
  <NAME or ID>          Name or ID of stack to show the resources for.

Optional arguments:
-n <DEPTH>, --nested-depth <DEPTH>
                    Depth of nested stacks from which to display
                    resources.

Try:

heat resource-list <stack name> -n 3
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-08-13 17:37:23 -0500

Seen: 994 times

Last updated: Aug 05 '15