diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-09-03 10:35:57 -0700 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-09-03 10:35:57 -0700 |
commit | 0f7b300fe182c48c7e4c36e43a1f439fcde8fb54 (patch) | |
tree | e063a1da96ca443c9264b23db1573318b8259b56 /doc | |
parent | 166201ecf2cd7c5837bdeb5ec4fcaef0132ed719 (diff) | |
parent | 730179b581e0dcdaa93a4819acbeb207db6980ef (diff) | |
download | bcfg2-0f7b300fe182c48c7e4c36e43a1f439fcde8fb54.tar.gz bcfg2-0f7b300fe182c48c7e4c36e43a1f439fcde8fb54.tar.bz2 bcfg2-0f7b300fe182c48c7e4c36e43a1f439fcde8fb54.zip |
Merge pull request #139 from kincl/pre-action-processing-with-independent-entries
Pre action processing with independent entries
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client/tools/actions.txt | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/doc/client/tools/actions.txt b/doc/client/tools/actions.txt index 81486ecd1..e5fdb1f39 100644 --- a/doc/client/tools/actions.txt +++ b/doc/client/tools/actions.txt @@ -31,10 +31,11 @@ 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 may be completely defined inside of a bundle with the use of +:ref:`server-configurationentries`, much like Packages, Services or Paths. +The Rules plugin can also 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 @@ -70,3 +71,18 @@ requires this key. <Action timing='post' name='apt-key-update' command='apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu 0C5A2783' when='modified' status='check'/> </Group> </Rules> + +Example BoundAction (add RPM GPG keys) +====================================== + +This example will add the RPM-GPG-KEY-redhat-release key to the RPM +GPG keyring **before** Package entries are handled on the client run. + +.. code-block:: xml + + <Bundle name="rpm-gpg-keys"> + <Group name='rhel'> + <Path name="/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"/> + <BoundAction timing="pre" name="install rpm key" command="rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release" when="modified" status="check"/> + </Group> + </Bundle> |