12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'modules/prometheus/manifests/snmp_exporter/module.pp', line 12
define prometheus::snmp_exporter::module (
$template,
$community = undef,
$ensure = present,
) {
$exporter_module = $title
# prometheus-assemble-config will take care of assembling all
# modules yaml files into snmp.yml for snmp_exporter to consume (init.pp)
file { "/etc/prometheus/snmp.yml.d/${exporter_module}.yml":
content => template("prometheus/snmp_exporter/${template}.yml.erb"),
show_diff => false,
}
}
|