Puppet Class: poolcounter::client

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

Overview

Installs the base configuration file for running poolcounter-enabled applications.

Parameters:

  • ensure (Wmflib::Ensure)
  • backends (Poolcounter::Backends)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/poolcounter/manifests/client.pp', line 3

class poolcounter::client(
    Wmflib::Ensure $ensure,
    Poolcounter::Backends $backends
) {
    $shardlist = $backends.map |$b| {
        "${b['label']}:${b['fqdn']}:1"
    }
    file { '/etc/poolcounter-backends.yaml':
        ensure  => $ensure,
        content => to_yaml($shardlist),
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
    }
}