[Openstack] HEAT - Conditional Statements
Brent Troge
brenttroge2016 at gmail.com
Mon Feb 22 20:50:02 UTC 2016
I have a heat template which accepts parameters/values via an environment
file.
This heat template creates x amount of cinder volumes based on the
parameter value
defined in the environment file.
I have instances that dont require cinder volumes, so it is possible that
the instances could
also use the same template. However HEAT chokes because I dont provide
values to create the cinder volumes.
So instead of having two templates, is it possible to put a conditional
check within
the heat template.
The condition check would be something like:
if cinder volume size = 0, then dont exercise the cinder resources
statements.
I am not sure something like this is currently supported by heat. So
hopefully the community has some suggestions or clues.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160222/542b932d/attachment.html>
More information about the Openstack
mailing list