feat: deploy consul services

- add vault.service.consul
This commit is contained in:
Ben Vincent 2024-04-28 14:06:49 +10:00
parent 0f0d392fb4
commit 43afc23535
2 changed files with 25 additions and 0 deletions

View File

@ -63,6 +63,15 @@ lookup_options:
profiles::dns::master::keys:
merge:
strategy: deep
consul::services:
merge:
strategy: deep
consul::watch:
merge:
strategy: deep
consul::check:
merge:
strategy: deep
facts_path: '/opt/puppetlabs/facter/facts.d'

View File

@ -1,2 +1,18 @@
---
profiles::vault::server::primary_datacenter: 'au-syd1'
consul::services:
vault:
service_name: 'vault'
tags:
- 'https'
- 'secure'
address: "%{facts.networking.ip}" # Dynamically set from the networking facts
port: 443
checks:
- 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
interval: '10s'
timeout: '1s'