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
79554fee
"git@gitlab.liu.se:edvth289/pycommandcenter.git" did not exist on "master"
Commit
79554fee
authored
5 years ago
by
Hans Persson
Browse files
Options
Downloads
Patches
Plain Diff
Lint: Don't use star comments.
parent
e2c4277b
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/init.pp
+17
-18
17 additions, 18 deletions
manifests/init.pp
with
17 additions
and
18 deletions
manifests/init.pp
+
17
−
18
View file @
79554fee
...
...
@@ -8,9 +8,9 @@ class syslog::vars
}
/*
*
Add
or
remove
$ModLoad
directives
from
the
rsyslog
configuration
.
*/
#
Add or remove $ModLoad directives from the rsyslog configuration.
define
rsyslog::modload
(
$ensure
=
'present'
)
{
$modload_re
=
sprintf
(
...
...
@@ -84,21 +84,20 @@ class syslog-service__
}
/*
*
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.
*/
# 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.
class
logging::syslog_client
(
$logserver
=
'syslog.nsc.liu.se'
,
$ipfamily
=
'ipv4'
,
# 'ipv4', 'ipv6' or ['ipv4','ipv6']
...
...
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