From ed904c256fcd9553ca91ef70602d0d6465689dda Mon Sep 17 00:00:00 2001 From: Benno Bielmeier Date: Fri, 5 Jul 2024 01:22:18 +0200 Subject: [PATCH] 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 --- nixos/modules/services/logging/graylog.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/logging/graylog.nix b/nixos/modules/services/logging/graylog.nix index 25982022c068..caeac16815f4 100644 --- a/nixos/modules/services/logging/graylog.nix +++ b/nixos/modules/services/logging/graylog.nix @@ -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";