Puppet Class: profile::prometheus::pdns_rec_exporter

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

Overview

SPDX-License-Identifier: Apache-2.0



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

class profile::prometheus::pdns_rec_exporter {
    # Exporter written in Python 2, for Bullseye hosts use the built-in
    # metrics endpoint in newer PowerDNS versions (not available in Buster sadly)
    debian::codename::require::max('buster')

    ensure_packages('prometheus-pdns-rec-exporter')

    service { 'prometheus-pdns-rec-exporter':
        ensure  => running,
        require => Service['pdns-recursor'],
    }

    profile::auto_restarts::service { 'prometheus-pdns-rec-exporter': }
}