Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
c30b3c16
Commit
c30b3c16
authored
5 years ago
by
Benjamin Graillot
Browse files
Options
Downloads
Patches
Plain Diff
[rsylog-client] Added role to send logs to thot using rsyslog
parent
eb3cf338
No related branches found
No related tags found
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
base.yml
+8
-0
8 additions, 0 deletions
base.yml
roles/rsyslog-client/tasks/main.yml
+16
-0
16 additions, 0 deletions
roles/rsyslog-client/tasks/main.yml
roles/rsyslog-client/templates/rsyslog.d/50-send_relp.conf.j2
+9
-0
9 additions, 0 deletions
...s/rsyslog-client/templates/rsyslog.d/50-send_relp.conf.j2
with
33 additions
and
0 deletions
base.yml
+
8
−
0
View file @
c30b3c16
...
...
@@ -83,6 +83,14 @@
roles
:
-
nullmailer
# Send logs to thot
-
hosts
:
server
vars
:
rsyslog
:
server
:
thot.adm.crans.org
roles
:
-
rsyslog-client
-
hosts
:
otis.adm.crans.org
roles
:
-
ansible
...
...
This diff is collapsed.
Click to expand it.
roles/rsyslog-client/tasks/main.yml
0 → 100644
+
16
−
0
View file @
c30b3c16
---
-
name
:
Deploy quagga debian configuration
template
:
src
:
rsyslog.d/50-send_relp.conf.j2
dest
:
/etc/rsyslog.d/50-send_relp.conf
mode
:
0640
owner
:
quagga
group
:
quagga
-
name
:
Create spool directory
file
:
path
:
/var/log/spool
state
:
directory
mode
:
'
0750'
owner
:
root
group
:
root
This diff is collapsed.
Click to expand it.
roles/rsyslog-client/templates/rsyslog.d/50-send_relp.conf.j2
0 → 100644
+
9
−
0
View file @
c30b3c16
# {{ ansible_managed }}
$ModLoad omrelp
$WorkDirectory /var/log/spool # default location for work (spool) files
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName syslogfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
*.* :omrelp:{{ rsyslog.server }}:20514;RSYSLOG_ForwardFormat
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment