From 1d9cae6d4761aec978e8cf78ebdebd32571b531a Mon Sep 17 00:00:00 2001 From: Joe Digilio Date: Thu, 24 Mar 2011 11:44:50 -0500 Subject: Updates to TCheetah documentation (cherry picked from commit c62b029371dbf5e8b5250876d0c5198ab7acc2a8) --- doc/server/plugins/generators/tcheetah.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 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. Hostname is topaz.mcs.anl.gov + Filename is /foo + Template is /var/lib/bcfg2/TCheetah/foo/template Groups: * desktop * mcs-base -- cgit v1.2.3-1-g7c22