[one-users] Picking certain fields /USER/NAME out of $USER[TEMPLATE]

Carlos Martín Sánchez cmartin at opennebula.org
Mon Nov 17 02:10:11 PST 2014


Hi,

You can use $UNAME for the username, or $USER[ATTR] for an individual
attribute of the user template [1].

Best regards

[1] http://docs.opennebula.org/4.10/user/virtual_machine_setup/cong.html

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
<http://twitter.com/opennebula> <cmartin at opennebula.org>

On Thu, Nov 13, 2014 at 4:34 PM, Steven Timm <timm at fnal.gov> wrote:

> Under OpenNebula 3.2 we would include in the
> contextualization section the field $USER[TEMPLATE]
> and then add a contextualization script such that
> we would grab the field /USER/NAME out of the base64 encoded
> template information.
>
> In Opennebula 4.8 you can still put $USER[TEMPLATE]
> into your contextualization but now there is a lot more junk
> in $USER[TEMPLATE], namely all the key pairs that have been
> created via ec2CreateKeyPair for each user.  At first we
> did not know what was happening because $USER[TEMPLATE]
> grew to over 300kb, a size that actually breaks bash! (you can't assign a
> shell variable to a value that big).
>
> So now the question is--is there a way to include only the
> user name field of the template in the contextualization section,
> and nothing else, through some combination of ruby syntax.
> If so, how?
>
> Steve Timm
>
>
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D  (630) 840-8525
> timm at fnal.gov  http://home.fnal.gov/~timm/
> Office:  Wilson Hall room 804
> Fermilab Scientific Computing Division,
> Currently transitioning from:
> Scientific Computing Services Quadrant
> Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
>
> To:
> Scientific Computing Facilities Quadrant.,
> Experimental Computing Facilities Dept.,
> Project Lead for Virtual Facility Project.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141117/258665d0/attachment.htm>


More information about the Users mailing list