feat: add node_token to agent config
- move policy rules to hiera array[hash] - add node_token to agent as the default token
This commit is contained in:
@@ -6,13 +6,17 @@ consul::services:
|
||||
tags:
|
||||
- 'https'
|
||||
- 'secure'
|
||||
address: "%{facts.networking.ip}" # Dynamically set from the networking facts
|
||||
address: "%{facts.networking.ip}"
|
||||
port: 443
|
||||
checks:
|
||||
- check_id: 'vault_https_check'
|
||||
- id: 'vault_https_check'
|
||||
name: 'Vault HTTPS Check'
|
||||
http: "https://%{facts.networking.fqdn}:443/v1/sys/health"
|
||||
method: 'GET'
|
||||
tls_skip_verify: true # Set to false in production for security
|
||||
tls_skip_verify: true
|
||||
interval: '10s'
|
||||
timeout: '1s'
|
||||
profiles::consul::client::node_rules:
|
||||
- resource: service
|
||||
segment: vault
|
||||
disposition: write
|
||||
|
||||
Reference in New Issue
Block a user