Fixed missing object in node

This commit is contained in:
Eric Renfro 2019-05-08 18:39:51 -04:00
parent c6739a0a54
commit dd06f070e5
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

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