dns: add new primary nameserver

This commit is contained in:
Franzi 2023-01-29 11:05:57 +01:00
parent 7bd8237876
commit eeceebfd23
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 45 additions and 28 deletions

View file

@ -3,19 +3,12 @@
nodes['gce.bind01'] = {
'hostname': '34.89.208.78',
'bundles': {
'nodejs',
'powerdnsadmin',
},
'groups': {
'debian-bullseye',
'dns',
'webserver',
},
'metadata': {
'backups': {
# This is the primary DNS server. However, we only use
# replication for DynDNS, currently. No need for backups here.
'exclude_from_backups': True,
},
'interfaces': {
@ -30,33 +23,12 @@ nodes['gce.bind01'] = {
'icinga_options': {
'pretty_name': 'ns-1.kunbox.net',
},
'nginx': {
'vhosts': {
'ns-1.kunbox.net': {
'locations': {
'/': {
'target': 'http://127.0.0.1:8000/',
},
},
'website_check_path': '/login',
'website_check_string': 'PowerDNS',
},
},
},
'postgresql': {
'version': '15',
},
'powerdns': {
'features': {
'bind': True,
},
'is_secondary': False,
'secondary_nameservers': 'dns',
'my_hostname': 'ns-1.kunbox.net',
},
'powerdnsadmin': {
'version': 'v0.3.0',
},
'vm': {
'cpu': 1,
'ram': 1,

43
nodes/ns-primary.toml Normal file
View file

@ -0,0 +1,43 @@
hostname = "82.165.52.168"
bundles = [
"nodejs",
"powerdnsadmin",
]
groups = [
"debian-bullseye",
"dns",
"webserver",
]
[metadata.interfaces.ens192]
ips = [
"82.165.52.168",
"2001:8d8:1801:7d4::1/64",
]
gateway4 = "10.255.255.1"
gateway6 = "fe80::250:56ff:fea8:628f"
[metadata.icinga_options]
pretty_name = "ns-primary.kunbox.net"
[metadata.nginx.vhosts."ns-primary.kunbox.net"]
website_check_path = "/login"
website_check_string = "PowerDNS"
[metadata.nginx.vhosts."ns-primary.kunbox.net".locations."/"]
target = "http://127.0.0.1:8000/"
[metadata.postgresql]
version = "15"
[metadata.powerdns]
is_secondary = false
secondary_nameservers = "dns"
features.bind = true
[metadata.powerdnsadmin]
version = "v0.3.0"
[metadata.vm]
cpu = 2
ram = 2