Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for loop in HOT

Is there a way to use for-loop in HOT? It would be great if we can do something like this.

resources: {% for host in ['node01','node02','node03'] %} {{ host }}: type: OS::Nova::Server properties: key_name: mykey image: ubuntu-12.04 flavor: m1.small {% endfor %}

Thanks and best regards, Koji