1.0 KiB
1.0 KiB
systemd-tmpfiles
systemd-tmpfiles can be used to create, delete, and clean up files and directories.
The system-wide configuration is in /etc/tmpfiles.d/*.conf.
Hiera Configuration
In Hiera below profile::tmpfiles: you can set several use cases (here podman) with individual configuration at content which contains the full configuration as documented in tmpfiles.d(5):
profile::tmpfiles:
podman:
content: |
# This file is distributed by Puppet: profile::tmpfiles
# See tmpfiles.d(5) for details
# Remove podman temporary directories on each boot
# https://github.com/containers/podman/discussions/23193
R! /tmp/containers-user-*
R! /tmp/podman-run-*
To undo above configuration requires
profile::tmpfiles:
podman:
ensure: absent