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; }