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'))

    if the default_mail_relay is enabled

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

    the template to use

  • smarthosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::mail::default_mail_relay::smarthosts'))

    a list of smarthosts that handle general mail

  • mediawiki_smarthosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::mail::default_mail_relay::mediawiki_smarthosts'))

    a list of smarthosts that handle midiawiki mail



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/profile/manifests/mail/default_mail_relay.pp', line 6

class profile::mail::default_mail_relay (
    Boolean             $enabled              = lookup('profile::mail::default_mail_relay::enabled'),
    String              $template             = lookup('profile::mail::default_mail_relay::template'),
    Array[Stdlib::Fqdn] $smarthosts           = lookup('profile::mail::default_mail_relay::smarthosts'),
    Array[Stdlib::Fqdn] $mediawiki_smarthosts = lookup('profile::mail::default_mail_relay::mediawiki_smarthosts'),
) {
    if $enabled {
        class { 'exim4':
            queuerunner => 'combined',
            config      => template($template),
        }

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