Puppet Class: profile::poolcounter

Defined in:
modules/profile/manifests/poolcounter.pp

Overview

Parameters:

  • exporter_port (Any) (defaults to: lookup('profile::poolcounter::exporter_port'))


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

class profile::poolcounter(
    $exporter_port = lookup('profile::poolcounter::exporter_port'),
) {
    class {'::poolcounter' : }

    # firewalling
    ferm::service { 'poolcounterd':
        proto   => 'tcp',
        port    => '7531',
        srange  => '$DOMAIN_NETWORKS',
        notrack => true,
    }

    ensure_packages('poolcounter-prometheus-exporter')

    systemd::service { 'poolcounter-prometheus-exporter':
        ensure  => 'present',
        content => systemd_template('poolcounter-prometheus-exporter'),
        require => Package['poolcounter-prometheus-exporter'],
        restart => true,
    }
}