tripleo-ansible/tripleo_ansible/roles/tripleo_podman/tasks
Michele Baldessari 6b827c199b Support default pid limits in containers.conf
Starting With podman 2.X the default pids-limits has been halved from
4096 to 2048:
$ rpm -q podman && podman run --rm -it --net=host --name 'pids' edecd409281d sh -c 'cat /sys/fs/cgroup/pids/pids.max'
podman-2.2.1-3.module+el8.3.1+9392+c5f6d096.x86_64
2048

With podman-1.6.4 the global default pid-limits was hardcoded to 4096
and we had no way to tweak it.

With podman 2.X it is possible to override this in
/etc/containers/containers.conf with the pids_limit setting inside
[containers] in the /etc/containers/containers.conf ini-file:
$ cat /etc/containers/containers.conf
[containers]
pids_limit=6666

$ podman run --rm -it --net=host --name 'pids' edecd409281d sh -c 'cat /sys/fs/cgroup/pids/pids.max'
6666

By adding this we keep the older 4096 default so we do not regress and
at the same time we allow an operator to override this globally.

Related-Bug: #1915122

Change-Id: Id5d5fb9d20c0295763c78171190b9eda13508617
2021-02-10 07:59:24 +01:00
..
load_vars.yaml Ensure those two tasks are compatible with t-h-t import 2020-08-13 15:44:42 +02:00
main.yml Ensure those two tasks are compatible with t-h-t import 2020-08-13 15:44:42 +02:00
tripleo_docker_purge.yml Speed up ansible facts gathering 2020-10-08 16:37:24 +02:00
tripleo_docker_stop.yml Rename all roles that have a hyphen 2020-01-21 20:42:40 -06:00
tripleo_podman_buildah_login.yml [tripleo-podman] Install specific version of buildah 2020-08-17 04:27:19 +00:00
tripleo_podman_install.yml Support default pid limits in containers.conf 2021-02-10 07:59:24 +01:00
tripleo_podman_login.yml Make buildah login optional 2020-07-15 18:39:07 +05:30
tripleo_podman_purge.yml tripleo_podman_purge: try to use -f when pruning images 2020-07-29 09:40:45 -04:00
tripleo_podman_rsyslog.yml Rename all roles that have a hyphen 2020-01-21 20:42:40 -06:00