Comments (3)
There appears to be an incorrect assumption in the default attributes, which looks for RHEL family distros lesser than version 6 and generates a configuration for older versions of rsyslog.
# rsyslog 3/4 do not support the new :omusrmsg:* format and need * instead
if node['platform_family'] == 'rhel' && node['platform_version'].to_i < 6
default['rsyslog']['default_facility_logs']['*.emerg'] = '*'
end
This breaks because Amazon Linux does report as being in the RHEL platform_family and platform_version 2, however provides rsyslog version 8.24.0.
[root@xxx:~]$ cat /etc/system-release
Amazon Linux release 2 (2017.12) LTS Release Candidate
[root@xxx:~]$ ohai platform platform_family platform_version
[
"amazon"
]
[
"rhel"
]
[
"2"
]
[root@xxx:~]$ rpm -qi rsyslog
Name : rsyslog
Version : 8.24.0
Release : 12.amzn2
Architecture: x86_64
Install Date: Wed 10 Jan 2018 02:10:56 AM UTC
Group : System Environment/Daemons
Size : 1982902
License : (GPLv3+ and ASL 2.0)
Signature : RSA/SHA256, Tue 14 Nov 2017 08:49:16 PM UTC, Key ID 11cf1f95c87f5b1a
Source RPM : rsyslog-8.24.0-12.amzn2.src.rpm
Build Date : Thu 19 Oct 2017 05:40:42 PM UTC
Build Host : build.amazon.com
Relocations : (not relocatable)
Packager : Amazon Linux
Vendor : Amazon Linux
URL : http://www.rsyslog.com/
The most correct solution would be to check directly for the version of rsyslog available rather than using indirect and imprecise distro checks.
from rsyslog.
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.
from rsyslog.
Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.
from rsyslog.
Related Issues (20)
- rsyslog.conf.erb contains hardcoded values and missing attributes HOT 1
- Cookbook doesn't support package names other than "rsyslog" HOT 2
- Issue supporting multiple remote servers HOT 2
- Remove all search logic HOT 1
- Only want logs, I explicitly ask for in configuration.
- Add a filter into rsyslog.conf HOT 4
- Add Update option HOT 1
- $DirCreateMode override in 35-server-per-host.conf.erb HOT 2
- /var/log/* has the wrong group on RHEL and friends HOT 2
- remote.conf not removed when remote-servers list becomes empty HOT 5
- Failling spec tests locally and on Travis-CI HOT 3
- Do not hard code the position (49) for the remote config HOT 2
- NGINX logs are logged twice HOT 1
- New TLS driver functionality breaks recipe on RHEL7 hosts HOT 1
- el6 using imjournal and OmitLocalLogging HOT 2
- Chef deprecation error HOT 1
- NoMethodError undefined method `platform_version' for #<Chef::Node::Attribute:0x0000000004678a00>
- Provide a way to eliminate $MaxMessageSize from /etc/rsyslog.conf template HOT 1
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsyslog.