[one-users] Fwd: updating TEMPLATE from hooks
Valentin Bud
valentin.bud at gmail.com
Fri Nov 22 07:27:56 PST 2013
Hi Olivier,
I guess what you are looking for is `onevm update`.
* update <vmid> [<file>]
Update the user template contents. If a path is not provided the
editor will be launched to modify the current content.
valid options: append
Just tried it to see how it works.
# cat > /tmp/append
A="B"
# onevm update 278 /tmp/append -a
# onevm show -x 278
<USER_TEMPLATE>
<A><![CDATA[B]]></A>
</USER_TEMPLATE>
Hope it helps. Cheers and Goodwill,
Valentin
On Fri, Nov 22, 2013 at 02:13:14PM +0100, Olivier Sallou wrote:
>
> Hi,
> I see that feature allowing to update the vm template from a hook has
> been integrated ( http://dev.opennebula.org/issues/1556), but I do not
> see how in the hook documentation page (nor elsewhere). I see how to get
> the template but not how to modify it.
>
> How can we do this ?
>
> Thanks
>
> Olivier
>
> --
> gpg key id: 4096R/326D8438 (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
More information about the Users
mailing list