forked from simp/pupmod-simp-rsyslog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-5315) Updated rsyslogd parameters (simp#82)
Added logic to properly handle rsyslogd parameters for V8.6 and later as documented in CentOS 7.5 Release notes. These included moving -x and -w options from parameters to entries in global.conf and issuing deprecation warning for -l and -s options. SIMP-5315 #close SIMP-5405 #close SIMP-5406 #close SIMP-5407 #close
- Loading branch information
1 parent
a38a39f
commit 2f38507
Showing
6 changed files
with
107 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
* Mon Oct 08 2018 Jeanne Greulich <[email protected]> - 7.2.1-0 | ||
- Added logic to properly handle rsyslogd parameters for V8.6 and later | ||
as documented in CentOS 7.5 Release notes. These include moving -x and -w | ||
options to global.conf and issuing deprecation warning for -l and -s | ||
options. | ||
|
||
* Wed Oct 05 2018 Trevor Vaughan <[email protected]> - 7.2.1-0 | ||
- Added fact for version of rsyslogd | ||
- Updated templates to use RainerScript rsyslogd v8 and later | ||
- Fixed the MainMsgQueueDiscardMark and MainMsgQueueWorkerThreads | ||
parameters | ||
|
||
* Wed Oct 03 2018 Liz Nemsick <[email protected]> - 7.2.1-0 | ||
- Update range of simp/systemd to allow version with Hiera 5 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
rsyslog::config::host_list: | ||
- 'my.host.com' | ||
|
||
rsyslog::config::domain_list: | ||
- 'foo.bar' | ||
|
||
rsyslog::config::disable_remote_dns: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
<% | ||
unless @host_list.empty? | ||
opts = opts + " -l #{Array(@host_list).join(':')}" | ||
end | ||
# Options x,l,s and w have been either deprecated or moved to the global conf file | ||
# in versions 8.6 and later of rsyslogd | ||
if @facts['rsyslogd'] && @facts['rsyslogd']['version'] | ||
if scope.call_function('versioncmp', [@facts['rsyslogd']['version'], '8.6.0']) < 0 | ||
opts = '' | ||
unless @host_list.empty? | ||
opts = opts + " -l #{Array(@host_list).join(':')}" | ||
end | ||
|
||
unless @domain_list.empty? | ||
opts = opts + " -s #{Array(@domain_list).join(':')}" | ||
end | ||
unless @domain_list.empty? | ||
opts = opts + " -s #{Array(@domain_list).join(':')}" | ||
end | ||
|
||
if @suppress_noauth_warn | ||
opts = opts + " -w" | ||
end | ||
if @suppress_noauth_warn | ||
opts = opts + " -w" | ||
end | ||
|
||
if @disable_remote_dns | ||
opts = opts + " -x" | ||
end | ||
if @disable_remote_dns | ||
opts = opts + " -x" | ||
end | ||
end | ||
end | ||
-%> | ||
SYSLOGD_OPTIONS="<%= opts %>" |