%index% in resource group not returning index number
I'm not sure if I missed something but when creating a group of servers via the heat command line using the following template i get multiple servers with the name ob-devp-app-%index% instead of ob-devp-app1,ob-devp-app2,etc.....
heat_template_version: 2013-05-23
description: Template to deploy a number of servers
parameters:
pdc_app_server_count:
type: number
pdc_app_server_image:
type: string
pdc_app_server_flavour:
type: string
resources:
pdc_app_servers:
type: OS::Heat::ResourceGroup
properties:
count: { get_param: pdc_app_server_count }
resource_def:
type: OS::Nova::Server
properties:
name: ob-devp-app-%index%
image: { get_param: pdc_app_server_image }
flavor: { get_param: pdc_app_server_flavour }
networks:
- network: "fixed"
I've tried various different formats for the name property(enclosed in ",using _ as the sperator) but nothing seems to be working. reading the template guide I can't see anything obviously wrong with the template so I'm a bit stuck now. http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Heat::ResourceGroup (http://docs.openstack.org/developer/h...)