]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/logstash/recipes/forwarder.rb
Add tests for elasticsearch, kibana and logstash cookbooks
[chef.git] / cookbooks / logstash / recipes / forwarder.rb
index ea653c8ef5b02efd4c362509a14f3062a934d956..c87b9edf13f4a2893946fafc04277fdb15751b90 100644 (file)
@@ -1,8 +1,8 @@
 #
-# Cookbook Name:: logstash
+# Cookbook:: logstash
 # Recipe:: default
 #
-# Copyright 2015, OpenStreetMap Foundation
+# Copyright:: 2015, OpenStreetMap Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # limitations under the License.
 #
 
-service "logstash-forwarder" do
-  action [:disable, :stop]
-end
-
-file "/var/lib/logstash-forwarder/lumberjack.crt" do
-  action :delete
-end
-
-package "logstash-forwarder" do
-  action :purge
-end
-
 require "yaml"
 
+include_recipe "apt"
+
 package "filebeat"
 
 cookbook_file "/etc/filebeat/filebeat.crt" do