fix: remove quotation of flags in systemd config file

Remove the quotation around the collector option flags and values
in the node_exporter role systemd unit config file template so that
regex values get parsed correctly.

Refs: #68
Signed-off-by: Andrew Kingston <andrew.kingston@framestore.com>
This commit is contained in:
Andrew Kingston 2023-03-16 16:54:55 +00:00
parent ebae6c7610
commit a2fa58b772

View file

@ -16,7 +16,7 @@ ExecStart={{ node_exporter_binary_install_dir }}/node_exporter \
{% set name, options = (collector.items()|list)[0] -%}
--collector.{{ name }} \
{% for k,v in options|dictsort %}
{{ ( '--collector.' + name + '.' + k + '=' + v ) | quote }} \
--collector.{{ name }}.{{ k }}={{ v }} \
{% endfor -%}
{% endif -%}
{% endfor -%}