Puppet Class: profile::prometheus::pdns_rec_exporter_wmcs

Defined in:
modules/profile/manifests/prometheus/pdns_rec_exporter_wmcs.pp

Overview



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

class profile::prometheus::pdns_rec_exporter_wmcs (
) {
    require_package('prometheus-pdns-rec-exporter')

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

    base::service_auto_restart { 'prometheus-pdns-rec-exporter': }

    ferm::service { 'prometheus-pdns-rec-exporter':
        proto  => 'tcp',
        port   => '9199',
        srange => '@resolve((labmon1001.eqiad.wmnet labmon1002.eqiad.wmnet))', # Should be properly defined via Hiera for WMCS
    }
}