]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/logstash/recipes/default.rb
Set correct permissions on logstash logrotate config
[chef.git] / cookbooks / logstash / recipes / default.rb
index 55675fa71ee78042aef6b81d8c2757eda4cd798b..0fb88c8ab38f5ef81b19f337b546fb5204080cf6 100644 (file)
@@ -48,6 +48,10 @@ template "/etc/logstash/conf.d/chef.conf" do
   notifies :restart, "service[logstash]"
 end
 
+file "/etc/logrotate.d/logstash" do
+  mode 0644
+end
+
 service "logstash" do
   action [:enable, :start]
   supports :status => true, :restart => true
@@ -60,7 +64,7 @@ template "/etc/cron.daily/expire-logstash" do
   mode 0755
 end
 
-forwarders = search(:node, "recipes:logstash\\:\\:forwarder")
+forwarders = search(:node, "recipes:logstash\\:\\:forwarder") # ~FC010
 
 forwarders.each do |forwarder|
   forwarder.interfaces(:role => :external) do |interface|