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
03f54f3a
Commit
03f54f3a
authored
5 years ago
by
Hans Persson
Browse files
Options
Downloads
Patches
Plain Diff
Lint: Resource titles need to be quoted.
parent
69475767
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
+6
-6
6 additions, 6 deletions
manifests/init.pp
with
6 additions
and
6 deletions
manifests/init.pp
+
6
−
6
View file @
03f54f3a
...
...
@@ -138,7 +138,7 @@ class logging::syslog_client(
}
# Remove remnants of the old way we configured this
delete_lines {
old-syslog-central:
'
old
-
syslog
-
central
'
:
file => '
/
etc
/
rsyslog
.
conf
',
pattern => '
^\
s
*
[
*
a
-
zA
-
Z0
-
9
]
+
\
.
\
*
\
s
+
@
.*
',
require => File[$cfg_d_file],
...
...
@@ -160,7 +160,7 @@ class central-syslog-server
{
/^CentOS-6.[0-9]+$/: {
rh_sysconfig {
rsyslogd-options:
'
rsyslogd
-
options
'
:
subsystem => '
rsyslog
',
setting => '
SYSLOGD_OPTIONS
',
value => '
"-c5"
',
...
...
@@ -181,7 +181,7 @@ class central-syslog-server
}
iptables {
syslog-input:
'
syslog-input
'
:
ipfamily => ['ipv4','ipv6'], chain => 'INPUT',
saddr =>
$syslog::vars::allowed_clients
,
proto => ['udp','tcp'], dport => 514,
...
...
@@ -209,7 +209,7 @@ class central-syslog-server
# the rotation of the normal logs in /var/log will also run then. Would
# be nice to avoid that, but that does not seem possible.
xaugeas {
logrotate-logstream:
'
logrotate-logstream
'
:
file => '/etc/logrotate.d/logstream', lens => 'Logrotate.lns',
changes => [
"
rm
*
",
...
...
@@ -239,12 +239,12 @@ class central-syslog-server
# FIXME: If the syslog server happens to be down when this cron job
# runs, that particular month will never be compressed.
cron {
compress-old-logs:
'
compress-old-logs
'
:
command => shellquote(
'/root/bin/compress-syslogs.sh', '-v', '3 months ago'),
month => '1-12', monthday => '3', weekday => '*',
hour => 5, minute => 20;
compress-auditlogs:
'
compress-auditlogs
'
:
command => shellquote('/root/bin/compress-auditlogs.sh'),
month => '*', monthday => '*', weekday => '*',
hour => 6, minute => 20;
...
...
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