<div dir="ltr"><div>Sergey,</div><div><br></div>What do you think about adoption of/integration with other types of resource definition languages used in OpenStack, for example, Heat Orchestration Templates?<div><br></div>
<div>--</div><div>Best regards,</div><div>Oleg Gelbukh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 6:31 PM, Sergey Skripnick <span dir="ltr"><<a href="mailto:sskripnick@mirantis.com" target="_blank">sskripnick@mirantis.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Problem: what about deployment specific parts<br>
Template string in config? %imageid% or similar?<br>
Image name regex, rather than image name? so can work with multiple deployments, eg ^cirros$<br>
</blockquote>
<br>
<br>
so we have a few solutions for today: function, vars, and "special args".<br>
<br>
<br>
FUNCTION<br>
========<br>
args: {"image_id": {"$func": "img_by_reg", "$args": ["ubuntu.*"]}}<br>
<br>
Flexible but configuration looks complex.<br>
<br>
VARS<br>
====<br>
vars : {<br>
$image1 : {"$func": "img_by_reg", "$args": ["ubuntu.*"]},<br>
$image2: {"$func": "img_by_reg", "$args": ["centos.*"]}<br>
}<br>
args: {<br>
image_id: $image1,<br>
alt_image_id: $image2<br>
}<br>
<br>
This may be an addition to the first solution, but personally to me it<br>
looks like overkill.<br>
<br>
SPECIAL ARGS<br>
============<br>
args: {"image_re": {"ubuntu.*"}}<br>
<br>
Very simple configuration, but less flexible then others. IMO all three may<br>
be implemented.<br>
<br>
I vote for "special args", and IMO functions may be implemented too.<br>
Please feel free to propose other solutions.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Regards,<br>
Sergey Skripnick<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</font></span></blockquote></div><br></div>