feat: generate consul policy/tokens

- generate policy/token to add nodes
- generate policy/token for all nodes
- add base::root profile to manage aspects of the root user
This commit is contained in:
2024-04-27 01:16:05 +10:00
parent c0642bbcf1
commit f536d19034
9 changed files with 112 additions and 3 deletions
+3 -1
View File
@@ -105,8 +105,10 @@ class profiles::consul::server (
# consul before extra services
if defined(Class['consul']) {
# setup nginx
# include nginx, policies and tokens
include profiles::consul::nginx
include profiles::consul::policies
include profiles::consul::tokens
# get the dns port from the $ports hash, otherwise use the default
$dns_port = pick($ports['dns'], 8600)