]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
OK, I think it works now. Go live. what can possibly go wrong?
authorStephen Gran <steve@lobefin.net>
Sun, 15 Mar 2009 17:09:03 +0000 (17:09 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 15 Mar 2009 17:09:03 +0000 (17:09 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/exim/manifests/init.pp
templates/exim-local-auto.erb [new file with mode: 0644]
templates/exim-test.erb [deleted file]

index e810e05dcb38410724f27794a0ea1c44942353f4..578da32ccc51572cc2595b18a43f817ffac6f673 100644 (file)
@@ -24,7 +24,3 @@ node default {
         default:   {}
     }
 }
-
-node master inherits default {
-    include exim-extended
-}
index 1686b04735bda5a9e25b00956f6d022a7959bb2f..93ea0b62f46704c6a253a3caa519c4a555ff2b61 100644 (file)
@@ -81,6 +81,10 @@ class exim {
           source  => [ "puppet:///exim/per-host/$fqdn/logrotate-exim4-paniclog",
                        "puppet:///exim/common/logrotate-exim4-paniclog" ]
           ;
+        "/etc/exim4/local-auto.conf":
+          require => Package["exim4-daemon-heavy"],
+          content => template("exim-local-auto.erb")
+          ;
     }
 
     exec { "exim4 reload":
@@ -88,12 +92,3 @@ class exim {
         refreshonly => true,
     }
 }
-
-class exim-extended inherits exim {
-    file {
-        "/etc/exim4/test":
-          require => Package["exim4-daemon-heavy"],
-          content => template("exim-test.erb")
-          ;
-    }
-}
diff --git a/templates/exim-local-auto.erb b/templates/exim-local-auto.erb
new file mode 100644 (file)
index 0000000..94a571d
--- /dev/null
@@ -0,0 +1,33 @@
+<% 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
+<% elsif 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?("policydweight") && policydweight == "true" -%>
+HAVE_POLICYD = 1
+<% else -%>
+# HAVE_POLICYD is undefined
+<% end -%>
+<% if has_variable?("bugs_host") && bugs_host == "true" -%>
+HAVE_USER_DEBBUGS = 1
+<% else -%>
+# HAVE_USER_DEBBUGS is undefined
+<% end -%>
+<% if has_variable?("qa_host") && qa_host == "true" -%>
+HAVE_USER_QA = 1
+<% else -%>
+# HAVE_USER_QA is undefined
+<% end -%>
diff --git a/templates/exim-test.erb b/templates/exim-test.erb
deleted file mode 100644 (file)
index 94a571d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<% 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
-<% elsif 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?("policydweight") && policydweight == "true" -%>
-HAVE_POLICYD = 1
-<% else -%>
-# HAVE_POLICYD is undefined
-<% end -%>
-<% if has_variable?("bugs_host") && bugs_host == "true" -%>
-HAVE_USER_DEBBUGS = 1
-<% else -%>
-# HAVE_USER_DEBBUGS is undefined
-<% end -%>
-<% if has_variable?("qa_host") && qa_host == "true" -%>
-HAVE_USER_QA = 1
-<% else -%>
-# HAVE_USER_QA is undefined
-<% end -%>