Puppet Class: profile::mail::default_mail_relay

Defined in:
modules/profile/manifests/mail/default_mail_relay.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • enabled (Boolean) (defaults to: lookup('profile::mail::default_mail_relay::enabled'))
  • template (String) (defaults to: lookup('profile::mail::default_mail_relay::template'))


2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/profile/manifests/mail/default_mail_relay.pp', line 2

class profile::mail::default_mail_relay (
    Boolean $enabled  = lookup('profile::mail::default_mail_relay::enabled'),
    String  $template = lookup('profile::mail::default_mail_relay::template'),
) {
    if $enabled {
        class { 'exim4':
            queuerunner => 'combined',
            config      => template($template),
        }

        profile::auto_restarts::service { 'exim4': }
    }
}