diff options
author | Dan Peebles <pumpkin@me.com> | 2017-01-24 12:32:22 -0500 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-01-24 12:32:22 -0500 |
commit | eebee951763424d932fe9895df8206824d37967f (patch) | |
tree | 2a804557dc71dc8f648a3b7626fdb16c176589ac /nixos/modules/services/misc/apache-kafka.nix | |
parent | ca8ab806bb159b4e60f0adaf4a10abbad3b7ae77 (diff) | |
download | nixlib-eebee951763424d932fe9895df8206824d37967f.tar nixlib-eebee951763424d932fe9895df8206824d37967f.tar.gz nixlib-eebee951763424d932fe9895df8206824d37967f.tar.bz2 nixlib-eebee951763424d932fe9895df8206824d37967f.tar.lz nixlib-eebee951763424d932fe9895df8206824d37967f.tar.xz nixlib-eebee951763424d932fe9895df8206824d37967f.tar.zst nixlib-eebee951763424d932fe9895df8206824d37967f.zip |
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.
Diffstat (limited to 'nixos/modules/services/misc/apache-kafka.nix')
-rw-r--r-- | nixos/modules/services/misc/apache-kafka.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |