Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
syslog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nationellt superdatorcentrum
puppetmodules
syslog
Commits
b6edbd35
Commit
b6edbd35
authored
4 years ago
by
Thomas Bellman
Browse files
Options
Downloads
Patches
Plain Diff
Improved documentation for rsyslog::client class.
parent
e2461dd8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/client.pp
+27
-10
27 additions, 10 deletions
manifests/client.pp
with
27 additions
and
10 deletions
manifests/client.pp
+
27
−
10
View file @
b6edbd35
# Configure node to send its system logs to the central syslog server.
#
# This will add an rsyslog fragment (to /etc/rsyslog.d) for sending logs
# to a log server. By default, UDP over IPv4 will be used to send all
# logs to the NSC central syslog server.
#
# The lookup of the logserver IP address is performed on the Puppet
# master. Thus, we need to specify whether IPv4 and/or IPv6 should be
# used, since the Puppet master might not have the same view of what IP
# families are useable as the client. If a node specifies both IPv4 and
# IPv6 (i.e, ipfamily=>['ipv4','ipv6'], one of them will be selected
# based on what the resolver library on the Puppet master thinks is best
# for *it*, not what's best for the node in question.
# to a log server.
#
# Parameters:
#
# - logserver Name or address of log server. If a name, it will be
# looked up during manifest compilation, and the numeric
# address will be written in the config fragment.
#
# - ipfamily Which IP address families are acceptable. Since the
# lookup of the logserver IP address is done on the Puppet
# master, we can't rely on the resolver library to guess
# what is best, since the client might disagree.
#
# - protocol Which protocol to use for sending logs to the server.
# One of "tcp", "udp", or "relp" (Reliable Event Logging
# Protocol).
#
# - port Which TCP/UDP port on the server to send to. Defaults
# to port 514 for TCP and UDP, and 2514 for RELP.
#
# - selector A selector, on the format <facility>.<severity> to
# select which log messages to send to the server.
#
# - format An rsyslog template name determining how the message is
# formatted. Defaults to 'RSYSLOG_ForwardFormat', which
# includes microsecond resolution and timezone information
# in the timestamps (but requires rsyslog as the server).
class
syslog::client
(
$logserver
=
'syslog.nsc.liu.se'
,
...
...
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