Puppet Class: alertmanager::phab

Defined in:
modules/alertmanager/manifests/phab.pp

Overview

Parameters:

  • url (Stdlib::HTTPSUrl)
  • username (String)
  • token (String)
  • listen_host (String) (defaults to: '::')
  • listen_port (Stdlib::Port) (defaults to: 8292)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/alertmanager/manifests/phab.pp', line 1

class alertmanager::phab (
    Stdlib::HTTPSUrl $url,
    String $username,
    String $token,
    String $listen_host = '::',
    Stdlib::Port $listen_port = 8292,
) {
    ensure_packages(['phalerts'])

    service { 'phalerts':
        ensure  => running,
    }

    profile::auto_restarts::service { 'phalerts': }

    file { '/etc/default/phalerts':
        ensure    => present,
        owner     => 'phalerts',
        group     => 'root',
        mode      => '0440',
        content   => template('alertmanager/phalerts.default.erb'),
        notify    => Service['phalerts'],
        show_diff => false,
    }
}