osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openstack] parameterizing server creation


Hi

I have a HOT file that has 4 Nova::Server resources. They differences
between them are minimal and, when I look at the file, I see a lot of
duplication. How can I reduce this. I've tried fiddling with the 'repeat'
intrinsic and StructuredConfig but with no luck. I basically want to create
a loop like the following in the pseudo code:

list_of_servers = ["s1", "s2", "s3", "s4"]
for server_name in list_of_servers:
    create_server(server_name)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180327/e985ae15/attachment.html>