fix redis permissions

This commit is contained in:
CroneKorkN 2025-06-22 09:30:04 +02:00
parent dcd2ebc49c
commit 43e7c1f3e4
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 9 additions and 2 deletions

View file

@ -26,9 +26,15 @@ defaults = {
'config': { 'config': {
'server': { 'server': {
'http_port': 8300, 'http_port': 8300,
'http_addr': '127.0.0.1',
'enable_gzip': True,
}, },
'database': { 'database': {
'url': f'postgres://grafana:{postgres_password}@localhost:5432/grafana', 'type': 'postgres',
'host': '127.0.0.1:5432',
'name': 'grafana',
'user': 'grafana',
'password': postgres_password,
}, },
'remote_cache': { 'remote_cache': {
'type': 'redis', 'type': 'redis',

View file

@ -1,6 +1,7 @@
directories = { directories = {
'/etc/redis': { '/etc/redis': {
'purge': True, 'purge': True,
'owner': 'redis',
'needs': [ 'needs': [
'pkg_apt:redis-server', 'pkg_apt:redis-server',
], ],
@ -45,7 +46,7 @@ for name, conf in node.metadata.get('redis').items():
f'svc_systemd:redis-{name}:restart' f'svc_systemd:redis-{name}:restart'
], ],
} }
svc_systemd[f'redis-{name}'] = { svc_systemd[f'redis-{name}'] = {
'needs': [ 'needs': [
'svc_systemd:redis', 'svc_systemd:redis',