Open docwhat opened 8 years ago
4.0.1
12.18.30
CentOS 5.11
I have a cookbook that gets the packages for the latest version of rsyslogd. So even though I'm running CentOS 5.11, I have rsyslogd version 8.
However, this code isn't detecting if rsyslog can use :omusrmsg:* and is instead checking only the OSes.
:omusrmsg:*
rsyslogd v8 doesn't support *, which causes the -N1 check to fail and logging not to be sent to users.
*
-N1
There was a changelog entry for cookbook v2.1.0 that implied it was checking the rsyslogd version, but that doesn't seem to be the case:
Change emerg to log to :omusrmsg: vs. on modern rsyslog releases to avoid deprecation warnings Steps to Reproduce:
Change emerg to log to :omusrmsg: vs. on modern rsyslog releases to avoid deprecation warnings
In a CentOS 5.11 box, add the official rsyslogd yum repository and install rsyslog 8.
Cookbook version
4.0.1
Chef-client version
12.18.30
Platform Details
CentOS 5.11
Scenario:
I have a cookbook that gets the packages for the latest version of rsyslogd. So even though I'm running CentOS 5.11, I have rsyslogd version 8.
However, this code isn't detecting if rsyslog can use
:omusrmsg:*
and is instead checking only the OSes.rsyslogd v8 doesn't support
*
, which causes the-N1
check to fail and logging not to be sent to users.There was a changelog entry for cookbook v2.1.0 that implied it was checking the rsyslogd version, but that doesn't seem to be the case:
In a CentOS 5.11 box, add the official rsyslogd yum repository and install rsyslog 8.