-
Notifications
You must be signed in to change notification settings - Fork 19
/
metadata.rb
246 lines (183 loc) · 8.97 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
name "conda"
maintainer "Jim Dowling"
maintainer_email 'jdowling@kth.se'
license 'Apache v.2'
description 'Installs/Configures conda'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "4.0.0"
supports 'ubuntu', '= 14.04'
supports 'ubuntu', '= 16.04'
supports 'centos', '= 7.2'
depends 'magic_shell', '~> 1.0.0'
depends 'java'
recipe "conda::install", "Installs conda"
recipe "conda::default", "Configures conda"
################################ Begin installation wide attributes ########################################
attribute "rhel/epel",
:description => "Install epel-release package on rhel/centos",
:type => 'string'
attribute "install/external_users",
:description => "Set to true if the service accounts are managed externally, such as from LDAP, (Default: False)",
:type => 'string'
################################ end installation wide attributes ########################################
attribute "conda/dir",
:description => "Base installation directory for Conda",
:type => 'string'
attribute "conda/user",
:description => "User that runs conda",
:type => 'string'
attribute "conda/user_id",
:description => "conda user id. Default: 1511",
:type => 'string'
attribute "conda/group",
:description => "Group that runs conda",
:type => 'string'
attribute "conda/group_id",
:description => "conda group id. Default: 1507",
:type => 'string'
attribute "install/dir",
:description => "Default '/srv/hops'. Set to a base directory under which all hops services will be installed.",
:type => "string"
attribute "data/dir",
:description => "Default '/srv/hopsworks-data'. Set to a base directory under which all Hopsworks services will store their data and other state.",
:type => "string"
attribute "install/user",
:description => "User to install the services as",
:type => "string"
attribute "install/enterprise/install",
:description => "Set to true if installing Hopsworks EE",
:type => "string"
attribute "install/enterprise/download_url",
:description => "Download URL for Hopsworks EE, similar to download_url",
:type => "string"
attribute "install/enterprise/username",
:description => "Username for protected artifacts",
:type => "string"
attribute "install/enterprise/password",
:description => "Password for protected artifacts",
:type => "string"
attribute "install/modify_selinux",
:description => "Global flag to disable modifying SELinux ie consul-chef. Default: true",
:type => "string"
attribute "install/systemd/after",
:description => "Arbitrary whitespace separated systemd units to be put in After directive of Hopsworks systemd units",
:type => "string"
attribute "install/bind_services_private_ip",
:description => "Flag to bind services to their private IP instead of 0.0.0.0 Default is false",
:type => "string"
attribute "install/ssl",
:description => "Is SSL turned on for all services?",
:type => "string"
attribute "install/addhost",
:description => "Indicates that this host will be added to an existing Hops cluster.",
:type => "string"
attribute "install/current_version",
:description => "Current installed Hopsworks version",
:type => "string"
attribute "install/version",
:description => "Hopsworks target install version.",
:type => "string"
attribute "install/versions",
:description => "Comma-separated list of previous versions of Hopsworks.",
:type => "string"
attribute "install/localhost",
:description => "Set to 'true' for a localhost installation. Default is 'false'",
:type => 'string'
attribute "install/homes_directory",
:description => "Parent directory for all homes. Default: /home",
:type => 'string'
attribute "install/secondary_region",
:description => "If true we are deploying a secondary replicated region. We should skip certain setup operations (Default: False)",
:type => 'string'
attribute "install/regions/primary",
:description => "Name of the primary region (Default: '')",
:type => 'string'
attribute "install/regions/secondary",
:description => "Name of the secondary region (Default: '')",
:type => 'string'
attribute "install/tmp_directory",
:description => " Directory mounted with executable privileges to use as temp dir. Default to /tmp",
:type => 'string'
attribute "install/dev_ssh_keys",
:description => "Use only for development. It will generate ssh keys and set authorized_keys. Default: false",
:type => 'string'
attribute "install/cloud",
:description => "Set to '' for no cloud provider. Valid values are: 'aws', 'gce', 'azure'.",
:type => 'string'
attribute "install/kubernetes",
:description => "Set to true if you want to deploy the kubernetes enterprise edition. Default is 'fasle'",
:type => 'string'
attribute "install/sudoers/scripts_dir",
:description => "Location for the Hopsworks script requiring sudoers, (default: /srv/hops/sbin)",
:type => 'string'
attribute "install/sudoers/rules",
:description => "Whether or not to add the rules in /etc/sudoers.d/, (default: true)",
:type => 'string'
attribute "conda/channels/default_mirrors",
:description => "comma separated list of anaconda mirrors",
:type => "string"
attribute "conda/ssl_verify",
:description => "Set ssl_verify option in condarc - default true",
:type => "string"
attribute "conda/use_defaults",
:description => "whether or not to add the defaults mirrors to the channels list (default yes)",
:type => "string"
attribute "conda/proxy/http",
:description => "Proxy configuration for conda (http)",
:type => "string"
attribute "conda/proxy/https",
:description => "Proxy configuration for conda (https)",
:type => "string"
attribute "conda/default_libs",
:description => "Space separated list of libraries to be installed in Conda root environment",
:type => "string"
attribute "pypi/proxy",
:description => "HTTP proxy for fetching libraries from PyPI",
:type => "string"
attribute "pypi/index",
:description => "Mirror endpoint for PIP search",
:type => "string"
attribute "pypi/index-url",
:description => "Mirror endpoint for PIP install and PIP actions which use PEP503 compliant API",
:type => "string"
attribute "pypi/extra-index-url",
:description => "Extra-index-url to add to the pip.conf files",
:type => "string"
attribute "pypi/trusted-host",
:description => "Trusted host for non https pypi mirrors",
:type => "string"
attribute "conda/preinstalled_lib_names",
:description => "Comma separated list of preinstalled libraries users should not touch",
:type => "string"
attribute "hops/group_id",
:description => "the group_id for hops/group. If you change this value you must ensure that it match the gid in the docker image",
:type => 'string'
attribute "logger/user",
:description => "User tailing the services logs and sending them to logstash",
:type => 'string'
attribute "logger/user_id",
:description => "User id of the logger/user defined above",
:type => 'string'
attribute "logger/group",
:description => "Group of the user tailing the services logs and sending them to logstash",
:type => 'string'
attribute "logger/group_id",
:description => "groiup id of the logger/user defined above",
:type => 'string'
attribute "install/managed_docker_registry",
:description => "A switch to enable preparations for managed docker registry.",
:type => 'string'
attribute "install/managed_kubernetes",
:description => "A switch to enable preparations for managed kubernetes.",
:type => 'string'
attribute "conda/max_env_yml_byte_size",
:description => "Maximum size of a conda yml file that may be used to create an environment.",
:type => 'string'
attribute "consul/enabled",
:description => "Whether or not consul is enabled on the cluster and Hopsworks should use it (Default: true)",
:type => 'string'
################################ Begin installation wide attributes ########################################
attribute "conda/docker/image-validation-regex",
:description => "Validation regex for user/project Docker image name",
:type => 'string'
################################ end installation wide attributes ########################################