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

Enabled custom 35-server-per-host.conf templates #174

Closed axl89 closed 3 years ago

axl89 commented 4 years ago

Description

This enables a complete or partial override of the 35-server-per-host.conf file.

For instance, disable debug and/or messages, etc.

Issues Resolved

173

Check List

axl89 commented 4 years ago

My plan is to create a wrapper cookbook and set a different template, with the following differences from the original:

diff --git a/templates/default/35-server-per-host.conf.erb b/templates/default/35-server-per-host.conf.erb
index 91cbcc5..3def571 100644
--- a/templates/default/35-server-per-host.conf.erb
+++ b/templates/default/35-server-per-host.conf.erb
@@ -43,14 +43,6 @@ news.crit               ?PerHostNewsCrit
 news.err                ?PerHostNewsErr
 news.notice             -?PerHostNewsNotice

-*.=debug;\
-  auth,authpriv.none;\
-  news.none;mail.none   -?PerHostDebug
-
-*.=info;*.=notice;*.=warn;\
-  auth,authpriv.none;\
-  cron,daemon.none;\
-  mail,news.none        -?PerHostMessages

 <% unless node['rsyslog']['allow_non_local'] -%>
axl89 commented 4 years ago

Tests are failing, but they are also failing on master.

ramereth commented 4 years ago

@axl89 this cookbook was just transferred to us and we're still in the process of getting it properly imported into Sous Chefs. Please give us a week or so to get ready and we'll have you rebase.

kitchen-porter commented 3 years ago

Released as: 7.3.0