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
)
This commit is contained in:
parent
59e4b8140a
commit
0d991c9e1c
|
@ -70,6 +70,14 @@ outputs:
|
|||
tripleo::profile::base::logging::logrotate::rotation: {get_param: LogrotateRotationInterval}
|
||||
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
|
||||
|
||||
deploy_steps_tasks:
|
||||
- name: configure tmpwatch on the host
|
||||
when: step|int == 2
|
||||
|
|
Loading…
Reference in New Issue