collectd: fix systemd unit override (#194)

This commit is contained in:
Alexander Miroshnichenko 2021-09-10 09:07:42 +00:00 committed by GitHub
parent f0303da4fa
commit dd5bf0ef02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,6 @@
[Service]
ExecStart=
ExecStart=/usr/sbin/collectd -C /etc/collectd/collectd.conf
{% if pillar[collectd][service][caps] is defined %}
{% if salt.pillar.get('collectd:service:caps', False) != False %}
CapabilityBoundingSet={{ salt.pillar.get('collectd:service:caps', [])|join(" ") }}
{% endif %}