diff options
author | Charles Strahan <charles@cstrahan.com> | 2016-12-28 00:19:51 -0500 |
---|---|---|
committer | Charles Strahan <charles@cstrahan.com> | 2016-12-29 20:09:46 -0500 |
commit | 7ebcada02028e5ce8199cc123fda6aa1aba72e64 (patch) | |
tree | fc4a4c2c31aeddf0625593ee5be48caa30741d4f /nixos/modules/services/misc/mesos-master.nix | |
parent | da70d3da0f11b22eac77756b39b349215e06b2e3 (diff) | |
download | nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.gz nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.bz2 nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.lz nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.xz nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.zst nixpkgs-7ebcada02028e5ce8199cc123fda6aa1aba72e64.zip |
mesos: 1.0.1 -> 1.1.0
Diffstat (limited to 'nixos/modules/services/misc/mesos-master.nix')
-rw-r--r-- | nixos/modules/services/misc/mesos-master.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/mesos-master.nix b/nixos/modules/services/misc/mesos-master.nix index 99583ebeebd..0523c6549ed 100644 --- a/nixos/modules/services/misc/mesos-master.nix +++ b/nixos/modules/services/misc/mesos-master.nix @@ -16,12 +16,30 @@ in { type = types.bool; }; + ip = mkOption { + description = "IP address to listen on."; + default = "0.0.0.0"; + type = types.str; + }; + port = mkOption { description = "Mesos Master port"; default = 5050; type = types.int; }; + advertiseIp = mkOption { + description = "IP address advertised to reach this master."; + default = null; + type = types.nullOr types.str; + }; + + advertisePort = mkOption { + description = "Port advertised to reach this Mesos master."; + default = null; + type = types.nullOr types.int; + }; + zk = mkOption { description = '' ZooKeeper URL (used for leader election amongst masters). @@ -84,7 +102,10 @@ in { serviceConfig = { ExecStart = '' ${pkgs.mesos}/bin/mesos-master \ + --ip=${cfg.ip} \ --port=${toString cfg.port} \ + ${optionalString (cfg.advertiseIp != null) "--advertise_ip=${cfg.advertiseIp}"} \ + ${optionalString (cfg.advertisePort != null) "--advertise_port=${toString cfg.advertisePort}"} \ ${if cfg.quorum == 0 then "--registry=in_memory" else "--zk=${cfg.zk} --registry=replicated_log --quorum=${toString cfg.quorum}"} \ |