Skip to content
Snippets Groups Projects
Commit db620e95 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

doc/hooks: Clarify hook directory structure


I was not able to find where the “.d” suffix is documented, so this
clarification should make it more obvious.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 0625d08f
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,11 @@ Documents Ganeti version 2.6
Introduction
------------
In order to allow customisation of operations, ganeti runs scripts
under ``/etc/ganeti/hooks`` based on certain rules.
In order to allow customisation of operations, Ganeti runs scripts in
sub-directories of ``@SYSCONFDIR@/ganeti/hooks``. These sub-directories
are named ``$hook-$phase.d``, where ``$phase`` is either ``pre`` or
``post`` and ``$hook`` matches the directory name given for a hook (e.g.
``cluster-verify-post.d`` or ``node-add-pre.d``).
This is similar to the ``/etc/network/`` structure present in Debian
for network interface handling.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment