Allow logrotate to access container_file_t files
Since we write logs directly from within containers, logrotate must be able to access them. Change-Id: I2a06cdcda92b2839d74373d6978ef65e7b4dedbd Closes-Bug: #1836000 (cherry picked from commitb81bec56f2
) (cherry picked from commitc8ad086ba1
) (cherry picked from commit0d991c9e1c
)
This commit is contained in:
parent
df4781e49d
commit
0f51fab0c2
|
@ -71,6 +71,12 @@ outputs:
|
|||
tripleo::profile::base::logging::logrotate::rotate: {get_param: LogrotateRotate}
|
||||
tripleo::profile::base::logging::logrotate::purge_after_days: {get_param: LogrotatePurgeAfterDays}
|
||||
host_prep_tasks:
|
||||
- name: allow logrotate to read inside containers
|
||||
seboolean:
|
||||
name: logrotate_read_inside_containers
|
||||
persistent: yes
|
||||
state: yes
|
||||
|
||||
- name: configure tmpwatch on the host
|
||||
copy:
|
||||
dest: /etc/cron.daily/containers-tmpwatch
|
||||
|
|
Loading…
Reference in New Issue