feat: add external grafana access (#366)

- enable access to grafana through haproxy
- ensure grafana cert created from letsencrypt
- enable user access to grafana

Reviewed-on: #366
This commit was merged in pull request #366.
This commit is contained in:
2025-07-28 21:07:43 +10:00
parent 7fbb87b4b6
commit df457306cc
5 changed files with 50 additions and 3 deletions
@@ -116,4 +116,19 @@ class profiles::metrics::grafana (
require => Package['grafana'],
before => Service['grafana'],
}
# export haproxy balancemember
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
service => 'be_grafana',
ports => [443],
options => [
"cookie ${facts['networking']['hostname']}",
'ssl',
'verify none',
'check',
'inter 2s',
'rise 3',
'fall 2',
]
}
}