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,
}
}
|