Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
0c881b70
Commit
0c881b70
authored
Feb 13, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving logrotate templates into etc/logrotate.d/
parent
e5f56cb0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
playbooks/roles/common/tasks/main.yml
+2
-2
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate.j2
+12
-0
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate_tracking_log.j2
+11
-0
No files found.
playbooks/roles/common/tasks/main.yml
View file @
0c881b70
...
...
@@ -53,12 +53,12 @@
-
name
:
Install logrotate configuration for edX
template
:
dest=/etc/logrotate.d/edx-services src=edx_logrotate.j2 owner=root group=root mode=644
template
:
dest=/etc/logrotate.d/edx-services src=e
tc/logrotate.d/e
dx_logrotate.j2 owner=root group=root mode=644
# This is in common to keep all logrotation config
# in the same role
-
name
:
Install logrotate configuration for tracking file
template
:
dest=/etc/logrotate.d/tracking.log src=edx_logrotate_tracking_log.j2 owner=root group=root mode=644
template
:
dest=/etc/logrotate.d/tracking.log src=e
tc/logrotate.d/e
dx_logrotate_tracking_log.j2 owner=root group=root mode=644
-
name
:
update /etc/hosts
template
:
src=hosts.j2 dest=/etc/hosts
...
...
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate.j2
0 → 100644
View file @
0c881b70
{{ COMMON_LOG_DIR }}/*/edx.log {
create
compress
copytruncate
delaycompress
dateext
missingok
notifempty
daily
rotate 90
size 1M
}
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate_tracking_log.j2
0 → 100644
View file @
0c881b70
{{ COMMON_LOG_DIR }}/tracking.log {
create
compress
delaycompress
dateext
missingok
notifempty
daily
rotate 365000
size 1M
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment