Skip to content
Snippets Groups Projects
Commit 03f54f3a authored by Hans Persson's avatar Hans Persson
Browse files

Lint: Resource titles need to be quoted.

parent 69475767
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment