collectd: add support for mcelog service

Adding a new parameter, CollectdEnableMcelog (False by default) is set
to True, a new host prep task will include the new
"tripleo_provision_mcelog" role to configure the mcelog service on the
host where the collectd container is running.

Depends-On: https://review.opendev.org/730409

Change-Id: Ia2280092abb0d769a92994ad337ed2b583f54175
This commit is contained in:
michalrebisz 2020-05-14 18:26:29 +02:00 committed by Mikołaj Rządca
parent 80888cf742
commit a0cbe76723
1 changed files with 8 additions and 0 deletions

View File

@ -377,6 +377,10 @@ parameters:
type: boolean
description: Set to true to enable configuration for STF client.
default: false
CollectdEnableMcelog:
type: boolean
description: Set to true to enable mcelog
default: false
conditions:
amqp_connection:
@ -732,6 +736,10 @@ outputs:
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/collectd, 'setype': container_file_t, 'mode': '0750' }
- name: import provision_mcelog
import_role:
name: tripleo_provision_mcelog
when: {get_param: CollectdEnableMcelog}
fast_forward_upgrade_tasks:
- when:
- step|int == 0