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/+/795041
Change-Id: Ieffe2852111c3ec8347343a042dd78bbf691d79a
(cherry picked from commit 4ea2a6eb7c)
changes/42/795042/2
Michele Baldessari 2 weeks ago
parent
commit
496accc442
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      deployment/podman/podman-baremetal-ansible.yaml

+ 9
- 0
deployment/podman/podman-baremetal-ansible.yaml View File

@ -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 tripleo_container_manage 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:


Loading…
Cancel
Save