forked from everpeace/cookbook-mesos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.rb
113 lines (93 loc) · 4.28 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
name 'mesos'
maintainer 'Shingo Omura'
maintainer_email '[email protected]'
license 'All rights reserved'
description 'Installs/Configures mesos'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
supports 'ubuntu'
recipe "mesos::build_from_source", "install mesos(default recipe)."
recipe "mesos::master", "configure the machine as master."
recipe "mesos::slave", "configure the machine as slave."
depends 'java'
depends 'python'
depends 'build-essential'
attribute "mesos/version",
:recipes => ["mesos::build_from_source"],
:display_name => "Version to be installed.",
:description => "branch name or tag name at http://github.com/apache/mesos",
:default => "0.15.0-rc3"
attribute "mesos/prefix",
:recipes => ["mesos::build_from_source", "mesos::master", "mesos::slave"],
:display_name => "Prefix value to be passed to configure script",
:description => "prefix value to be passed to configure script",
:default => "/usr/local"
attribute "mesos/home",
:recipes => ["mesos::build_from_source"],
:display_name => "mesos home directory",
:description => "directory which mesos sources are extracted to.",
:default => "/opt"
attribute "mesos/build/skip_test",
:recipes => ["mesos::build_from_source"],
:display_name => "Flag whether test will be performed.",
:description => "if true, test will be skipped.",
:default => "true"
attribute "mesos/ssh_opts",
:recipes => ["mesos::master"],
:display_name => "ssh options",
:description => "passed to be mesos-deploy-env.sh",
:default => "-o StrictHostKeyChecking=no -o ConnectTimeout=2"
attribute "mesos/deploy_with_sudo",
:recipes => ["mesos::master"],
:display_name => "Flag whether sudo will be used in mesos deploy scripts",
:description => "Flag whether sudo will be used in mesos deploy scripts",
:default => "1"
attribute "mesos/cluster_name",
:recipes => ["mesos::master"],
:display_name => "cluster name",
:description => "Human readable name for the cluster, displayed at webui"
attribute "mesos/master/zk",
:recipes => ["mesos::master"],
:display_name => "zookeeper url",
:description => "ZooKeeper URL (used for leader election amongst masters)"
attribute "mesos/master_ips",
:recipes => ["mesos::master"],
:display_name => "IP list of masters",
:description => "used in mesos-start/stop-cluster scripts."
attribute "mesos/slave_ips",
:recipes => ["mesos::master"],
:display_name => "IP list of slaves",
:description => "used in mesos-start/stop-cluster scripts."
attribute "mesos/master/ip",
:recipes => ["mesos::master"],
:display_name => "mater listen ip.",
:description => "IP address to listen on"
attribute "mesos/master/log_dir",
:recipes => ["mesos::master"],
:display_name => "log_dir for master.",
:description => "Location to put log files.",
:default => "/var/log/mesos"
attribute "mesos/slave/master_url",
:required => "required",
:recipes => ["mesos::slave"],
:display_name => "master url",
:description => "mesos master url. this should be host:port for non-ZooKeeper based masters, otherwise a zk:// or file://."
attribute "mesos/slave/ip",
:recipes => ["mesos::slave"],
:display_name => "slave listen ip.",
:description => "IP address to listen on"
attribute "mesos/slave/log_dir",
:recipes => ["mesos::slave"],
:display_name => "log_dir for slave.",
:description => "Location to put log files.",
:default => "/var/log/mesos"
attribute "mesos/slave/work_dir",
:recipes => ["mesos::slave"],
:display_name => "work_dir for slave.",
:description => "Where to place framework work directories.",
:default => "/var/run/mesos"
attribute "mesos/slave/isolation",
:recipes => ["mesos::slave"],
:display_name => "Resource isolation mechanism.",
:description => "Isolation mechanism, may be one of: process, cgroups",
:default => "cgroups"