Changed server state
This commit is contained in:
parent
848c2e3db4
commit
44776ef155
1 changed files with 6 additions and 3 deletions
|
@ -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…
Reference in a new issue