Merge pull request #14 from cudevmaxwell/issue-13

node_exporter: Support filesystems mounted under '/home'
This commit is contained in:
Ben Kochie 2022-12-24 18:46:45 +01:00 committed by GitHub
commit 4d73260d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,11 +34,11 @@ Restart=always
RestartSec=1
StartLimitInterval=0
{% for m in ansible_mounts if m.mount == '/home' %}
ProtectHome=read-only
{% else %}
ProtectHome=yes
{% set protect_home = 'yes' %}
{% for m in ansible_mounts if m.mount.startswith('/home') %}
{% set protect_home = 'read-only' %}
{% endfor %}
ProtectHome={{ protect_home }}
NoNewPrivileges=yes
{% if node_exporter_systemd_version | int >= 232 %}