]> git-server-git.apps.pok.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>
Sat, 12 Dec 2020 05:55:27 +0000 (06:55 +0100)
commit5a410263470932f2f1a22572e0f2c42939591402
tree2ee202c12703adce87a168b1806ce50b875b3a21
parentd82249a8c0afdb91f78733043b6da9dd5a1444cd
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>
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