...
 
Commits (5)
......@@ -5,9 +5,6 @@ Lint/AmbiguousRegexpLiteral:
Exclude:
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Exclude:
- 'test/**/*'
......@@ -2,6 +2,17 @@
This file is used to list changes made in each version of the rsyslog cookbook.
## 7.0.0 (2019-12-23)
- Update for Chef 15 license agreement and Chef Workstation - [@tas50](https://github.com/tas50)
- Resolve Cookstyle 5.8 warnings - [@tas50](https://github.com/tas50)
- Fixes spec tests locally and on travis-ci
- Expand testing to the latest platformms - [@tas50](https://github.com/tas50)
- Fix Amazon Linux 201X and 2.x support - [@tas50](https://github.com/tas50)
- Fix opensuse failures - [@tas50](https://github.com/tas50)
- Remove support for EOL RHEL 5
- Require Chef Infra 13 or later
## 6.0.7 (2018-08-01)
- Optional creation of default configuration file 50-default.conf
......
......@@ -15,7 +15,7 @@ Installs and configures rsyslog to replace syslogd for client and/or server use.
### Chef
- Chef 12.7+
- Chef 13+
### Other
......
......@@ -96,6 +96,7 @@ case node['platform_family']
when 'suse'
default['rsyslog']['service_name'] = 'syslog'
default['rsyslog']['group'] = 'root'
default['rsyslog']['dir_group'] = 'trusted'
default['rsyslog']['default_facility_logs'] = {
'*.emerg' => ':omusrmsg:*',
'mail.*' => "-#{node['rsyslog']['default_log_dir']}/mail.log",
......@@ -113,7 +114,7 @@ when 'suse'
'local4.*;local5.*' => "-#{node['rsyslog']['default_log_dir']}/localmessages",
'local6.*;local7.*' => "-#{node['rsyslog']['default_log_dir']}/localmessages",
}
when 'rhel', 'fedora'
when 'rhel', 'fedora', 'amazon'
default['rsyslog']['working_dir'] = '/var/lib/rsyslog'
# format { facility => destination }
default['rsyslog']['default_facility_logs'] = {
......@@ -125,8 +126,8 @@ when 'rhel', 'fedora'
'uucp,news.crit' => "#{node['rsyslog']['default_log_dir']}/spooler",
'local7.*' => "#{node['rsyslog']['default_log_dir']}/boot.log",
}
# RHEL >= 7 and Fedora use journald in systemd. Amazon Linux doesn't.
if node['platform'] != 'amazon' && node['platform_version'].to_i >= 7
# journald is used in systemd
if node['init_package'] != 'systemd'
default['rsyslog']['modules'] = %w(imuxsock imjournal)
default['rsyslog']['additional_directives'] = { 'OmitLocalLogging' => 'on', 'IMJournalStateFile' => 'imjournal.state' }
end
......@@ -150,8 +151,3 @@ else
'*.emerg' => ':omusrmsg:*',
}
end
# rsyslog 3/4 do not support the new :omusrmsg:* format and need * instead
if platform_family?('rhel') && node['platform_version'].to_i < 6
default['rsyslog']['default_facility_logs']['*.emerg'] = '*'
end
......@@ -16,7 +16,7 @@ platforms:
- name: centos-8
- name: debian-9
- name: debian-10
- name: fedora-29
- name: fedora-31
- name: opensuse-leap-15
- name: ubuntu-16.04
- name: ubuntu-18.04
......
......@@ -3,12 +3,12 @@ maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache-2.0'
description 'Installs and configures rsyslog'
version '6.0.7'
version '7.0.0'
%w(ubuntu debian mint redhat centos amazon scientific oracle fedora zlinux).each do |os|
%w(ubuntu debian linuxmint redhat centos amazon scientific oracle fedora zlinux).each do |os|
supports os
end
source_url 'https://github.com/chef-cookbooks/rsyslog'
issues_url 'https://github.com/chef-cookbooks/rsyslog/issues'
chef_version '>= 12.7'
chef_version '>= 13'