Fix prometheus/loki cache keys not writing to same file
Some checks failed
/ dev-shell (push) Successful in 26s
/ check (push) Successful in 1m19s
/ rust-packages (push) Successful in 33s
/ terraform-providers (push) Successful in 56s
/ systems (push) Has been cancelled

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-15 22:59:37 +02:00
parent 24c28283d4
commit 005ac30c21
Signed by: khs
GPG key ID: C7D890804F01E9F0
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ in
{{ .Cert | writeToFile "${client_cert}" "${config.khscodes.services.alloy.user}" "${config.khscodes.services.alloy.group}" "0644" }} {{ .Cert | writeToFile "${client_cert}" "${config.khscodes.services.alloy.user}" "${config.khscodes.services.alloy.group}" "0644" }}
{{- end -}} {{- end -}}
''; '';
destination = "/var/lib/alloy/cache.key"; destination = "/var/lib/alloy/loki.cache";
owner = "alloy"; owner = "alloy";
group = "alloy"; group = "alloy";
perms = "0600"; perms = "0600";

View file

@ -62,7 +62,7 @@ in
{{ .Cert | writeToFile "${client_cert}" "${config.khscodes.services.alloy.user}" "${config.khscodes.services.alloy.group}" "0644" }} {{ .Cert | writeToFile "${client_cert}" "${config.khscodes.services.alloy.user}" "${config.khscodes.services.alloy.group}" "0644" }}
{{- end -}} {{- end -}}
''; '';
destination = "/var/lib/alloy/cache.key"; destination = "/var/lib/alloy/prometheus.cache";
owner = "alloy"; owner = "alloy";
group = "alloy"; group = "alloy";
perms = "0600"; perms = "0600";