2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'manifests/modules/metricbeat/mongodb.pp', line 2
class beats::modules::metricbeat::mongodb (
Boolean $enable,
Array[String] $hosts,
Hash[String, Any] $override = {},
) {
if $hosts =~ String {
$_hosts = [$hosts]
} else {
$_hosts = $hosts
}
$final = deep_merge({
'module' => 'mongodb',
'enabled' => $enable,
# "metricsets" => [
# "dbstats",
# "status",
# "collstats",
# "metrics",
# "replstatus",
# ],
'period' => '10s',
'hosts' => $_hosts,
# "ssl" => {
# "enabled" => true,
# "verification_mode" => "full",
# "certificate_authorities" => [ "/etc/pki/root/ca.pem", ],
# "certificate" => "/etc/pki/client/cert.pem",
# "key" => "/etc/pki/client/cert.key",
# },
#"username" => "user",
#"password" => "pass",
}, $override)
}
|