graylog module: adapt to Graylog version 2.3.0

This commit is contained in:
Tristan Helmich 2017-08-10 21:29:54 +02:00 committed by Franz Pletz
parent 25f3cf0300
commit aa8e60d934

View File

@ -11,9 +11,7 @@ let
password_secret = ${cfg.passwordSecret} password_secret = ${cfg.passwordSecret}
root_username = ${cfg.rootUsername} root_username = ${cfg.rootUsername}
root_password_sha2 = ${cfg.rootPasswordSha2} root_password_sha2 = ${cfg.rootPasswordSha2}
elasticsearch_cluster_name = ${cfg.elasticsearchClusterName} elasticsearch_hosts = ${concatStringsSep "," cfg.elasticsearchHosts}
elasticsearch_discovery_zen_ping_multicast_enabled = ${boolToString cfg.elasticsearchDiscoveryZenPingMulticastEnabled}
elasticsearch_discovery_zen_ping_unicast_hosts = ${cfg.elasticsearchDiscoveryZenPingUnicastHosts}
message_journal_dir = ${cfg.messageJournalDir} message_journal_dir = ${cfg.messageJournalDir}
mongodb_uri = ${cfg.mongodbUri} mongodb_uri = ${cfg.mongodbUri}
plugin_dir = /var/lib/graylog/plugins plugin_dir = /var/lib/graylog/plugins
@ -91,22 +89,10 @@ in
''; '';
}; };
elasticsearchClusterName = mkOption { elasticsearchHosts = mkOption {
type = types.str; type = types.listOf types.str;
example = "graylog"; example = literalExample ''[ "http://node1:9200" "http://user:password@node2:19200" ]'';
description = "This must be the same as for your Elasticsearch cluster"; 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";
};
elasticsearchDiscoveryZenPingMulticastEnabled = mkOption {
type = types.bool;
default = false;
description = "Whether to use elasticsearch multicast discovery";
};
elasticsearchDiscoveryZenPingUnicastHosts = mkOption {
type = types.str;
default = "127.0.0.1:9300";
description = "Tells Graylogs Elasticsearch client how to find other cluster members. See Elasticsearch documentation for details";
}; };
messageJournalDir = mkOption { messageJournalDir = mkOption {