Fix prometheus prechecks for haproxy and memcached

Add missing `prometheus_memcached_exporter` container_fact
Fix conditional container_fact for haproxy_exporter

Change-Id: Id0f3b94af956f51e3c782c0244c6ce7a340119bd
Closes-Bug: #1808820
This commit is contained in:
Pavel Sinkevych 2018-12-12 18:32:05 +03:00
parent 3af135d4fb
commit 0c8b4730af
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
- prometheus_server
- prometheus_node_exporter
- prometheus_haproxy_exporter
- prometheus_memcached_exporter
- prometheus_mysqld_exporter
- prometheus_cadvisor
- prometheus_alertmanager
@ -53,7 +54,7 @@
timeout: 1
state: stopped
when:
- container_facts['prometheus_mysqld_exporter'] is not defined
- container_facts['prometheus_haproxy_exporter'] is not defined
- inventory_hostname in groups['prometheus-haproxy-exporter']
- enable_prometheus_haproxy_exporter | bool