Puppet Class: profile::wmcs::metricsinfra::alertmanager::ack

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

Overview

Parameters:

  • active_host (Stdlib::Host) (defaults to: lookup('profile::wmcs::metricsinfra::alertmanager_active_host'))


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

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

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