diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-04-07 07:22:41 +0200 |
---|---|---|
committer | Daniel Schaefer <git@danielschaefer.me> | 2019-06-13 04:36:41 +0200 |
commit | c1991fb18d2a58eefeba0a49bb683eb4e561263f (patch) | |
tree | 0deb2401ee747d4b7e8daa3257e99cd4202e3c47 /nixos | |
parent | f0031432ce0c350f8e44072471f6838ee24a21a8 (diff) |
nixos/cassandra: Add clusterName
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/cassandra.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/cassandra.nix b/nixos/modules/services/databases/cassandra.nix index f51bf824a5e20..3c5a47682686f 100644 --- a/nixos/modules/services/databases/cassandra.nix +++ b/nixos/modules/services/databases/cassandra.nix @@ -9,6 +9,7 @@ let ({ commitlog_sync = "batch"; commitlog_sync_batch_window_in_ms = 2; start_native_transport = cfg.allowClients; + cluster_name = cfg.clusterName; partitioner = "org.apache.cassandra.dht.Murmur3Partitioner"; endpoint_snitch = "SimpleSnitch"; seed_provider = @@ -52,6 +53,15 @@ in { enable = mkEnableOption '' Apache Cassandra – Scalable and highly available database. ''; + clusterName = mkOption { + type = types.str; + default = "NixOS Test Cluster"; + description = '' + The name of the cluster. + This setting prevents nodes in one logical cluster from joining + another. All nodes in a cluster must have the same value. + ''; + }; user = mkOption { type = types.str; default = defaultUser; |