From ba186ec4b9a8fc8e86f8e6851f5f3a21cf5f183f Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sun, 10 May 2015 18:13:00 -0400 Subject: [PATCH] mesos service: only pass --zk if quorum > 0 The ZooKeeper URL is not necessary when using in-memory slave registration. --- nixos/modules/services/misc/mesos-master.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/mesos-master.nix b/nixos/modules/services/misc/mesos-master.nix index 11e21c33447..52f08c53b1d 100644 --- a/nixos/modules/services/misc/mesos-master.nix +++ b/nixos/modules/services/misc/mesos-master.nix @@ -85,8 +85,9 @@ in { ExecStart = '' ${pkgs.mesos}/bin/mesos-master \ --port=${toString cfg.port} \ - --zk=${cfg.zk} \ - ${if cfg.quorum == 0 then "--registry=in_memory" else "--registry=replicated_log --quorum=${toString cfg.quorum}"} \ + ${if cfg.quorum == 0 + then "--registry=in_memory" + else "--zk=${cfg.zk} --registry=replicated_log --quorum=${toString cfg.quorum}"} \ --work_dir=${cfg.workDir} \ --logging_level=${cfg.logLevel} \ ${toString cfg.extraCmdLineOptions}