OpenStack heat template syntax

Hi,

I am using OpenStack Heat template to generate vms, does anyone know how to increase numerical index?

According to the heat document, the numerical index can be used in the template:

name: my_server_%index%

How can I add one to the index number like following one (but that is not correct syntax)?

name: my_server_{{ %index% + 1 }}

Thanks.

- j

you might want to use with_sequence

Could you give an example how to run with_sequence in following heat template? The HOT template syntax is different to ansible template.

heat_HOT.yml:

name: my_server_%index%