mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
nixos/graylog: add option dataDir
in order to use this nixos module with Graylog 6.0, in which > the default value for the data_dir configuration option has been > removed and must be specified in graylog.conf [1]. > -- https://go2docs.graylog.org/current/upgrading_graylog/upgrading_to_graylog_6.0.x.htm The value set by default is the same as before introducing this option. See also [1,2] [1]: https://go2docs.graylog.org/current/setting_up_graylog/server.conf.html [2]: https://go2docs.graylog.org/5-2/setting_up_graylog/server.conf.html
This commit is contained in:
parent
412f485211
commit
ed904c256f
|
@ -15,6 +15,7 @@ let
|
|||
message_journal_dir = ${cfg.messageJournalDir}
|
||||
mongodb_uri = ${cfg.mongodbUri}
|
||||
plugin_dir = /var/lib/graylog/plugins
|
||||
data_dir = ${cfg.dataDir}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
|
@ -93,6 +94,12 @@ in
|
|||
description = "List of valid URIs of the http ports of your elastic nodes. If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that requires authentication";
|
||||
};
|
||||
|
||||
dataDir = mkOption {
|
||||
type = types.str;
|
||||
default = "/var/lib/graylog/data";
|
||||
description = "Directory used to store Graylog server state.";
|
||||
};
|
||||
|
||||
messageJournalDir = mkOption {
|
||||
type = types.str;
|
||||
default = "/var/lib/graylog/data/journal";
|
||||
|
|
Loading…
Reference in a new issue