From a1fc39641286d1a0f4e51336003b8658c5e81097 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 7 Dec 2022 17:13:03 +0100 Subject: Add possible public_ipv4 node tag --- nix/deuxfleurs.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nix') diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix index 28161dc..7c7c6d3 100644 --- a/nix/deuxfleurs.nix +++ b/nix/deuxfleurs.nix @@ -90,9 +90,15 @@ in description = "Site (availability zone) on which this node is deployed"; type = types.str; }; + public_ipv4 = mkOption { + description = "Public IPv4 through which this node is accessible (possibly after port opening using DiploNAT), for domain names that are updated by D53"; + type = types.nullOr types.str; + default = null; + }; cname_target = mkOption { - description = "DNS CNAME target to use for services hosted in this site, for domain names that are updated by DiploNAT"; + description = "DNS CNAME target to use for services hosted in this site, for domain names that are updated by D53"; type = types.nullOr types.str; + default = null; }; nameservers = mkOption { description = "External DNS servers to use"; @@ -133,6 +139,9 @@ in "site" = cfg.site_name; "public_ipv6" = cfg.ipv6; } // + (if cfg.public_ipv4 != null + then { "public_ipv4" = cfg.public_ipv4; } + else {}) // (if cfg.cname_target != null then { "cname_target" = cfg.cname_target; } else {}); -- cgit v1.2.3