sous-chefs / rsyslog

Development repository for the rsyslog cookbook
https://supermarket.chef.io/cookbooks/rsyslog
Apache License 2.0
65 stars 199 forks source link

omusrmsg:* replaced with * even if newer rsyslog installed #115

Open docwhat opened 8 years ago

docwhat commented 8 years ago

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:

Change emerg to log to :omusrmsg: vs. on modern rsyslog releases to avoid deprecation warnings

Steps to Reproduce:

In a CentOS 5.11 box, add the official rsyslogd yum repository and install rsyslog 8.