forked from lusis/chef-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance.rb
34 lines (31 loc) · 1.34 KB
/
instance.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
# Encoding: utf-8
# Cookbook Name:: logstash
# Resource:: instance
# Author:: John E. Vincent
# Copyright 2014, John E. Vincent
# License:: Apache 2.0
actions :create, :delete
default_action :create if defined?(default_action)
attribute :name, kind_of: String, name_attribute: true
attribute :base_directory, kind_of: String
attribute :install_type, kind_of: String
attribute :auto_symlink, kind_of: [TrueClass, FalseClass], default: true
# version/checksum/source_url used by `jar`, `tarball` install_type
attribute :version, kind_of: String
attribute :checksum, kind_of: String
attribute :source_url, kind_of: String
# sha/repo/java_home used by `source` install_type
attribute :sha, kind_of: String, default: 'HEAD'
attribute :repo, kind_of: String, default: 'git://github.com/logstash/logstash.git'
attribute :java_home, kind_of: String
attribute :user, kind_of: String
attribute :group, kind_of: String
attribute :create_account, kind_of: [TrueClass, FalseClass]
attribute :join_groups, kind_of: [String]
attribute :logrotate_enable, kind_of: [TrueClass, FalseClass]
attribute :user_opts, kind_of: [Hash]
attribute :logrotate_size, kind_of: [String]
attribute :logrotate_use_filesize, kind_of: [TrueClass, FalseClass]
attribute :logrotate_frequency, kind_of: [String]
attribute :logrotate_max_backup, kind_of: [Integer]
attribute :logrotate_options, kind_of: [String]