[one-users] updating TEMPLATE from hooks with onevm update

Olivier Sallou olivier.sallou at irisa.fr
Mon Nov 25 23:41:33 PST 2013


Hi,

If my VM HOOK (on CREATE) adds new elements with a onevm update, I can
see those variables in the the "user template"  of the vm/

onevm show:

....
USER
TEMPLATE                                                                  
SSH_PUBLIC_KEY="ssh-rsa......"
XGRID_PWD="xxx"
....

In my image template, I have set:

SSH_PUBLIC_KEY 	$USER[SSH_PUBLIC_KEY]
XGRID_PWD 	$USER[XGRID_PWD]


But in the VM template, I do not see any of those variable.

It would seem that user template attributes are created *after* the vm
template generation.

Any idea  ?

Thanks

Olivier


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131126/61c75493/attachment-0002.htm>


More information about the Users mailing list