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:
parent
c02564e37c
commit
c74abf763a
@ -63,6 +63,8 @@ let
|
|||||||
[ipmi*]
|
[ipmi*]
|
||||||
user root
|
user root
|
||||||
group root
|
group root
|
||||||
|
|
||||||
|
${nodeCfg.extraPluginConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pluginConfDir = pkgs.stdenv.mkDerivation {
|
pluginConfDir = pkgs.stdenv.mkDerivation {
|
||||||
@ -100,6 +102,18 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# TODO: add option to add additional plugins
|
# 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user