Initial Chef repository
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
# Generated by Chef
|
||||
# Local modifications will be overwritten
|
||||
|
||||
<% if node['rsyslog']['use_relp'] -%>
|
||||
$ModLoad imrelp
|
||||
$InputRELPServerRun <%= node['rsyslog']['relp_port'] %>
|
||||
<% end -%>
|
||||
$DirGroup <%= node['rsyslog']['group'] %>
|
||||
$DirCreateMode 0755
|
||||
$FileGroup <%= node['rsyslog']['group'] %>
|
||||
|
||||
$template PerHostAuth,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/auth.log"
|
||||
$template PerHostCron,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/cron.log"
|
||||
$template PerHostSyslog,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/syslog"
|
||||
$template PerHostDaemon,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/daemon.log"
|
||||
$template PerHostKern,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/kern.log"
|
||||
$template PerHostLpr,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/lpr.log"
|
||||
$template PerHostUser,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/user.log"
|
||||
$template PerHostMail,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/mail.log"
|
||||
$template PerHostMailInfo,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/mail.info"
|
||||
$template PerHostMailWarn,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/mail.warn"
|
||||
$template PerHostMailErr,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/mail.err"
|
||||
$template PerHostNewsCrit,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/news.crit"
|
||||
$template PerHostNewsErr,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/news.err"
|
||||
$template PerHostNewsNotice,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/news.notice"
|
||||
$template PerHostDebug,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/debug"
|
||||
$template PerHostMessages,"<%= node['rsyslog']['log_dir'] %>/<%= node['rsyslog']['per_host_dir'] %>/messages"
|
||||
|
||||
auth,authpriv.* ?PerHostAuth
|
||||
*.*;auth,authpriv.none -?PerHostSyslog
|
||||
cron.* ?PerHostCron
|
||||
daemon.* -?PerHostDaemon
|
||||
kern.* -?PerHostKern
|
||||
lpr.* -?PerHostLpr
|
||||
mail.* -?PerHostMail
|
||||
user.* -?PerHostUser
|
||||
|
||||
mail.info -?PerHostMailInfo
|
||||
mail.warn ?PerHostMailWarn
|
||||
mail.err ?PerHostMailErr
|
||||
|
||||
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'] -%>
|
||||
#
|
||||
# Stop processing of all non-local messages. You can process remote messages
|
||||
# on levels less than 35.
|
||||
#
|
||||
:fromhost-ip,!isequal,"127.0.0.1" ~
|
||||
<% end -%>
|
||||
Reference in New Issue
Block a user