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:
|
file.managed:
|
||||||
{%- if grains.get('init') == 'systemd' %}
|
{%- if grains.get('init') == 'systemd' %}
|
||||||
- name: /etc/systemd/system/prometheus.service
|
- 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' %}
|
{%- elif grains.get('init') == 'upstart' %}
|
||||||
- name: /etc/init/prometheus.conf
|
- name: /etc/init/prometheus.conf
|
||||||
- source: salt://prometheus/files/prometheus.upstart.jinja
|
- source: salt://prometheus/files/prometheus.upstart.jinja
|
||||||
|
@ -60,8 +61,10 @@ prometheus_service_unit:
|
||||||
- context:
|
- context:
|
||||||
user: {{ prometheus.user }}
|
user: {{ prometheus.user }}
|
||||||
group: {{ prometheus.group }}
|
group: {{ prometheus.group }}
|
||||||
bin_path: {{ prometheus.exporter.node.version_path }}
|
bin_path: {{ prometheus.server.version_path }}
|
||||||
args: {{ prometheus.exporter.get('args', []) }}
|
args: {{ prometheus.server.args.get('service_args', []) }}
|
||||||
|
url: {{ prometheus.server.args.url }}
|
||||||
|
description: Monitoring Server
|
||||||
- watch:
|
- watch:
|
||||||
- file: prometheus_defaults
|
- file: prometheus_defaults
|
||||||
- require_in:
|
- require_in:
|
||||||
|
|
Loading…
Reference in a new issue