diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-02-04 16:20:46 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-02-04 16:20:46 -0500 |
commit | 1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2 (patch) | |
tree | ce0a378dbe59fedb388b29de1307eebf66ef6501 /doc/client/tools/actions.txt | |
parent | dfe9dac83a9f6553b9d075fa14fcd28235aabda9 (diff) | |
download | bcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.tar.gz bcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.tar.bz2 bcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.zip |
Bundler: various changes
* Deprecated use of an explicit name attribute
* Deprecated .genshi bundles
* Minor restructuring for better performance
* bcfg2-lint updates
Diffstat (limited to 'doc/client/tools/actions.txt')
-rw-r--r-- | doc/client/tools/actions.txt | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/client/tools/actions.txt b/doc/client/tools/actions.txt index 81486ecd1..ffca8572e 100644 --- a/doc/client/tools/actions.txt +++ b/doc/client/tools/actions.txt @@ -31,14 +31,14 @@ 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: +Actions are not completely defined inside of a bundle; they are an +abstract entry. 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 - <Bundle name='bundle_name'> + <Bundle> ... <Action name='action_name'/> </Bundle> @@ -55,6 +55,14 @@ Then a corresponding entry must be included in the Rules directory, like: This allows different clients to get different actions as a part of the same bundle based on group membership. +It is also possible to do this in one step in the bundle itself with a +``BoundAction`` tag, e.g.: + + <Bundle> + <BoundAction timing='post' when='modified' name='action_name' + command='/path/to/command arg1 arg2' status='ignore'/> + </Rules> + Example Action (add APT keys) ============================= |