<div dir="ltr">Hi,<div><br></div><div>You can use $UNAME for the username, or $USER[ATTR] for an individual attribute of the user template [1].</div><div><br></div><div>Best regards</div><div><br></div><div>[1] <a href="http://docs.opennebula.org/4.10/user/virtual_machine_setup/cong.html">http://docs.opennebula.org/4.10/user/virtual_machine_setup/cong.html</a><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><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></div>
<br><div class="gmail_quote">On Thu, Nov 13, 2014 at 4:34 PM, Steven Timm <span dir="ltr"><<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Under OpenNebula 3.2 we would include in the<br>
contextualization section the field $USER[TEMPLATE]<br>
and then add a contextualization script such that<br>
we would grab the field /USER/NAME out of the base64 encoded<br>
template information.<br>
<br>
In Opennebula 4.8 you can still put $USER[TEMPLATE]<br>
into your contextualization but now there is a lot more junk<br>
in $USER[TEMPLATE], namely all the key pairs that have been<br>
created via ec2CreateKeyPair for each user. At first we<br>
did not know what was happening because $USER[TEMPLATE]<br>
grew to over 300kb, a size that actually breaks bash! (you can't assign a shell variable to a value that big).<br>
<br>
So now the question is--is there a way to include only the<br>
user name field of the template in the contextualization section,<br>
and nothing else, through some combination of ruby syntax.<br>
If so, how?<br>
<br>
Steve Timm<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------<br>
Steven C. Timm, Ph.D <a href="tel:%28630%29%20840-8525" value="+16308408525" target="_blank">(630) 840-8525</a><br>
<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a> <a href="http://home.fnal.gov/~timm/" target="_blank">http://home.fnal.gov/~timm/</a><br>
Office: Wilson Hall room 804<br>
Fermilab Scientific Computing Division,<br>
Currently transitioning from:<br>
Scientific Computing Services Quadrant<br>
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing<br>
<br>
To:<br>
Scientific Computing Facilities Quadrant.,<br>
Experimental Computing Facilities Dept.,<br>
Project Lead for Virtual Facility Project.<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br></div>