From 6fa9d9cdbde0e7a9ca418fb100aa2e8a350121de Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Wed, 21 Mar 2018 12:58:19 -0400 Subject: hologram-server module: add cache timeout option The version of hologram we're using has supported this option for a while, but we didn't expose it through the NixOS module --- nixos/modules/services/security/hologram-server.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/security/hologram-server.nix b/nixos/modules/services/security/hologram-server.nix index bb56e2df09b7f..bad02c7440bac 100644 --- a/nixos/modules/services/security/hologram-server.nix +++ b/nixos/modules/services/security/hologram-server.nix @@ -23,8 +23,9 @@ let account = cfg.awsAccount; defaultrole = cfg.awsDefaultRole; }; - stats = cfg.statsAddress; - listen = cfg.listenAddress; + stats = cfg.statsAddress; + listen = cfg.listenAddress; + cachetimeout = cfg.cacheTimeoutSeconds; }); in { options = { @@ -106,6 +107,12 @@ in { default = ""; description = "Address of statsd server"; }; + + cacheTimeoutSeconds = mkOption { + type = types.int; + default = 3600; + description = "How often (in seconds) to refresh the LDAP cache"; + }; }; }; -- cgit 1.4.1