Puppet Class: role::mail::smarthost::wmcs

Defined in:
modules/role/manifests/mail/smarthost/wmcs.pp

Overview

Parameters:

  • prometheus_nodes (Any) (defaults to: hiera('prometheus_nodes', []))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/role/manifests/mail/smarthost/wmcs.pp', line 1

class role::mail::smarthost::wmcs(
    $prometheus_nodes = hiera('prometheus_nodes', []), # lint:ignore:wmf_styleguide
) {

    include ::profile::base::firewall

    system::role { 'mail::smarthost::wmcs':
        description => 'WMCS Outbound Mail Smarthost',
    }

    class { '::profile::mail::smarthost':
        prometheus_nodes       => $prometheus_nodes,
        relay_from_hosts       => $network::constants::labs_networks,
        root_alias_rcpt        => 'root@wmflabs.org',
        envelope_rewrite_rules => [ '*@*.eqiad.wmflabs  root@wmflabs.org  F' ],
    }
}