diff --git a/ansible/roles/common/templates/cron-logrotate-ceph.conf.j2 b/ansible/roles/common/templates/cron-logrotate-ceph.conf.j2 index 98ed78aa2b..d54a2ae9d0 100644 --- a/ansible/roles/common/templates/cron-logrotate-ceph.conf.j2 +++ b/ansible/roles/common/templates/cron-logrotate-ceph.conf.j2 @@ -1,3 +1,7 @@ "/var/log/kolla/ceph/*.log" { + create 644 root root + postrotate + chmod 644 /var/log/kolla/ceph/*.log + endscript } diff --git a/ansible/roles/common/templates/cron-logrotate-neutron.conf.j2 b/ansible/roles/common/templates/cron-logrotate-neutron.conf.j2 index f4c2268292..1f9683435e 100644 --- a/ansible/roles/common/templates/cron-logrotate-neutron.conf.j2 +++ b/ansible/roles/common/templates/cron-logrotate-neutron.conf.j2 @@ -1,3 +1,6 @@ "/var/log/kolla/neutron/*.log" { + postrotate + chmod 644 /var/log/kolla/neutron/*.log + endscript }