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
990860fa
Commit
990860fa
authored
Nov 22, 2013
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to use COMMON_LOG_DIR
parent
87d4db86
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
playbooks/roles/haproxy/files/haproxy.rsyslog
+0
-4
playbooks/roles/haproxy/tasks/main.yml
+2
-2
playbooks/roles/haproxy/templates/haproxy.logrotate.j2
+1
-1
playbooks/roles/haproxy/templates/haproxy.rsyslog.j2
+4
-0
No files found.
playbooks/roles/haproxy/files/haproxy.rsyslog
deleted
100644 → 0
View file @
87d4db86
if ($programname == 'haproxy' and $syslogseverity-text == 'info') then -/var/log/haproxy/haproxy-info.log
& ~
if ($programname == 'haproxy' and $syslogseverity-text == 'notice') then -/var/log/haproxy/haproxy-notice.log
& ~
playbooks/roles/haproxy/tasks/main.yml
View file @
990860fa
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
notify
:
haproxy | restart haproxy
notify
:
haproxy | restart haproxy
-
name
:
haproxy | install logrotate
-
name
:
haproxy | install logrotate
copy
:
src=haproxy.logrotate
dest=/etc/logrotate.d/haproxy mode=0644
template
:
src=haproxy.logrotate.j2
dest=/etc/logrotate.d/haproxy mode=0644
-
name
:
haproxy | install rsyslog conf
-
name
:
haproxy | install rsyslog conf
copy
:
src=haproxy.rsyslog
dest=/etc/rsyslog.d/haproxy.conf mode=0644
template
:
src=haproxy.rsyslog.j2
dest=/etc/rsyslog.d/haproxy.conf mode=0644
notify
:
haproxy | restart rsyslog
notify
:
haproxy | restart rsyslog
-
name
:
haproxy | make sure haproxy has started
-
name
:
haproxy | make sure haproxy has started
...
...
playbooks/roles/haproxy/
files/haproxy.logrotate
→
playbooks/roles/haproxy/
templates/haproxy.logrotate.j2
View file @
990860fa
/var/log
/haproxy/*.log {
{{ COMMON_LOG_DIR }}
/haproxy/*.log {
weekly
weekly
missingok
missingok
rotate 7
rotate 7
...
...
playbooks/roles/haproxy/templates/haproxy.rsyslog.j2
0 → 100644
View file @
990860fa
if ($programname == 'haproxy' and $syslogseverity-text == 'info') then -{{ COMMON_LOG_DIR }}/haproxy/haproxy-info.log
& ~
if ($programname == 'haproxy' and $syslogseverity-text == 'notice') then -{{ COMMON_LOG_DIR }}/haproxy/haproxy-notice.log
& ~
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