Puppet Class: profile::alertmanager::ack

Defined in:
modules/profile/manifests/alertmanager/ack.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • active_host (Stdlib::Host) (defaults to: lookup('profile::alertmanager::active_host'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/alertmanager/ack.pp', line 2

class profile::alertmanager::ack (
    Stdlib::Host        $active_host = lookup('profile::alertmanager::active_host'),
) {
    if $active_host == $::fqdn {
        $ensure = present
    } else {
        $ensure = absent
    }

    $http_port = 19195

    class { 'alertmanager::ack':
        ensure      => $ensure,
        listen_port => $http_port,
    }
}