From 3f2aad8d17bde2354ad6d222d85d7281c40391b5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 14 Apr 2013 15:12:28 -0300 Subject: Splitting nodo code into subsystems --- manifests/subsystem/mail.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 manifests/subsystem/mail.pp (limited to 'manifests/subsystem/mail.pp') diff --git a/manifests/subsystem/mail.pp b/manifests/subsystem/mail.pp new file mode 100644 index 0000000..12c7e4b --- /dev/null +++ b/manifests/subsystem/mail.pp @@ -0,0 +1,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 } + } +} -- cgit v1.2.3