浏览代码

Use logrotatecontents from osfamilymap

pull/375/head
l00d3r 3 年前
父节点
当前提交
b1029db0db
没有帐户链接到提交者的电子邮件
共有 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 }}

正在加载...
取消
保存