diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-04-28 18:30:26 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-04-29 11:31:21 -0500 |
commit | f09116e6c1e52ce605c9717dbf103ded29d32a82 (patch) | |
tree | 5791bf60b1c98bfbadefdc27b9f0efb2a02357ac | |
parent | 8e7eceeed4add8f98222036a3f8bd00c4d9691dc (diff) | |
download | bcfg2-f09116e6c1e52ce605c9717dbf103ded29d32a82.tar.gz bcfg2-f09116e6c1e52ce605c9717dbf103ded29d32a82.tar.bz2 bcfg2-f09116e6c1e52ce605c9717dbf103ded29d32a82.zip |
doc: Add more verbose information about how TCheetah works
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5845 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | doc/server/plugins/generators/tcheetah.txt | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/server/plugins/generators/tcheetah.txt b/doc/server/plugins/generators/tcheetah.txt index e5d8de9b5..dc6d69018 100644 --- a/doc/server/plugins/generators/tcheetah.txt +++ b/doc/server/plugins/generators/tcheetah.txt @@ -86,8 +86,12 @@ on the host 'www.example.com':: Simple Example ============== -bcfg2/TCheetah/foo/template ---------------------------- +TCheetah works similar to Cfg in that you define all literal information +about a particular file in a directory rooted at TGenshi/path_to_file. +The actual file contents are placed in a file named `template` in that +directory. Below is a simple example a file ``/foo``. + +``/var/lib/bcfg2/TCheetah/foo/template`` .. code-block:: none @@ -107,8 +111,7 @@ bcfg2/TCheetah/foo/template * $probe -- $self.metadata.Probes[$probe] #end for -bcfg2/TCheetah/foo/info ------------------------ +``/var/lib/bcfg2/TCheetah/foo/info`` .. code-block:: none @@ -144,12 +147,10 @@ current client probe state. Example: Replace the crontab plugin =================================== -In many cases you can use the TCheetah plugin to avoid -writing custom plugins in Python. This example replaces the -[source:tags/bcfg2_0_8_4/bcfg2/src/lib/Server/Plugins/Crontab.py crontab -plugin] (Bcfg2.Server.Plugins.Crontab). This plugin randomizes the time -of cron.daily execution with a stable result. Cron.daily is run at a -consistent, randomized time between midnight and 7am.:: +In many cases you can use the TCheetah plugin to avoid writing custom +plugins in Python. This example randomizes the time of cron.daily +execution with a stable result. Cron.daily is run at a consistent, +randomized time between midnight and 7am.:: #import random #silent random.seed($self.metadata.hostname) |