]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Only check out email-virtualdomains on mailrelays, not all mx-es
authorTollef Fog Heen <tfheen@err.no>
Mon, 7 Oct 2013 05:20:53 +0000 (07:20 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 7 Oct 2013 05:20:53 +0000 (07:20 +0200)
modules/exim/manifests/mx.pp

index e035abb73580f86139e26d282a0dc67f66622ab0..8931ec62e5761765932a5b0f0c3542d354aea9d5 100644 (file)
@@ -33,7 +33,13 @@ class exim::mx inherits exim {
                ensure => installed,
        }
 
-       file { '/etc/cron.d/dsa-email-virtualdomains':
-               source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
+       if getfromhash($site::nodeinfo, 'mailrelay') {
+               file { '/etc/cron.d/dsa-email-virtualdomains':
+                       source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
+               }
+       } else {
+               file { '/etc/cron.d/dsa-email-virtualdomains':
+                       ensure => absent,
+               }
        }
 }