-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmetadata.rb
74 lines (59 loc) · 2.71 KB
/
metadata.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
maintainer "Rudy Krol"
maintainer_email "rudy.krol@gmail.com"
license "Apache 2.0"
description "Intalls (download and compile) and configures a Kafka broker"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0"
depends "java"
recipe "kafka::default", "Default configuration for kafka"
%w{ debian ubuntu centos redhat fedora scientific amazon }.each do |os|
supports os
end
attribute "kafka/version",
:display_name => "Kafka Version",
:description => "The Kafka version to pull and use",
:default => "0.7.1"
attribute "kafka/home_dir",
:display_name => "Kafka Home Directory",
:description => "Location for Kafka to be located.",
:default => "/usr/share/kafka"
attribute "kafka/data_dir",
:display_name => "Kafka Log Directory",
:description => "Location for Kafka logs.",
:default => "/usr/share/kafka/kafka-logs"
attribute "kafka/log_dir",
:display_name => "Kafka log4j Directory",
:description => ";.",
:default => "/var/log/kafka"
attribute "kafka/broker_id",
:display_name => "Kafka Broker Id",
:description => "The id of the broker. This must be set to a unique integer for each broker. If not set, it defaults to the machine's ip address without the '.'.",
:default => ""
attribute "kafka/broker_host_name",
:display_name => "Kafka Host Name",
:description => "Hostname the broker will advertise to consumers. If not set, kafka will use the host name for the server being deployed to.",
:default => ""
attribute "kafka/port",
:display_name => "Kafka Port",
:description => "The port the socket server listens on.",
:default => "9092"
attribute "kafka/threads",
:display_name => "Kafka Threads",
:description => "The number of processor threads the socket server uses for receiving and answering requests. If not set, defaults to the number of cores on the machine.",
:default => ""
attribute "kafka/log_flush_interval",
:display_name => "Kafka Flush Interval",
:description => "The number of messages to accept before forcing a flush of data to disk.",
:default => "10000"
attribute "kafka/log_flush_time_interval",
:display_name => "Kafka Flush Time Interval",
:description => "The maximum amount of time (ms) a message can sit in a log before we force a flush.",
:default => "1000"
attribute "kafka/log_flush_scheduler_time_interval",
:display_name => "Kafka Flush Scheduler Time Interval",
:description => "The interval (in ms) at which logs are checked to see if they need to be flushed to disk.",
:default => "1000"
attribute "kafka/log_retention_hours",
:display_name => "Kafka Log Retention Hours",
:description => "The minimum age of a log file to be eligible for deletion",
:default => "168"