nixos/munin: add extraPluginConfig option

This lets you specify additional plugin-specific configuration to go in
plugin-conf.d, and complements the extraConfig and extraGlobalConfig
options.
This commit is contained in:
Ben Kelly 2018-12-13 18:14:21 -05:00 committed by Ben Kelly
parent c02564e37c
commit c74abf763a

View File

@ -63,6 +63,8 @@ let
[ipmi*]
user root
group root
${nodeCfg.extraPluginConfig}
'';
pluginConfDir = pkgs.stdenv.mkDerivation {
@ -100,6 +102,18 @@ in
};
# TODO: add option to add additional plugins
extraPluginConfig = mkOption {
default = "";
type = types.lines;
description = ''
<filename>plugin-conf.d</filename> extra plugin configuration. See
<link xlink:href='http://guide.munin-monitoring.org/en/latest/plugin/use.html' />
'';
example = ''
[fail2ban_*]
user root
'';
};
};