Enable collectd-ceph plugin only where needed

We need to ensure that ceph plugin is enabled only on relevant nodes,
otherwise it might bring whole collectd down (unlike other collectd plugins)

Change-Id: I36735dc6699e957ee8903ee5a8e9f642740ea5d3
(cherry picked from commit 0b13905447)
This commit is contained in:
Martin Magr 2020-05-06 15:35:32 +02:00 committed by Matthias Runge
parent 66c014e13e
commit 02355504f8
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,11 @@ outputs:
service_name: ceph_mon
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
service_config_settings:
collectd:
tripleo.collectd.plugins.ceph_osd:
- ceph
collectd::plugin::ceph::daemons: []
puppet_config:
config_image: ''
config_volume: ''

View File

@ -121,6 +121,11 @@ outputs:
when: step|int == 2
become: true
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
service_config_settings:
collectd:
tripleo.collectd.plugins.ceph_osd:
- ceph
collectd::plugin::ceph::daemons: []
puppet_config:
config_image: ''
config_volume: ''