Comments (5)
Oh wow! It's a patch!!
Indentation around the template wasn't changed, specifically so the minimal change would be clear. Feel free to re-indent for sanity.
--- a/recipes/client.rb
+++ b/recipes/client.rb
@@ -49,7 +49,9 @@ end
if rsyslog_servers.empty?
Chef::Log.warn('The rsyslog::client recipe was unable to determine the remote syslog server. Checked both the server_ip attribute\
and search! Not forwarding logs.')
-else
+end
+
+# create or delete config as appropriate
remote_type = node['rsyslog']['use_relp'] ? 'relp' : 'remote'
template "#{node['rsyslog']['config_prefix']}/rsyslog.d/49-remote.conf" do
source "49-#{remote_type}.conf.erb"
@@ -60,6 +62,7 @@ else
notifies :run, 'execute[validate_config]'
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
only_if { node['rsyslog']['remote_logs'] }
+ action rsyslog_servers.empty? ? :delete : :create
end
file "#{node['rsyslog']['config_prefix']}/rsyslog.d/server.conf" do
@@ -67,4 +70,3 @@ else
notifies :run, 'execute[validate_config]'
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end
-end
from rsyslog.
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.
But there's a patch RIGHT THERE!
from rsyslog.
@bish0polis this cookbook was recently transferred to the Sous Chefs and this bot was part of the standardization process. Rest assured, we'll get to this soon once we get this properly adopted.
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
- rsyslog default configuration generated incorrectly on Amazon Linux 2 HOT 3
- /var/log/* has the wrong group on RHEL and friends HOT 2
- 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.