fmt: organised varibles for deployment
This commit is contained in:
parent
654d45a842
commit
3e942f9b73
3 changed files with 16 additions and 8 deletions
|
@ -11,9 +11,13 @@
|
|||
|
||||
{ pkgs, lib, nodes, ... }:
|
||||
let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
name = "agentjones";
|
||||
|
||||
ip_pub = "193.1.99.72";
|
||||
ip_priv = "172.20.20.1";
|
||||
hostname = "agentjones.skynet.ie";
|
||||
# hostname = "${name}.skynet.ie";
|
||||
hostname = ip_pub;
|
||||
|
||||
in {
|
||||
imports = [
|
||||
|
@ -30,7 +34,7 @@ in {
|
|||
|
||||
skynet_dns.records = {
|
||||
external = [
|
||||
"agentjones A ${ip_pub}"
|
||||
"${name} A ${ip_pub}"
|
||||
];
|
||||
cname = [];
|
||||
};
|
||||
|
|
|
@ -12,9 +12,12 @@
|
|||
|
||||
{ pkgs, lib, nodes, ... }:
|
||||
let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
name = "vendetta";
|
||||
|
||||
ip_pub = "193.1.99.120";
|
||||
ip_priv = "172.20.20.3";
|
||||
# hostname = "vendetta.skynet.ie";
|
||||
# hostname = "${name}.skynet.ie";
|
||||
hostname = ip_pub;
|
||||
|
||||
# sets which nameserver it is
|
||||
|
@ -45,7 +48,7 @@ in {
|
|||
own = {
|
||||
nameserver = ns;
|
||||
external = [
|
||||
"vendetta A ${ip_pub}"
|
||||
"${name} A ${ip_pub}"
|
||||
"${ns} A ${ip_pub}"
|
||||
|
||||
# needs this, temporally
|
||||
|
|
|
@ -12,10 +12,11 @@
|
|||
|
||||
{ pkgs, lib, nodes, ... }:
|
||||
let
|
||||
# ip_pub = "193.1.99.121";
|
||||
ip_pub = "192.168.1.157";
|
||||
name = "vigil";
|
||||
|
||||
ip_pub = "193.1.99.121";
|
||||
ip_priv = "172.20.20.4";
|
||||
# hostname = "vigil.skynet.ie";
|
||||
# hostname = "${name}.skynet.ie";
|
||||
hostname = ip_pub;
|
||||
|
||||
# sets which nameserver it is
|
||||
|
@ -46,7 +47,7 @@ in {
|
|||
own = {
|
||||
nameserver = ns;
|
||||
external = [
|
||||
"vigil A ${ip_pub}"
|
||||
"${name} A ${ip_pub}"
|
||||
"${ns} A ${ip_pub}"
|
||||
];
|
||||
cname = [
|
||||
|
|
Loading…
Reference in a new issue