From 6900793477cc70e2df20a54788d1c63b67ac5051 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Thu, 3 Jun 2021 15:47:06 +0200 Subject: [PATCH] Allow customizing podman's [engine]/events_logger In I780103e17f1bb42a0546c30bd6c001c642ad88b3 we introduced the journald default for the events_logger key. With this change we allow to change this new default, in case we do need to change it for some reason. Related-Bug: #1923607 Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/794633 Change-Id: Ieffe2852111c3ec8347343a042dd78bbf691d79a (cherry picked from commit 31db48f61d1863a73c04e89d0547848db0661957) --- deployment/podman/podman-baremetal-ansible.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployment/podman/podman-baremetal-ansible.yaml b/deployment/podman/podman-baremetal-ansible.yaml index f9c2fd9afb..6f5db71f57 100644 --- a/deployment/podman/podman-baremetal-ansible.yaml +++ b/deployment/podman/podman-baremetal-ansible.yaml @@ -58,6 +58,13 @@ parameters: default: 4096 description: Setting to configure the default pids_limit in /etc/container/container.conf. This is supported starting with podman 2.0.x + ContainerDefaultEventsLogger: + type: string + default: 'journald' + description: Setting to configure where podman logs its events. Uses journald by default + as that will rotate data stored in tmpfs. + constraints: + - allowed_values: ['journald', 'file', 'none'] SystemdDropInDependencies: default: true description: tell the container manager (e.g. paunch) to inject @@ -91,6 +98,7 @@ outputs: container_registry_logins: {} container_registry_logins_json: {get_param: ContainerImageRegistryCredentials} container_default_pids_limit: {get_param: ContainerDefaultPidsLimit} + container_events_logger_mechanism: {get_param: ContainerDefaultEventsLogger} - name: Convert logins json to dict set_fact: @@ -115,6 +123,7 @@ outputs: vars: tripleo_container_registry_insecure_registries: "{{ container_registry_insecure_registries }}" tripleo_container_default_pids_limit: "{{ container_default_pids_limit }}" + tripleo_container_events_logger_mechanism: "{{ container_events_logger_mechanism }}" - name: Run podman login include_role: