diff options
author | Maximilian Nitsch <maximilian.nitsch@d3tn.com> | 2023-05-11 16:33:45 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-05-15 09:11:41 +0200 |
commit | 25f3323d60271ac9b668757322c47f96aa7ca726 (patch) | |
tree | b83aec82e674b69501177048d980c42d19fc3bb9 | |
parent | ca9c4da5d208d41e2e79b711768507a33a7b1b69 (diff) |
nixos/etcd: Fix mapping of clientCertAuth option
The clientCertAuth option must be mapped to the etcd environment variable ETCD_CLIENT_CERT_AUTH and the peerClientCertAuth option to ETCD_PEER_CLIENT_CERT_AUTH. Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
-rw-r--r-- | nixos/modules/services/misc/etcd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/etcd.nix b/nixos/modules/services/misc/etcd.nix index 3343e94778a2b..17a7cca917f24 100644 --- a/nixos/modules/services/misc/etcd.nix +++ b/nixos/modules/services/misc/etcd.nix @@ -167,10 +167,11 @@ in { ETCD_LISTEN_CLIENT_URLS = concatStringsSep "," cfg.listenClientUrls; ETCD_LISTEN_PEER_URLS = concatStringsSep "," cfg.listenPeerUrls; ETCD_INITIAL_ADVERTISE_PEER_URLS = concatStringsSep "," cfg.initialAdvertisePeerUrls; + ETCD_PEER_CLIENT_CERT_AUTH = toString cfg.peerClientCertAuth; ETCD_PEER_TRUSTED_CA_FILE = cfg.peerTrustedCaFile; ETCD_PEER_CERT_FILE = cfg.peerCertFile; ETCD_PEER_KEY_FILE = cfg.peerKeyFile; - ETCD_CLIENT_CERT_AUTH = toString cfg.peerClientCertAuth; + ETCD_CLIENT_CERT_AUTH = toString cfg.clientCertAuth; ETCD_TRUSTED_CA_FILE = cfg.trustedCaFile; ETCD_CERT_FILE = cfg.certFile; ETCD_KEY_FILE = cfg.keyFile; |