]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/exim/manifests/mx.pp
add MAG2 range as per whois -h whois.nic.ad.jp
[dsa-puppet.git] / modules / exim / manifests / mx.pp
index e035abb73580f86139e26d282a0dc67f66622ab0..54f1933b3c5c3586e801319da3b1fd91fe429776 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 has_role('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,
+               }
        }
 }