瀏覽代碼

Use logrotatecontents from osfamilymap

pull/375/head
l00d3r 3 年之前
父節點
當前提交
b1029db0db
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入21 次删除
  1. +1
    -21
      apache/config/logrotate.sls

+ 1
- 21
apache/config/logrotate.sls 查看文件

@@ -8,24 +8,4 @@ apache-config-logrotate-file-managed:
file.managed:
- name: {{ apache.logrotatedir }}
- makedirs: True
- contents: |
{{ apache.logdir }}/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if /etc/init.d/{{ apache.service.name }} status >/dev/null; then \
/etc/init.d/{{ apache.service.name }} reload >/dev/null; \
fi;
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}
- contents: {{ apache.logrotatecontents }}

Loading…
取消
儲存