Skip to content

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

Description

@docwhat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions