summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-08 10:29:03 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-08 10:29:03 -0500
commit0dab7e284017e4559019ac1e7b861ab7ccdadf5c (patch)
tree40cc3e3e92b23761dd164ba3b0cdb555486132df /doc
parent041196dc73d55d73c8b165168312eb5e0a018704 (diff)
downloadbcfg2-0dab7e284017e4559019ac1e7b861ab7ccdadf5c.tar.gz
bcfg2-0dab7e284017e4559019ac1e7b861ab7ccdadf5c.tar.bz2
bcfg2-0dab7e284017e4559019ac1e7b861ab7ccdadf5c.zip
Bundler: improved XInclude support, added inter-bundle dependencies
Diffstat (limited to 'doc')
-rw-r--r--doc/server/plugins/structures/bundler/index.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/server/plugins/structures/bundler/index.txt b/doc/server/plugins/structures/bundler/index.txt
index 1b88627a5..8f767ba03 100644
--- a/doc/server/plugins/structures/bundler/index.txt
+++ b/doc/server/plugins/structures/bundler/index.txt
@@ -133,6 +133,55 @@ entries in the bundle.
See :ref:`bcfg2-info <server-bcfg2-info>` for more details.
+Dependencies
+============
+
+Dependencies on other bundles can be specified by adding an empty
+bundle tag that adds another bundle by name, e.g.:
+
+.. code-block:: xml
+
+ <Bundle>
+ <Bundle name="nfs-client"/>
+ ...
+ </Bundle>
+
+The dependent bundle is added to the list of bundles sent to the
+client, *not* to the parent bundle itself. In other words, if an
+entry in the dependent bundle changes, Services are restarted and
+Actions are run in the dependent bundle *only*. An example:
+
+``nfs-client.xml``:
+
+.. code-block:: xml
+
+ <Bundle>
+ <Package name="nfs-utils"/>
+ <Service name="nfslock"/>
+ <Service name="rpcbind"/>
+ <Service name="nfs"/>
+ </Bundle>
+
+``automount.xml``:
+
+.. code-block:: xml
+
+ <Bundle>
+ <Bundle name="nfs-client"/>
+
+ <Path name="/mnt/home"/>
+ <Path name="/etc/auto.master"/>
+ <Path name="/etc/auto.misc"/>
+ <Service name="autofs"/>
+ <Package name="automount"/>
+ </Bundle>
+
+If a new ``nfs-utils`` package was installed, the ``nfslock``,
+``rpcbind``, and ``nfs`` services would be restarted, but *not* the
+``autofs`` service. Similarly, if a new ``/etc/auto.misc`` file was
+sent out, the ``autofs`` service would be restarted, but the
+``nfslock``, ``rpcbind``, and ``nfs`` services would not be restarted.
+
Altsrc
======