diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-11-23 01:25:53 +0100 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-11-23 01:25:53 +0100 |
commit | 7202121e0e475b924826f3c3f180db021ad78f83 (patch) | |
tree | 1cc1a1354947724d0941c62e942c6e00b0fce653 /nixos/modules/services/misc/etcd.nix | |
parent | a5703dd8fc309f60de6deff102d9b981502c1098 (diff) | |
download | nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar.gz nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar.bz2 nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar.lz nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar.xz nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.tar.zst nixpkgs-7202121e0e475b924826f3c3f180db021ad78f83.zip |
nixos/etcd: only use one cient url by default
Diffstat (limited to 'nixos/modules/services/misc/etcd.nix')
-rw-r--r-- | nixos/modules/services/misc/etcd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/etcd.nix b/nixos/modules/services/misc/etcd.nix index f0693911616..550d351ccfb 100644 --- a/nixos/modules/services/misc/etcd.nix +++ b/nixos/modules/services/misc/etcd.nix @@ -28,13 +28,13 @@ in { listenClientUrls = mkOption { description = "Etcd list of URLs to listen on for client traffic."; - default = ["http://localhost:2379" "http://localhost:4001"]; + default = ["http://localhost:4001"]; type = types.listOf types.str; }; listenPeerUrls = mkOption { description = "Etcd list of URLs to listen on for peer traffic."; - default = ["http://localhost:2380" "http://localhost:7001"]; + default = ["http://localhost:7001"]; type = types.listOf types.str; }; @@ -100,7 +100,7 @@ in { after = [ "network-interfaces.target" ]; environment = { - ETCD_NAME = cfg.name; + ETCD_NAME = cfg.name; ETCD_DISCOVERY = cfg.discovery; ETCD_DATA_DIR = cfg.dataDir; ETCD_ADVERTISE_CLIENT_URLS = concatStringsSep "," cfg.advertiseClientUrls; |