mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
services: Add postgresql-password-file option.
* modules/rosenthal/services/monitoring.scm (grafana-configuration) * modules/rosenthal/services/web.scm (forgejo-configuration) (misskey-configuration, vaultwarden-configuration): Add postgresql-password-file option. * modules/rosenthal/services/monitoring.scm (grafana-postgresql-role) * modules/rosenthal/services/web.scm (forgejo-postgresql-role) (forgejo-service-type, misskey-postgresql-role, misskey-service-type) (vaultwarden-postgresql-role, vaultwarden-service-type): Adjust accordingly.
This commit is contained in:
2 files changed
+43
-20
No files matched your search
@@ -96,6 +96,9 @@
|
||||
(config
|
||||
ini-config
|
||||
"")
|
||||
(postgresql-password-file
|
||||
string
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(grafana))
|
||||
"")
|
||||
@@ -117,10 +120,12 @@
|
||||
(home-directory "/var/lib/grafana")))))
|
||||
|
||||
(define grafana-postgresql-role
|
||||
(lambda _
|
||||
(match-record-lambda <grafana-configuration>
|
||||
(postgresql-password-file)
|
||||
(list (postgresql-role
|
||||
(name "grafana")
|
||||
(create-database? #t)))))
|
||||
(create-database? #t)
|
||||
(password-file postgresql-password-file)))))
|
||||
|
||||
(define grafana-activation
|
||||
(lambda _
|
||||
|
||||
Reference in new issue
Block a user