Skip to content

Commit

Permalink
greenlight: add logrotate config
Browse files Browse the repository at this point in the history
  • Loading branch information
dkobras committed May 28, 2020
1 parent 0de7c8c commit 010debc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/greenlight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@
tags:
- greenlight-config

- name: Create greenlight logrotate configuration
template:
src: templates/greenlight.logrotate.j2
dest: /etc/logrotate.d/greenlight
mode: 0644
owner: root
group: root
tags:
- greenlight-config

- name: Examine BBB configuration
command: /usr/bin/bbb-conf --secret
changed_when: false
Expand Down
8 changes: 8 additions & 0 deletions templates/greenlight.logrotate.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ bbb_greenlight_logdir }}/*.log {
daily
missingok
rotate 7
compress
notifempty
copytruncate
}

0 comments on commit 010debc

Please sign in to comment.