forked from lusis/chef-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.rb
42 lines (34 loc) · 735 Bytes
/
server.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Encoding: utf-8
#
# Author:: John E. Vincent
# Author:: Bryan W. Berry (<[email protected]>)
# Copyright 2012, John E. Vincent
# Copyright 2012, Bryan W. Berry
# License: Apache 2.0
# Cookbook Name:: logstash
# Recipe:: server
#
#
# install logstash 'server'
name = 'server'
logstash_instance name do
action :create
end
logstash_service name do
action [:enable]
end
logstash_config name do
action [:create]
notifies :restart, "logstash_service[#{name}]"
end
# ^ see `.kitchen.yml` for example attributes to configure templates.
logstash_plugins 'contrib' do
instance name
action [:create]
end
logstash_pattern name do
action [:create]
end
logstash_curator 'server' do
action [:create]
end