Changed server state

master
Eric Renfro 4 years ago
parent 848c2e3db4
commit 44776ef155
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
  1. 9
      prometheus/server.sls

@ -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:

Loading…
Cancel
Save