Puppet Class: poolcounter::client
- Defined in:
- modules/poolcounter/manifests/client.pp
Overview
SPDX-License-Identifier: Apache-2.0 Installs the base configuration file for running poolcounter-enabled applications.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/poolcounter/manifests/client.pp', line 4
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',
}
}
|