Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base: rainerscript replacement for $IncludeConfig #248

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

m8t
Copy link

@m8t m8t commented Aug 30, 2024

Pull Request (PR) description

Makes use of advanced/rainerscript format in base.pp to replace the legacy IncludeConfig statement.

@kenyon kenyon changed the title base: rainerscript replacement for IncludeConfig base: rainerscript replacement for $IncludeConfig Aug 30, 2024
@kenyon kenyon merged commit 40440a8 into voxpupuli:master Aug 30, 2024
11 checks passed
@bschonec
Copy link
Contributor

bschonec commented Nov 26, 2024

This update has broken rsyslog-8.94.0-57 on RHEL7 for me. With the following in /etc/rsyslog.conf:

# This file is managed by Puppet.  No configuration is placed here
# all configuration is under the rsyslog.d directory

include(file="/etc/rsyslog.d/*.conf" mode="optional")

and no /etc/rsyslog.d files, I get the error:

syslogd[39175]: action 'include' treated as ':omusrmsg:include' - please use ':omusrmsg:include' syntax instead, 'include' will not be supported in the future [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2184 ]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: warnings occured in file '/etc/rsyslog.conf' around line 5 [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: invalid character '(' - is there an invalid escape sequence somewhere? [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]
syslogd[39175]: action 'file' treated as ':omusrmsg:file' - please use ':omusrmsg:file' syntax instead, 'file' will not be supported in the future [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2184 ]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: warnings occured in file '/etc/rsyslog.conf' around line 5 [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: invalid character '=' - is there an invalid escape sequence somewhere? [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: invalid character '"' - is there an invalid escape sequence somewhere? [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]
syslogd[39175]: invalid character in selector line - ';template' expected [v8.24.0-57.el7_9.3]
syslogd[39175]: error during parsing file /etc/rsyslog.conf, on or before line 4: errors occured in file '/etc/rsyslog.conf' around line 5 [v8.24.0-57.el7_9.3 try http://www.rsyslog.com/e/2207 ]

RHEL8 with rsyslog-8.2102.0-15.el8_10.1.x86_64 doesn't seem to have this problem.

No logging happens

@bschonec
Copy link
Contributor

The issue is that the include() object isn't supported until rsyslog 8.33.0 while the pesudo-latest version of rsyslog on RHEL7 is about 8.24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants