summaryrefslogtreecommitdiff
path: root/roles/whawty/auth/store/templates
diff options
context:
space:
mode:
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