]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Test of templating
authorStephen Gran <steve@lobefin.net>
Sun, 15 Mar 2009 16:31:32 +0000 (16:31 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 15 Mar 2009 16:31:32 +0000 (16:31 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/exim/manifests/init.pp
templates/exim-test.erb [new file with mode: 0644]

index 638b2be0d8e8ec6cac078496fabf137b7a0be746..23bcb1b5c588e1c0e84116d05b2fa09ff30b0df4 100644 (file)
@@ -25,3 +25,6 @@ node default {
     }
 }
 
+node master.debian.org inherits default {
+    include exim-extended
+}
index 815ff16781ff89ad9d0d4dce6b460fe8dd99670b..1686b04735bda5a9e25b00956f6d022a7959bb2f 100644 (file)
@@ -89,3 +89,11 @@ class exim {
     }
 }
 
+class exim-extended inherits exim {
+    file {
+        "/etc/exim4/test":
+          require => Package["exim4-daemon-heavy"],
+          content => template("exim-test.erb")
+          ;
+    }
+}
diff --git a/templates/exim-test.erb b/templates/exim-test.erb
new file mode 100644 (file)
index 0000000..9bf8cb6
--- /dev/null
@@ -0,0 +1,28 @@
+<% if has_variable?("clamd") && clamd == "$true" %>
+CLAMAV = clamd:/var/run/clamav/clamd.ctl
+<% else %>
+# CLAMAV is undefined
+<% end %>
+<% if has_variable?("postgrey") && postgrey == "true" %>
+USE_GREYLISTING = 1
+# HAVE_GREYLIST is undefined
+HAVE_POSTGREY = 1
+<% else if has_variable?("greylistd") && greylistd == "true" %>
+USE_GREYLISTING = 1
+HAVE_GREYLIST = 1
+# HAVE_POSTGREY is undefined
+<% else %>
+# HAVE_POSTGREY is undefined
+# HAVE_GREYLIST is undefined
+# USE_GREYLISTING is undefined
+<% end %>
+<% if has_variable?("bugs_host") && bugs_host == "true" %>
+HAS_USER_DEBBUGS = 1
+<% else %>
+# HAS_USER_DEBBUGS is undefind
+<% end %>
+<% if has_variable?("qa_host") && qa_host == "true" %>
+HAS_USER_QA = 1
+<% else %>
+# HAS_USER_QA is undefined
+<% end %>