Skip to content

Commit

Permalink
Add dsekt.addresses.hosts.mjukglass and CNAME for ldap-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Dec 19, 2024
1 parent 922a9ec commit b4befec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/addresses.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ in
options.dsekt.addresses.subnet = opt lib.types.str;

config.dsekt.addresses = {
# Must be kept in sync with `local.cluster_hosts` tf
hosts = lib.fix (self: {
# Must be kept in sync with `local.cluster_hosts` tf
zeus = "10.83.0.2";
poseidon = "10.83.0.3";
hades = "10.83.0.4";
ares = "10.83.0.5";
artemis = "10.83.0.6";

mjukglass = "10.83.1.1";

self = self.${config.networking.hostName};
});

Expand Down
3 changes: 2 additions & 1 deletion profiles/dns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ in
)}
*.nomad A ${config.dsekt.addresses.hosts.self}
postgres CNAME ares
postgres CNAME ares
ldap-proxy CNAME mjukglass
'';
allowQuery = allowedNetworks;
};
Expand Down

0 comments on commit b4befec

Please sign in to comment.