aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/mail.pp
blob: 12c7e4bb1b62bc6833b2450b98c44bc65d5ecbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class nodo::subsystem::mail {
  # Email delivery configuration
  $mail_delivery = hiera('nodo::subsystem::mail::delivery', 'exim')
  case $mail_delivery {
    'tunnel': {              
      $mail_hostname = hiera('nodo::subsystem::mail::hostname')
      tunnel::autossh::mail { "$mail_hostname":
        sshport   => hiera('nodo::subsystem::mail::ssh_port'),
      }
    }
    'postfix': { }
    '','exim',default: { include exim::tls }
  }
}