chef-cookbooks icon indicating copy to clipboard operation
chef-cookbooks copied to clipboard

[rsyslog / chef-cookbook roles] server_search node attribute in rsyslog-client role doesn't use environment to narrow the search results

Open breu opened this issue 10 years ago • 2 comments

this causes the rsyslog-client default recipe to lay down a configuration that may include rsyslog servers from other environments than the current one.

role: https://github.com/rcbops/chef-cookbooks/blob/master/roles/rsyslog-client.rb#L9

code that uses the bad search parameters: https://github.com/rcbops-cookbooks/rsyslog/blob/master/recipes/client.rb#L28-L29

With 4 environments and a node with the rsyslog-server in each environment the 49-remote.conf rsyslog config file will container all of the nodes in all of the environments as log destinations.

breu avatar Mar 12 '14 04:03 breu

This is present in https://github.com/rcbops-cookbooks/openstack-logging/blob/master/recipes/default.rb#L58-L59 as well.

breu avatar Mar 12 '14 13:03 breu

Maybe a better solution for this, since @breu noted in https://github.com/rcbops-cookbooks/openstack-logging/pull/22 that this would need a change in the upstream rsyslog cookbook, would be to override ['rsyslog']['server_search'] in each chef environment.

Both cookbooks share this attribute.

jimmymccrory avatar Jun 21 '14 01:06 jimmymccrory