diff --git a/prometheus/exporter/node.sls b/prometheus/exporter/node.sls index 81ce0d4..9608344 100644 --- a/prometheus/exporter/node.sls +++ b/prometheus/exporter/node.sls @@ -38,13 +38,13 @@ node_exporter_service_unit: - source: salt://prometheus/files/exporter.upstart.jinja {%- endif %} - template: jinja - - defaults: + - context: svc: node_exporter user: {{ prometheus.user }} group: {{ prometheus.group }} bin_path: {{ prometheus.exporter.node.version_path }} - args: {{ prometheus.exporter.get('args', []) }} - url: {{ prometheus.exporter.get('url', None) }} + args: {{ prometheus.exporter.node.get('args', []) }} + url: {{ prometheus.exporter.node.get('url', None) }} - require_in: - file: node_exporter_service