From fd787917bdcd0aaf5f5b0b99dfa5e2a992d734a4 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 18 Jul 2007 19:00:57 +0000 Subject: Initial TGenshi checking (from jcollie) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3476 ce84e21b-d406-0410-9b95-82705330c041 --- examples/TGenshi/tmp/bar/template.txt | 20 +++++++++++++++ examples/TGenshi/tmp/foo/template.xml | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 examples/TGenshi/tmp/bar/template.txt create mode 100644 examples/TGenshi/tmp/foo/template.xml (limited to 'examples') diff --git a/examples/TGenshi/tmp/bar/template.txt b/examples/TGenshi/tmp/bar/template.txt new file mode 100644 index 000000000..3e43340fe --- /dev/null +++ b/examples/TGenshi/tmp/bar/template.txt @@ -0,0 +1,20 @@ +[communication] +protocol = xmlrpc/ssl +#if metadata.uuid != None +user = $metadata.uuid +#end +#choose +#when metadata.password is not None +password = $metadata.password +#end +#when metadata.password is None +password = GlobalPassword +#end +#end +fingerprint = ac152f42f03253a30d3379dea88eddf2be033d47 + +[client] +drivers = Action,Chkconfig,POSIX,YUMng + +[components] +bcfg2 = https://config.example.com:6789 diff --git a/examples/TGenshi/tmp/foo/template.xml b/examples/TGenshi/tmp/foo/template.xml new file mode 100644 index 000000000..522c6e7fe --- /dev/null +++ b/examples/TGenshi/tmp/foo/template.xml @@ -0,0 +1,46 @@ + + + ${name} + + + + + + + + + + + + + + + + + + + + + + + + +
Name:${name}
Hostname:${metadata.hostname}
Toolset:${metadata.hostname}
UUID:${metadata.uuid}
Password:${metadata.password}
Bundles: + + +
${bundle}
+
Groups: + + +
${group}
+
Categories: + + +
${category}
+
Probes: + + +
${probe}${metadata.probes[probe]}
+
+ + -- cgit v1.2.3-1-g7c22