r/minio: Update container unit for Podman 5

Modern versions of Podman use Netavark, which needs to write various
files on the host file system (even when the container uses the
host's network namespace).
This commit is contained in:
2024-08-31 18:59:28 -05:00
parent 623f652e0d
commit 7ec7cad26a
2 changed files with 6 additions and 0 deletions

View File

@@ -102,6 +102,8 @@
- name: flush_handlers
meta: flush_handlers
tags:
- always
- name: ensure minio.service is running
systemd:

View File

@@ -2,6 +2,7 @@
Description=MinIO Object Storage
Wants=network-online.target
After=network-online.target
RequiresMountsFor={{ minio_storage_path }}
[Container]
Image={{ minio_container_image }}:{{ minio_version }}
@@ -27,6 +28,9 @@ ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=strict
ReadWritePaths=/etc/minio/certs
ReadWritePaths=/etc/containers/networks
ReadWritePaths=/run
ReadWritePaths=/var/lib/containers/storage
ReadWritePaths={{ minio_storage_path }}
RestrictRealtime=yes