Allow the Resource name to be overridden and paramaterized in ResourceGroups

Registered by Paul Nelson

In order to assist in the supporting of underlying resources spun up by Heat, giving resources created by a resource group human-readable names (including numbering) would be very helpful.

Example: in a HoT, a ResourceGroup is defined to spin up 6 compute instances (e.g. web servers that would sit behind a load balancer). In order to help customer support easily locate those instances in a list, naming them something like this would be helpful:

web01.myawesomewebsite.com
web02.myawesomewebsite.com
web03.myawesomewebsite.com
web04.myawesomewebsite.com
web05.myawesomewebsite.com
web06.myawesomewebsite.com

Allowing the resource name to be overridden in the template and defined with a parameter would allow this. In Python string formatting terms, this would be something like:

for number in range(0, 7):
  print "%s%02d%s" % ('web', number, '.myawesomewebsite.com')

So, being able to achieve something similar in a template would be very helpful.

It would also be very helpful to be able to then refer to the resource by it's generated resource name elsewhere in the template.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Paul Nelson
Direction:
Needs approval
Assignee:
Randall Burt
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon next
Started by
Randall Burt
Completed by
Randall Burt

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/override-resource-name-in-resource-group,n,z

Addressed by: https://review.openstack.org/88636
    Add "index_var" property to the resource group resource

Addressed by: https://review.openstack.org/106198
    Parse RST in plug-in class docs

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.