Add ability to combine ID maps for multiple resource groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Jay Dobies |
Bug Description
This came up as a request on https:/
Can we please figure out a way (e.g via map_merge or repeat) to combine the maps of ID's from multiple resource groups, such that it's possible to do this:
group1:
type: OS::Heat:
properties:
count: {get_param: count_group1}
resource_def:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image }
flavor: { get_param: flavor }
group2:
type: OS::Heat:
properties:
count: {get_param: count_group2}
resource_def:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image }
flavor: { get_param: flavor }
allnodes_
type: OS::Heat:
properties:
servers:
<map_merge or repeat?>
- { get_attr: [group1, $resource_
- { get_attr: [group2, $resource_
Note we can't just use map_merge, because the keys will collide, so perhaps we can make repeat capable of generating maps, and iterating over each map adding a prefix related to the group name?
Changed in heat: | |
assignee: | nobody → Jay Dobies (jdob) |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |