forked from logicalclocks/dela-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
121 lines (94 loc) · 3.63 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name "dela"
maintainer "Jim Dowling"
maintainer_email "[email protected]"
license "Apache v2.0"
description 'Installs/Configures/Runs dela'
version "0.3.0"
recipe "dela::install", "Install dela binaries"
recipe "dela::master", "Configures and starts the dela master"
recipe "dela::slave", "Configures and starts a dela slave"
recipe "dela::default", "Basic dela recipe"
recipe "stun::sshable", "Copies a public key to this server so you can use it to ssh"
recipe "dela::purge", "Stops the dela server and deletes all its files"
%w{ ubuntu debian rhel centos }.each do |os|
supports os
end
depends "kagent"
depends "java"
depends "ndb"
depends "hops"
##### karamel/chef
attribute "java/jdk_version",
:description => "Version of Java to use (e.g., '7' or '8')",
:type => "string"
attribute "kagent/enabled",
:description => "'true' by default",
:type => "string"
##### install
attribute "dela/group",
:description => "group parameter value",
:type => "string"
attribute "dela/user",
:description => "user parameter value",
:type => "string"
##### app
attribute "dela/log_level",
:description => "Default: WARN. Can be INFO or DEBUG or TRACE or ERROR.",
:type => "string"
attribute "dela/id",
:description => "id for the dela instance. Randomly generated, but can be ovverriden here.",
:type => "string"
attribute "dela/seed",
:description => "seed for the dela instance. Randomly generated, but can be ovverriden here.",
:type => "string"
attribute "dela/stun_port1",
:description => "1st Client port used by stun client in Dela.",
:type => "string"
attribute "dela/stun_port2",
:description => "2nd Client port used by stun client in Dela.",
:type => "string"
attribute "dela/port",
:description => "Dela Client application port.",
:type => "string"
attribute "dela/stun_client_port2",
:description => "2nd Client port used by stun client in Dela.",
:type => "string"
attribute "dela/port",
:description => "Dela Client application port.",
:type => "string"
attribute "dela/http_port",
:description => "Dela Client http port.",
:type => "string"
attribute "dela/stun_servers_ip",
:description => "Dela Client stun connections(ips).",
:type => "array"
attribute "dela/stun_servers_id",
:description => "Dela Client stun connections(ids).",
:type => "array"
attribute "dela/hops/storage/type",
:description => "Dela Client storage type(HDFS/DISK).",
:type => "string"
attribute "dela/hops/library/type",
:description => "Dela Client library type(MYSQL/DISK).",
:type => "string"
##### hopsworks
attribute "dela/mysql/ip",
:description => "Mysql server ip",
:type => 'string',
:required => "required"
attribute "dela/mysql/port",
:description => "MySql server port",
:type => 'string',
:required => "required"
attribute "mysql/user",
:description => "Mysql server username",
:type => 'string',
:required => "required"
attribute "mysql/password",
:description => "MySql server password",
:type => 'string',
:required => "required"
attribute "install/dir",
:description => "Base directory for dela installation (default: '/srv')",
:type => 'string',
:required => "required"