[one-users] vm hooks

Carlos Martín Sánchez cmartin at opennebula.org
Thu May 8 06:46:55 PDT 2014


Hi,

On Mon, May 5, 2014 at 11:38 AM, Thomas Stein <himbeere at meine-oma.de> wrote:
>
> Hello Carlos.
>
> Thanks for the answers. Is there a way to create a hook only for a
> specific VM?
>
> cheers
> t.
>

It's easy to use $ID as the argument, and exit your script if it's not the
one you want.
Or for a more generic approach, use the $TEMPLATE, and look for a specific
attribute. You will set that attribute/value for the VMs that need to be
processed by the hook.

Regards

PS. Please reply also to the mailing list.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140508/9a61c98d/attachment-0002.htm>


More information about the Users mailing list