Merge pull request #66606 from DerTim1/riemann-config
nixos/riemann-tools: Add ExtraArgs Config Option
This commit is contained in:
commit
e6fb350cf6
@ -11,7 +11,7 @@ let
|
|||||||
|
|
||||||
healthLauncher = writeScriptBin "riemann-health" ''
|
healthLauncher = writeScriptBin "riemann-health" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec ${pkgs.riemann-tools}/bin/riemann-health --host ${riemannHost}
|
exec ${pkgs.riemann-tools}/bin/riemann-health ${builtins.concatStringsSep " " cfg.extraArgs} --host ${riemannHost}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
@ -34,8 +34,16 @@ in {
|
|||||||
Address of the host riemann node. Defaults to localhost.
|
Address of the host riemann node. Defaults to localhost.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
extraArgs = mkOption {
|
||||||
|
type = types.listOf types.string;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
A list of commandline-switches forwarded to a riemann-tool.
|
||||||
|
See for example `riemann-health --help` for available options.
|
||||||
|
'';
|
||||||
|
example = ["-p 5555" "--timeout=30" "--attribute=myattribute=42"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enableHealth {
|
config = mkIf cfg.enableHealth {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user