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
(cherry picked from commit a0cbe76723)
(cherry picked from commit c775af9e6d)
This commit is contained in:
michalrebisz 2020-05-14 18:26:29 +02:00 committed by Matthias Runge
parent 52eb92bf9b
commit c20d10d413
1 changed files with 8 additions and 0 deletions

View File

@ -362,6 +362,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:
@ -706,6 +710,10 @@ outputs:
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/collectd, 'setype': svirt_sandbox_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