summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Digilio <jdigilio@imca.aps.anl.gov>2011-03-24 11:44:50 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-03-24 13:04:51 -0500
commit1d9cae6d4761aec978e8cf78ebdebd32571b531a (patch)
tree9c8b3061b22965393df2fcaa0ade91f6c05d55b4
parent7c048802e67f5a35890758b64519d7f61532dbe6 (diff)
downloadbcfg2-1d9cae6d4761aec978e8cf78ebdebd32571b531a.tar.gz
bcfg2-1d9cae6d4761aec978e8cf78ebdebd32571b531a.tar.bz2
bcfg2-1d9cae6d4761aec978e8cf78ebdebd32571b531a.zip
Updates to TCheetah documentation
(cherry picked from commit c62b029371dbf5e8b5250876d0c5198ab7acc2a8)
-rw-r--r--doc/server/plugins/generators/tcheetah.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/server/plugins/generators/tcheetah.txt b/doc/server/plugins/generators/tcheetah.txt
index f2ca6c87c..da615bed7 100644
--- a/doc/server/plugins/generators/tcheetah.txt
+++ b/doc/server/plugins/generators/tcheetah.txt
@@ -78,6 +78,12 @@ on the host 'www.example.com'::
${self.metadata.Properties['example.xml'].data.xpath($path)[0].text}
${self.metadata.Properties['example.xml'].data.xpath(path)[0].text}
+Other Variables
+===============
+
+* **Template.searchList(self)[1]['path']** is the Path name specified in a Bundle
+* **Template.searchList(self)[1]['source_path']** is the path to the TCheetah template on the Bcfg2 server
+
Simple Example
==============
@@ -92,6 +98,8 @@ directory. Below is a simple example a file ``/foo``.
> buildfile /foo <clientname>
Hostname is $self.metadata.hostname
+ Filename is $Template.searchList(self)[1]['path']
+ Template is $Template.searchList(self)[1]['source_path']
Groups:
#for $group in $self.metadata.groups:
* $group
@@ -124,6 +132,8 @@ current client probe state.
<Path type="file" name="/foo" owner="root" perms="0624" group="root">
Hostname is topaz.mcs.anl.gov
+ Filename is /foo
+ Template is /var/lib/bcfg2/TCheetah/foo/template
Groups:
* desktop
* mcs-base