From a2fa58b77206536753f763eb68dafcceb6d39190 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 16 Mar 2023 16:54:55 +0000 Subject: [PATCH] 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 --- roles/node_exporter/templates/node_exporter.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/node_exporter/templates/node_exporter.service.j2 b/roles/node_exporter/templates/node_exporter.service.j2 index 3f8283c7..92e990ac 100644 --- a/roles/node_exporter/templates/node_exporter.service.j2 +++ b/roles/node_exporter/templates/node_exporter.service.j2 @@ -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 -%}