summaryrefslogtreecommitdiffstats
path: root/examples/TGenshi
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-06-02 13:38:26 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-06-02 08:43:02 -0500
commita049a44e65d6c41a5487778a19d49155dcf692af (patch)
treef18b5debb9ab73fec3055065dfad5f54c5fd17ff /examples/TGenshi
parent8e0e4f990ad7669e6613be24c556091e65ab4b7d (diff)
downloadbcfg2-a049a44e65d6c41a5487778a19d49155dcf692af.tar.gz
bcfg2-a049a44e65d6c41a5487778a19d49155dcf692af.tar.bz2
bcfg2-a049a44e65d6c41a5487778a19d49155dcf692af.zip
Added example for TGenshi (Exported from the wiki)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5875 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'examples/TGenshi')
-rw-r--r--examples/TGenshi/etc/motd/template.newtxt31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/TGenshi/etc/motd/template.newtxt b/examples/TGenshi/etc/motd/template.newtxt
new file mode 100644
index 000000000..22c725b25
--- /dev/null
+++ b/examples/TGenshi/etc/motd/template.newtxt
@@ -0,0 +1,31 @@
+------------------------------------------------------------------------
+ GOALS FOR SERVER MANGED BY BCFG2
+------------------------------------------------------------------------
+Hostname is ${metadata.hostname}
+
+Groups:
+{% for group in metadata.groups %}\
+ * ${group}
+{% end %}\
+
+{% if metadata.categories %}\
+Categories:
+{% for category in metadata.categories %}\
+ * ${category}
+{% end %}\
+{% end %}\
+
+
+{% if metadata.Probes %}\
+Probes:
+{% for probe, value in metadata.Probes.iteritems() %}\
+ * ${probe} \
+ ${value}
+{% end %}\
+{% end %}\
+
+------------------------------------------------------------------------
+ ITOPS MOTD
+------------------------------------------------------------------------
+Please create a Ticket for any system level changes you need from IT.
+