summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-02-06 17:00:34 -0500
committerMichael DeHaan <mdehaan@redhat.com>2009-02-06 17:00:34 -0500
commit58f34fc41e97c6c82f76952d9c26aa64048f5b76 (patch)
tree84c8a3dceb5c603c3344250f91278bb5e92dc532 /templates
parent4feb945cad68c56d8f622b0c6676ed7bcc1a0e71 (diff)
downloadcobbler-58f34fc41e97c6c82f76952d9c26aa64048f5b76.tar.gz
cobbler-58f34fc41e97c6c82f76952d9c26aa64048f5b76.tar.xz
cobbler-58f34fc41e97c6c82f76952d9c26aa64048f5b76.zip
Jeff Schroeder's patch to add a email "install done" trigger, plus numerous changes from mpd -- speaks xmlrpc now for efficiency reasons, uses a Cheetah template, etc. The template lives in /etc/cobbler/reporting for installed cobbler versions now. Turned on in /etc/cobbler/settings.
Diffstat (limited to 'templates')
-rw-r--r--templates/build_report_email.template46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/build_report_email.template b/templates/build_report_email.template
new file mode 100644
index 00000000..3dc622f7
--- /dev/null
+++ b/templates/build_report_email.template
@@ -0,0 +1,46 @@
+From: $from_addr
+To: $to_addr
+#if $getVar("interfaces","") != ""
+Subject: $subject (system: $name, ip: $boot_ip)
+#else
+Subject: $subject (profile: $name, ip: $boot_ip)
+#end if
+
+Cobbler build report.
+=======================================================
+http://fedorahosted.org/cobbler
+
+#if $getVar("interfaces","") != "":
+
+system name : $name
+profile : $profile
+distro : $distro
+
+#for $intf in $interfaces.keys():
+ #set $mac = $interfaces[$intf].get("mac_address","")
+ #set $ip = $interfaces[$intf].get("ip_address","")
+ #set $static = $interfaces[$intf].get("static","")
+interface: $intf
+mac: $mac
+ip: $ip
+static: $static
+
+#end for
+#else
+profile : $name
+distro : $distro
+
+#end if
+
+kernel_options: $getVar("kernel_options","")
+
+#if $kickstart.startswith("/") or $kickstart == "":
+#if $getVar("interfaces","") != ""
+kickstart=http://$server/cblr/svc/op/ks/system/$name
+#else
+kickstart=http://$server/cblr/svc/op/ks/profile/$name
+#end if
+#else
+kickstart=$kickstart
+#end if
+