Move all roles from local.yaml to hiera
[mirror/dsa-puppet.git] / modules / exim / manifests / mx.pp
index 8931ec6..54f1933 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',
                }