Puppet Class: profile::prometheus::ircd_exporter

Defined in:
modules/profile/manifests/prometheus/ircd_exporter.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
18
19
20
# File 'modules/profile/manifests/prometheus/ircd_exporter.pp', line 1

class profile::prometheus::ircd_exporter (
    $prometheus_nodes = hiera('prometheus_nodes'),
) {
    $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

    require_package('prometheus-ircd-exporter')

    service { 'prometheus-ircd-exporter':
        ensure  => running,
    }

    ferm::service { 'prometheus-ircd-exporter':
        proto  => 'tcp',
        port   => '9197',
        srange => $ferm_srange,
    }

    base::service_auto_restart { 'prometheus-ircd-exporter': }
}