summaryrefslogtreecommitdiff
path: root/roles/whawty/auth/store/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-28 13:37:07 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-28 13:37:07 +0100
commit1d94d5f6e3cf85f1e0be0eb6b45cc1a5f1f27b7f (patch)
treeadfd17db37adb181ec8d6c259ddb0f7e7f9986b5 /roles/whawty/auth/store/templates
parentadd what-auth instance to ch-apn (diff)
whawty/auth/store: add prometheus metrics for sync
Diffstat (limited to 'roles/whawty/auth/store/templates')
-rw-r--r--roles/whawty/auth/store/templates/systemd.service.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/whawty/auth/store/templates/systemd.service.j2 b/roles/whawty/auth/store/templates/systemd.service.j2
index 7e066901..4a630183 100644
--- a/roles/whawty/auth/store/templates/systemd.service.j2
+++ b/roles/whawty/auth/store/templates/systemd.service.j2
@@ -3,6 +3,7 @@ Description=sync for whawty-auth store {{ item.key }}
[Service]
Type=simple
+Restart=always
ExecStart=/etc/whawty/auth/.store-{{ item.key }}-sync/run.sh
# systemd hardening-options
@@ -20,7 +21,7 @@ ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
-ReadWritePaths={{ item.value.config.basedir }}
+ReadWritePaths={{ item.value.config.basedir }}{% if (item.value.sync.prometheus | default(False)) %} /var/lib/prometheus-node-exporter/textfile-collector/{% endif %}{{ '' }}
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true