forked from mirrors/nixpkgs
opentsdb nixos module: Add option for defining OpenTSDB's configuration
This commit is contained in:
parent
c6d77eb0bf
commit
c0a83cbc49
|
@ -5,10 +5,7 @@ with lib;
|
|||
let
|
||||
cfg = config.services.opentsdb;
|
||||
|
||||
configFile = pkgs.writeText "opentsdb.conf" ''
|
||||
tsd.core.auto_create_metrics = true
|
||||
tsd.http.request.enable_chunked = true
|
||||
'';
|
||||
configFile = pkgs.writeText "opentsdb.conf" cfg.config;
|
||||
|
||||
in {
|
||||
|
||||
|
@ -59,6 +56,17 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
config = mkOption {
|
||||
type = types.lines;
|
||||
default = ''
|
||||
tsd.core.auto_create_metrics = true
|
||||
tsd.http.request.enable_chunked = true
|
||||
'';
|
||||
description = ''
|
||||
The contents of OpenTSDB's configuration file
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue