fix: move primary_datacenter to region/role

- set syd1 as primary consul datacentre
- add consul.service.consul zone
- add nginx reverse proxy for consul webui
- set dns zones/acls/views/keys to be deep merged from hiera
- update default token
- add consul/consul.service.consul/consul.main.unkin.net to vault cert
This commit is contained in:
2024-04-25 00:07:51 +10:00
parent f863d6f6bb
commit a7e9f1590e
10 changed files with 276 additions and 41 deletions
+4 -2
View File
@@ -102,10 +102,12 @@ class profiles::consul::server (
}
}
}
# consul before dnsmasq
# consul before extra services
if defined(Class['consul']) {
# setup nginx
include profiles::consul::nginx
# get the dns port from the $ports hash, otherwise use the default
$dns_port = pick($ports['dns'], 8600)