]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
monitoring: use config_template module for config
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 11 Dec 2020 18:07:04 +0000 (13:07 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 14 Dec 2020 18:28:12 +0000 (13:28 -0500)
commit1f1ca3ec8a93ae85417c9c1676a505e5d0b5f68b
tree00f61d7e32144b27b15224b0275dd1915e64b0fe
parente1314de3d9bb2ffa3f4990a7a7836fb5ffd232e2
monitoring: use config_template module for config

The alertmanager, grafana and prometheus configuration file are
generated with the template module which doesn't allow for using
config overrides.
Instead we could use the config_template plugin action and add a
new variable for overrides (one for each component).

With this patch, one should be able to add configuration to
prometheus with the following:

---
alertmanager_conf_overrides:
  global:
    smtp_smarthost: 'localhost:25'
...

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1902999
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5a410263470932f2f1a22572e0f2c42939591402)
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-grafana/tasks/configure_grafana.yml
roles/ceph-prometheus/tasks/main.yml