Fix OSP Resources collectd plugin in OSP 13
OSP Resources collectd plugin needs to have collectd-dbi and libdbi-dbd-mysql installed on the controllers, or else collectd service goes to failed state when this plugin is enabled. This patch fixes the issue. Change-Id: If56e9b707608370125553ed521ef964b1ab4c0aa
This commit is contained in:
parent
a8c0f773a5
commit
c98eb5bad9
@ -53,12 +53,12 @@
|
||||
become: true
|
||||
ignore_errors: true
|
||||
|
||||
- name: (Keystone Token Count) Install libdbi mysql driver
|
||||
- name: Install libdbi mysql driver
|
||||
yum:
|
||||
name: "{{item}}"
|
||||
state: present
|
||||
become: true
|
||||
when: "(('Controller' in group_names and keystone_overcloud_collectd_plugin and inventory_hostname == groups['Controller'][0]) or ('Undercloud' in group_names and keystone_undercloud_collectd_plugin))"
|
||||
when: "(('Controller' in group_names and (keystone_overcloud_collectd_plugin or osp_resources_collectd_plugin) and inventory_hostname == groups['Controller'][0]) or ('Undercloud' in group_names and keystone_undercloud_collectd_plugin))"
|
||||
with_items:
|
||||
- libdbi-dbd-mysql
|
||||
- collectd-dbi
|
||||
|
Loading…
Reference in New Issue
Block a user