Browse Source

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
changes/92/794592/5
Michele Baldessari 2 months ago
parent
commit
4ea2a6eb7c
  1. 9
      deployment/podman/podman-baremetal-ansible.yaml

9
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:

Loading…
Cancel
Save