]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Jul 2021 15:47:51 +0000 (17:47 +0200)
commit4695df6d2bb6e5b4ccd93e4b740296ad54a33c75
tree27bf364372ecb930f59fe9667d32d083dbd1a57e
parent8e939dc37792d34468b45b096664a3e921c89e77
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