config-files/systemd-config/files/systemd.conf.tmpfiles.d
Adriano Oliveira 10957a714d Add automatic cleanup for puppet reports files
The systemd-tmpfiles-clean.service is responsible for automatic
cleanup of old files, however, this service was failed upon
installation and configuration of the platform.
The error was related to the kubernetes.conf file to have
a reference to kube user, an override conf was added to
systemd config files to reference root user.
Also, the location /var/lib/puppet/reports was added to the
systemd conf file.

Closes-Bug: 1958269

Test Plan:

PASS: Verify systemd-tmpfiles-clean.service is active/loaded
PASS: Verify /var/lib/puppet/reports is being cleaned automatically
PASS: Verify cleanup on both AIO and Standard configurations
Signed-off-by: Adriano Oliveira <adriano.oliveira@windriver.com>
Change-Id: I0d31b778c4c626a6aaf13dd3814607be38ad21ee
2022-02-24 20:07:22 -05:00

45 lines
1.7 KiB
Makefile

# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See tmpfiles.d(5) for details
d /run/user 0755 root root -
F! /run/utmp 0664 root utmp -
d /run/systemd/ask-password 0755 root root -
d /run/systemd/seats 0755 root root -
d /run/systemd/sessions 0755 root root -
d /run/systemd/users 0755 root root -
d /run/systemd/machines 0755 root root -
d /run/systemd/shutdown 0755 root root -
d /run/systemd/netif 0755 systemd-network systemd-network -
d /run/systemd/netif/links 0755 systemd-network systemd-network -
d /run/systemd/netif/leases 0755 systemd-network systemd-network -
d /run/log 0755 root root -
z /run/log/journal 2755 root systemd-journal - -
Z /run/log/journal/%m ~2750 root systemd-journal - -
a+ /run/log/journal/%m - - - - d:group:sys_protected:r-x,d:group:wheel:r-x
A+ /run/log/journal/%m - - - - group:sys_protected:r-x,group:wheel:r-x
z /var/log/journal 2755 root systemd-journal - -
z /var/log/journal/%m 2755 root systemd-journal - -
z /var/log/journal/%m/system.journal 0640 root systemd-journal - -
a+ /var/log/journal - - - - d:group:sys_protected:r-x,d:group:wheel:r-x
a+ /var/log/journal - - - - group:sys_protected:r-x,group:wheel:r-x
a+ /var/log/journal/%m - - - - d:group:sys_protected:r-x,d:group:wheel:r-x
a+ /var/log/journal/%m - - - - group:sys_protected:r-x,group:wheel:r-x
a+ /var/log/journal/%m/system.journal - - - - group:sys_protected:r--,group:wheel:r--
d /var/lib/systemd 0755 root root -
d /var/lib/systemd/coredump 0755 root root 3d
e /var/lib/puppet/reports/* 0755 root root 30d