13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/init.pp', line 13
class unpoller (
String $influx_url,
String $influx_org,
String $influx_token,
String $influx_bucket,
String $loki_url,
String $loki_user,
String $loki_password,
String $unifi_url,
String $unifi_user,
String $unifi_password,
) {
file { '/etc/unpoller.conf':
ensure => file,
content => template('unpoller/unpoller.conf.erb'),
}
~> docker::container { 'unpoller':
image => 'ghcr.io/unpoller/unpoller:latest',
args => [
'-v /etc/unpoller.conf:/etc/unpoller/up.conf',
],
cmd => '',
}
}
|