]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/exim/manifests/mx.pp
Move all roles from local.yaml to hiera
[dsa-puppet.git] / modules / exim / manifests / mx.pp
index 8931ec62e5761765932a5b0f0c3542d354aea9d5..54f1933b3c5c3586e801319da3b1fd91fe429776 100644 (file)
@@ -33,7 +33,7 @@ class exim::mx inherits exim {
                ensure => installed,
        }
 
-       if getfromhash($site::nodeinfo, 'mailrelay') {
+       if has_role('mailrelay') {
                file { '/etc/cron.d/dsa-email-virtualdomains':
                        source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
                }