From 4ea2a6eb7c84682d49b50f1e087c64b7dce13103 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/+/794485 Change-Id: Ieffe2852111c3ec8347343a042dd78bbf691d79a --- 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 a758716827..44f7d2820e 100644 --- a/deployment/podman/podman-baremetal-ansible.yaml +++ b/deployment/podman/podman-baremetal-ansible.yaml @@ -55,6 +55,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 tripleo_container_manage to inject @@ -88,6 +95,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 no_log: true @@ -114,6 +122,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: