diff --git a/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py b/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py index c5272359572..ddb3845a10a 100644 --- a/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py +++ b/cluster/juju/layers/kubeapi-load-balancer/reactive/load_balancer.py @@ -37,24 +37,25 @@ from subprocess import CalledProcessError apilb_nginx = """/var/log/nginx.*.log { - daily - missingok - rotate 14 - compress - delaycompress - notifempty - create 0640 www-data adm - sharedscripts - prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\ - run-parts /etc/logrotate.d/httpd-prerotate; \\ - fi \\ - endscript - postrotate - invoke-rc.d nginx rotate >/dev/null 2>&1 - endscript + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 www-data adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\ + run-parts /etc/logrotate.d/httpd-prerotate; \\ + fi \\ + endscript + postrotate + invoke-rc.d nginx rotate >/dev/null 2>&1 + endscript }""" + @when('certificates.available') def request_server_certificates(tls): '''Send the data that is required to create a server certificate for