summaryrefslogtreecommitdiffstats
path: root/doc/plugins/generators/decisions.txt
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-12-29 04:19:02 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-12-29 04:19:02 +0000
commitbd0204ecb1fb80cdf36af0f57b72e84445c1a088 (patch)
tree930345633221d9fda156140fb494d739a0484f85 /doc/plugins/generators/decisions.txt
parentd61a93ac7451be4eedb07f93d507b67d6af7b025 (diff)
downloadbcfg2-bd0204ecb1fb80cdf36af0f57b72e84445c1a088.tar.gz
bcfg2-bd0204ecb1fb80cdf36af0f57b72e84445c1a088.tar.bz2
bcfg2-bd0204ecb1fb80cdf36af0f57b72e84445c1a088.zip
doc: Rearrange plugin document structure
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5636 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'doc/plugins/generators/decisions.txt')
-rw-r--r--doc/plugins/generators/decisions.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/plugins/generators/decisions.txt b/doc/plugins/generators/decisions.txt
new file mode 100644
index 000000000..17bc5c66c
--- /dev/null
+++ b/doc/plugins/generators/decisions.txt
@@ -0,0 +1,29 @@
+.. -*- mode: rst -*-
+
+=========
+Decisions
+=========
+
+This page describes the Decisions plugin. The client has support for a centralized set of per-entry installation decisions. This approach is needed when particular changes are deemed "high risk"; this gives the ability to centrally specify these changes, but only install them on clients when administrator supervision is available. Because collaborative configuration is one of the remaining hard issues in configuration management, these issues typically crop up in environments with several administrators and much configuration variety.
+
+In these cases, the client can be configured to run in either a whitelist or blacklist mode, wherein a list of entries is downloaded from the server. The client uses this list to determine which incorrect entries should be corrected during the current run of the installation tool. The Decision plugin is the only stock plugin that generates entries for client's whitelists or blacklists.
+
+The Decision plugin uses a directory in the bcfg2 repository called Decisions. Files in the Decisions subdirectory are named similarly to files managed by Cfg, probes, TCheetah, and TGenshi. File basenames are either whitelist or blacklist. These files have a simple format; the following is an example.
+
+.. code-block:: xml
+
+ $ cat Decisions/whitelist
+ <Decisions>
+ <Decision type='Service' name='*'/>
+ <Decision type='Path' name='/etc/apt/apt.conf'/>
+ </Decisions>
+
+.. note:: To add syntax highlighting in vim, you can add a modeline such as this:
+
+ <!--
+ vim: ft=xml
+ -->
+
+This example, included as a whitelist due to its name, enables all services, and the path entry named /etc/apt/apt.conf to be installed on systems running in whitelist mode; all other entry installation will be surpressed.
+
+When a client askes for its whitelist or blacklist, all of the files pertaining to that client of the correct type are aggregated into a single list. This list is sent to the client. Note that this list is only generated when a client is run with the appropriate option (-l (whitelist|blacklist)); client behavior is not controlled unless this option is used.