1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

nixos/cassandra: Allow setting of seed addresses

Allow for more intuitive specifying of seed node addresses with Nix
syntax.
This commit is contained in:
Daniel Schaefer 2019-04-07 05:02:51 +02:00
parent a2aa01be0c
commit 746b82bd4a

View file

@ -13,7 +13,7 @@ let
endpoint_snitch = "SimpleSnitch";
seed_provider =
[{ class_name = "org.apache.cassandra.locator.SimpleSeedProvider";
parameters = [ { seeds = "127.0.0.1"; } ];
parameters = [ { seeds = concatStringsSep "," cfg.seedAddresses; } ];
}];
data_file_directories = [ "${cfg.homeDir}/data" ];
commitlog_directory = "${cfg.homeDir}/commitlog";
@ -163,6 +163,16 @@ in {
XML logback configuration for cassandra
'';
};
seedAddresses = mkOption {
type = types.listOf types.str;
default = [ "127.0.0.1" ];
description = ''
The addresses of hosts designated as contact points in the cluster. A
joining node contacts one of the nodes in the seeds list to learn the
topology of the ring.
Set to 127.0.0.1 for a single node cluster.
'';
};
allowClients = mkOption {
type = types.bool;
default = true;