From 71203b95bdb8e05ad25ec408d0afaa8ae55f18c0 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 21 Apr 2010 14:40:02 -0500 Subject: doc: Fix some broken wiki links Signed-off-by: Sol Jerome --- doc/client/tools/actions.txt | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 doc/client/tools/actions.txt (limited to 'doc/client/tools/actions.txt') diff --git a/doc/client/tools/actions.txt b/doc/client/tools/actions.txt new file mode 100644 index 000000000..6b68164e3 --- /dev/null +++ b/doc/client/tools/actions.txt @@ -0,0 +1,68 @@ +.. -*- mode: rst -*- + +.. _client-tools-actions: + +======= +Actions +======= + +This page describes use of the Action configuration entry. Action entries +are commands that are executed either before bundle installation, +after bundle installation or both. If exit status is observed, a +failing pre-action will cause no modification of the enclosing bundle +to be performed; all entries in included in that bundle will not be +modified. Failing actions are reported through Bcfg2's reporting system, +so they can be centrally observed. Actions look like: + +.. code-block:: xml + + + ++-----------+------------------+-------------------------------------------+ +| Attribute | Values | Meaning | ++===========+==================+===========================================+ +| timing | pre, post, both | When the action is run | ++-----------+------------------+-------------------------------------------+ +| name | freeform | action name | ++-----------+------------------+-------------------------------------------+ +| command | freeform | command text | ++-----------+------------------+-------------------------------------------+ +| when | always, modified | If the action is always run, or only when | +| | | a bundle should be or has been modified | ++-----------+------------------+-------------------------------------------+ +| status | ignore, check | If the return code of the action | +| | | should be reported or not | ++-----------+------------------+-------------------------------------------+ + +Note that the status attribute tells the bcfg2 client to ignore +return status, causing failures to still not be centrally reported. If +central reporting of action failure is desired, set this attribute to +'check'. Also note that Action entries included in Base will not be +executed. + +Actions cannot be completely defined inside of a bundle; they are a bound +entry, much like Packages, Services or Paths. The Rules plugin can bind +these entries. For example to include the above action in a bundle, +first the Action entry must be included in the bundle: + +.. code-block:: xml + + + ... + + + +Then a corresponding entry must be included in the Rules directory, like: + +.. code-block:: xml + + + + + +This allows different clients to get different actions as a part of the +same bundle based on group membership. -- cgit v1.2.3-1-g7c22