class nodo::subsystem::mail { # Email delivery configuration $mail_delivery = hiera('nodo::subsystem::mail::delivery', 'exim') $munin = hiera('nodo::host::use_munin', false) case $mail_delivery { 'tunnel': { $mail_hostname = hiera('nodo::subsystem::mail::hostname') tunnel::autossh::mail { "$mail_hostname": sshport => hiera('nodo::subsystem::mail::ssh_port'), } } 'postfix', 'disabled': { } '','exim',default: { include exim::tls if $munin == true { munin::plugin { [ 'exim_mailqueue', 'exim_mailstats' ]: ensure => present, config => 'user Debian-exim', } } } } }