nixos/munin: add types to Munin options

Some options were missing their types.
This commit is contained in:
Ben Kelly 2018-12-14 19:24:00 -05:00 committed by Ben Kelly
parent c4437fee7e
commit e7c1449ae9

View File

@ -134,6 +134,7 @@ in
enable = mkOption { enable = mkOption {
default = false; default = false;
type = types.bool;
description = '' description = ''
Enable Munin Node agent. Munin node listens on 0.0.0.0 and Enable Munin Node agent. Munin node listens on 0.0.0.0 and
by default accepts connections only from 127.0.0.1 for security reasons. by default accepts connections only from 127.0.0.1 for security reasons.
@ -241,6 +242,7 @@ in
enable = mkOption { enable = mkOption {
default = false; default = false;
type = types.bool;
description = '' description = ''
Enable munin-cron. Takes care of all heavy lifting to collect data from Enable munin-cron. Takes care of all heavy lifting to collect data from
nodes and draws graphs to html. Runs munin-update, munin-limits, nodes and draws graphs to html. Runs munin-update, munin-limits,
@ -253,6 +255,7 @@ in
extraGlobalConfig = mkOption { extraGlobalConfig = mkOption {
default = ""; default = "";
type = types.lines;
description = '' description = ''
<filename>munin.conf</filename> extra global configuration. <filename>munin.conf</filename> extra global configuration.
See <link xlink:href='http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html' />. See <link xlink:href='http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html' />.
@ -265,15 +268,17 @@ in
}; };
hosts = mkOption { hosts = mkOption {
example = '' default = "";
[''${config.networking.hostName}] type = types.lines;
address localhost
'';
description = '' description = ''
Definitions of hosts of nodes to collect data from. Needs at least one Definitions of hosts of nodes to collect data from. Needs at least one
host for cron to succeed. See host for cron to succeed. See
<link xlink:href='http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html' /> <link xlink:href='http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html' />
''; '';
example = ''
[''${config.networking.hostName}]
address localhost
'';
}; };
extraCSS = mkOption { extraCSS = mkOption {