ceph-prometheus: fix error in templates

- remove trailing double quotes in jinja templates
- add jinja filename without .j2 suffix

Resolves: #4011

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4005/head
Dimitri Savineau 2019-05-21 10:29:16 -04:00 committed by Guillaume Abrioux
parent 6ca7372a2d
commit 29b0d47c8c
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
- name: write prometheus config file
template:
src: prometheus.yml.j2
dest: "{{ prometheus_conf_dir }}/"
dest: "{{ prometheus_conf_dir }}/prometheus.yml"
owner: "{{ prometheus_user_id }}"
notify: service handler
@ -41,7 +41,7 @@
- name: write alertmanager config file
template:
src: alertmanager.yml.j2
dest: "{{ alertmanager_conf_dir }}/"
dest: "{{ alertmanager_conf_dir }}/alertmanager.yml"
owner: "root"
notify: service handler

View File

@ -19,7 +19,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --name=alertmanager \
--memory-swap={{ alertmanager_container_memory * 2 }}GB \
{{ alertmanager_container_image }} \
--config.file=/etc/alertmanager/alertmanager.yml \
--storage.path=/alertmanager"
--storage.path=/alertmanager
ExecStop=/usr/bin/{{ container_binary }} stop alertmanager
Restart=always
RestartSec=10s

View File

@ -21,7 +21,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --name=prometheus \
{{ prometheus_container_image }} \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/prometheus \
--web.external-url=http://{{ inventory_hostname }}:9090/"
--web.external-url=http://{{ inventory_hostname }}:9090/
ExecStop=/usr/bin/{{ container_binary }} stop prometheus
Restart=always
RestartSec=10s