From eebee951763424d932fe9895df8206824d37967f Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Tue, 24 Jan 2017 12:32:22 -0500 Subject: [PATCH] apache-kafka service: change default brokerId to -1 A default of 0 means that if you deploy two NixOS boxes with the default configuration, the second will fail because the brokerId was already in use. Using -1 instead tells it to pick one automatically at first start. --- nixos/modules/services/misc/apache-kafka.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/apache-kafka.nix b/nixos/modules/services/misc/apache-kafka.nix index c856d3294c01..cff053396885 100644 --- a/nixos/modules/services/misc/apache-kafka.nix +++ b/nixos/modules/services/misc/apache-kafka.nix @@ -38,7 +38,7 @@ in { brokerId = mkOption { description = "Broker ID."; - default = 0; + default = -1; type = types.int; };