Merge branch 'docker_logrotate' into 'master'
Logrotate on wap,pc node copytruncate方式轮询日志 See merge request !50
Showing
2 changed files
with
38 additions
and
0 deletions
playbooks/yohobuy-pc-logrotate.yml
0 → 100644
1 | +- hosts: yohobuy-pc | ||
2 | + vars: | ||
3 | + logrotate_scripts: | ||
4 | + - name: yohobuy-pc | ||
5 | + paths: | ||
6 | + - "/Data/logs/nginx/yohobuywap-node/*.log" | ||
7 | + - "/Data/logs/yohobuy-node/error/error.log" | ||
8 | + - "/Data/logs/yohobuy-node/info/info.log" | ||
9 | + options: | ||
10 | + - daily | ||
11 | + - size 50M | ||
12 | + - rotate 7 | ||
13 | + - missingok | ||
14 | + - notifempty | ||
15 | + - compress | ||
16 | + - copytruncate | ||
17 | + remote_user: root | ||
18 | + roles: | ||
19 | + - logrotate |
playbooks/yohobuy-wap-logrotate.yml
0 → 100644
1 | +- hosts: yohobuy-wap | ||
2 | + vars: | ||
3 | + logrotate_scripts: | ||
4 | + - name: yohobuy-wap | ||
5 | + paths: | ||
6 | + - "/Data/logs/nginx/yohobuywap-node/*.log" | ||
7 | + - "/Data/logs/yohobuywap-node/error/error.log" | ||
8 | + - "/Data/logs/yohobuywap-node/info/info.log" | ||
9 | + options: | ||
10 | + - daily | ||
11 | + - size 50M | ||
12 | + - rotate 7 | ||
13 | + - missingok | ||
14 | + - notifempty | ||
15 | + - compress | ||
16 | + - copytruncate | ||
17 | + remote_user: root | ||
18 | + roles: | ||
19 | + - logrotate |
-
Please register or login to post a comment