Changed server state

This commit is contained in:
Eric Renfro 2019-05-10 03:11:57 -04:00
parent 848c2e3db4
commit 44776ef155
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -51,7 +51,8 @@ prometheus_service_unit:
file.managed:
{%- if grains.get('init') == 'systemd' %}
- name: /etc/systemd/system/prometheus.service
- source: salt://prometheus/files/prometheus.systemd.jinja
{# - source: salt://prometheus/files/prometheus.systemd.jinja #}
- source: salt://prometheus/fiels/exporter.systemd.jinja
{%- elif grains.get('init') == 'upstart' %}
- name: /etc/init/prometheus.conf
- source: salt://prometheus/files/prometheus.upstart.jinja
@ -60,8 +61,10 @@ prometheus_service_unit:
- context:
user: {{ prometheus.user }}
group: {{ prometheus.group }}
bin_path: {{ prometheus.exporter.node.version_path }}
args: {{ prometheus.exporter.get('args', []) }}
bin_path: {{ prometheus.server.version_path }}
args: {{ prometheus.server.args.get('service_args', []) }}
url: {{ prometheus.server.args.url }}
description: Monitoring Server
- watch:
- file: prometheus_defaults
- require_in: