From 7bc714cc5d6a8e65758a36d15ac5dccfa2acd6d1 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Mon, 20 May 2013 14:33:53 +0200 Subject: [PATCH] feature #2019 and feature #2063: Add documentation in oned.conf --- share/etc/oned.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/share/etc/oned.conf b/share/etc/oned.conf index 28d290f6cc..b1ebc2bee4 100644 --- a/share/etc/oned.conf +++ b/share/etc/oned.conf @@ -359,6 +359,8 @@ DATASTORE_MAD = [ # - STOP, after the VM is stopped (including VM image transfers) # - DONE, after the VM is deleted or shutdown # - FAILED, when the VM enters the failed state +# - CUSTOM, user defined specific STATE and LCM_STATE combination +# of states to trigger the hook. # command : path is relative to $ONE_LOCATION/var/remotes/hook # (self-contained) or to /var/lib/one/remotes/hook (system-wide). # That directory will be copied on the hosts under @@ -367,11 +369,24 @@ DATASTORE_MAD = [ # arguments : for the hook. You can access to VM information with $ # - $ID, the ID of the virtual machine # - $TEMPLATE, the VM template in xml and base64 encoded +# - $PREV_STATE, the previous STATE of the Virtual Machine +# - $PREV_LCM_STATE, the previous LCM STATE of the Virtual Machine # remote : values, # - YES, The hook is executed in the host where the VM was # allocated # - NO, The hook is executed in the OpenNebula server (default) # +# Example Virtual Machine Hook +# ---------------------------- +# +# VM_HOOK = [ +# name = "advanced_hook", +# on = "CUSTOM", +# state = "ACTIVE", +# lcm_state = "BOOT_UNKNOWN", +# command = "log.rb", +# arguments = "$ID $PREV_STATE $PREV_LCM_STATE" ] +# # Host Hooks (HOST_HOOK) # ------------------------------- #