- remove trailing double quotes in jinja templates
- add jinja filename without .j2 suffix
Resolves: #4011
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
29b0d47c8cc3943ee89aaa660455616f87f90caa)
- 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
- 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
--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
{{ 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