Fixup small issues on new zuul scheduler
This fixes the zuul debug log's logrotate filename. We also increase the rotation count to 30 daily logs for all zuul scheduler zuul processes (this matches the old server). We also create a /var/lib/zuul/backup dir so that status.json backups have a location they can write to. We do this in the base zuul role which means all zuul servers will get this dir. It doesn't currently conflict with any of the cluster members' /var/lib/zuul contents so should be fine. Change-Id: I4709e3c7e542781a65ae24c1f05a32444026fd26
This commit is contained in:
parent
6aab5d7013
commit
39f10b5fe5
@ -40,12 +40,14 @@
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/zuul.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Rotate zuul debug logs
|
||||
include_role:
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/zuul-debug.log
|
||||
logrotate_file_name: /var/log/zuul/debug.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Rotate gearman logs
|
||||
include_role:
|
||||
|
@ -71,24 +71,28 @@
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/web.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Rotate web debug logs
|
||||
include_role:
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/web-debug.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Rotate fingergw logs
|
||||
include_role:
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/fingergw.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Rotate fingergw debug logs
|
||||
include_role:
|
||||
name: logrotate
|
||||
vars:
|
||||
logrotate_file_name: /var/log/zuul/fingergw-debug.log
|
||||
logrotate_rotate: 30
|
||||
|
||||
- name: Make docker-compose directory
|
||||
file:
|
||||
|
@ -97,6 +97,7 @@
|
||||
- /var/run/zuul
|
||||
- /var/lib/zuul
|
||||
- /var/lib/zuul/ssh
|
||||
- /var/lib/zuul/backup
|
||||
|
||||
- name: Write Zuul SSH Key
|
||||
copy:
|
||||
|
Loading…
Reference in New Issue
Block a user