<div dir="ltr">Hi,<div><br></div><div style>I don't see any workaround for your template. You can reference only attributes outside the context section, and in that case you would have to set a fixed USER_SSH_KEY.</div>
<div style><br></div><div style>This looks exactly like the use case in this thread:</div><div style><a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2013-May/023144.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2013-May/023144.html</a><br>
</div><div style><br></div><div style>Please open a feature request at <a href="http://dev.opennebula.org/">http://dev.opennebula.org</a> and we'll plan it for future releases.</div><div style><br></div><div style>Regards</div>
<div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br>Join us at <a href="http://opennebulaconf.com" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br>--<div>Carlos Martín, MSc<br>Project Engineer<br>
OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 11:49 AM, Steffen Claus <span dir="ltr"><<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.fraunhofer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
i am trying to use nested CONTEXT variables, e.g. for defining the ssh key for the user.<br>
The key file is stored in the file datastore.<br>
I've already tried to define the variable outside of the CONTEXT scope, e.g.:<br>
<br>
CONTEXT<br>
[<br>
FILES_DS="$FILE[IMAGE=\"testfile\"] $FILE[IMAGE=\"$USER_SSH_KEY\"]"<br>
]<br>
USER_SSH_KEY=$USER[SSH_KEY]<br>
<br>
<br>
Is there any way to accomplish that?<br>
<br>
BR,<br>
Steffen<br>
<br>
--<br>
Steffen Claus<br>
<br>
Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)<br>
Schloss Birlinghoven<br>
D-53754 Sankt Augustin<br>
Tel: <a href="tel:%2B49%202241%2014-2511" value="+492241142511">+49 2241 14-2511</a><br>
<a href="mailto:steffen.claus@scai.fraunhofer.de">steffen.claus@scai.fraunhofer.de</a><br>
<a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div></div>