From fdbbc4c22d15ba6fa581addfe8ce00e21e8fcb14 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 18 Jan 2023 12:54:21 -0800 Subject: [PATCH] Add KDC to sea.fudo.org (for testing...for now) --- domains/sea.fudo.org.nix | 3 +++ lib.nix | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/domains/sea.fudo.org.nix b/domains/sea.fudo.org.nix index 0f75c0a..8d795a3 100644 --- a/domains/sea.fudo.org.nix +++ b/domains/sea.fudo.org.nix @@ -12,6 +12,9 @@ ldap-servers = [ "nutboy3" "legatus" ]; + kerberos-master = "limina"; + kerberos-slaves = [ "nostromo" ]; + prometheus-hosts = [ "limina" ]; grafana-hosts = [ "nostromo" ]; log-aggregator = "nostromo"; diff --git a/lib.nix b/lib.nix index 6678add..50de33c 100644 --- a/lib.nix +++ b/lib.nix @@ -8,5 +8,8 @@ let let domain-name = entities.hosts."${hostname}".domain; in entities.domains."${domain-name}"; getHostRealm = hostname: (getHostDomain hostname).gssapi-realm; + getHostFqdn = hostname: + let hostDomain = entities.hosts."${hostname}".domain; + in "${hostname}.${hostDomain}"; -in { inherit getHostSite getHostDomain getHostRealm; } +in { inherit getHostSite getHostDomain getHostRealm getHostFqdn; }