Merge branch 'docker_logrotate' into 'master'
Docker logrotate 新增yoho-activity-platform等目录日志logrotate策略 统一logrotate配置文件名为yohoweb-containers See merge request !52
Showing
2 changed files
with
5 additions
and
23 deletions
playbooks/yohobuy-wap-logrotate.yml
deleted
100644 → 0
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 |
1 | -- hosts: yohobuy-pc | 1 | +- hosts: web-containers |
2 | vars: | 2 | vars: |
3 | logrotate_scripts: | 3 | logrotate_scripts: |
4 | - - name: yohobuy-pc | 4 | + - name: yohoweb-containers |
5 | paths: | 5 | paths: |
6 | - "/Data/logs/nginx/yohobuywap-node/*.log" | 6 | - "/Data/logs/nginx/yohobuywap-node/*.log" |
7 | - - "/Data/logs/yohobuy-node/error/error.log" | ||
8 | - - "/Data/logs/yohobuy-node/info/info.log" | 7 | + - "/Data/logs/nginx/yohobuy-node/*.log" |
8 | + - "/Data/logs/nginx/yoho-activity-platform-admin/*.log" | ||
9 | + - "/Data/logs/nginx/yoho-activity-platform/*.log" | ||
9 | options: | 10 | options: |
10 | - daily | 11 | - daily |
11 | - size 50M | 12 | - size 50M |
-
Please register or login to post a comment