forked from everpeace/cookbook-mesos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
95 lines (80 loc) · 3.92 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
name 'mesos'
maintainer 'Shingo Omura'
maintainer_email '[email protected]'
license 'MIT'
description 'Installs/Configures mesos'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.2'
supports 'ubuntu', '>= 12.04'
supports 'centos', '>= 6.0'
recipe "mesos::default", "install mesos."
recipe "mesos::mesosphere", "install mesos from mesosphere package."
recipe "mesos::build_from_source", "install mesos from source(default recipe)."
recipe "mesos::master", "configure the machine as master."
recipe "mesos::slave", "configure the machine as slave."
recipe "mesos::docker-executor", "install mesos-docker executor"
depends 'java'
depends 'python'
depends 'build-essential'
depends 'maven'
depends 'ulimit'
suggests 'docker'
suggests 'zookeeper'
attribute "mesos/type",
:recipes => ["mesos::build_from_source", "mesos::mesosphere", "mesos::master", "mesos::slave"],
:display_name => "installation type",
:description => "Value should be 'source' | 'mesosphere'.",
:description => "instlal type",
:default => "source"
attribute "mesos/version",
:recipes => ["mesos::build_from_source", "mesos::mesosphere"],
:display_name => "Version to be installed.",
:description => "branch name or tag name at http://github.com/apache/mesos, or mesos's version name",
:default => "0.20.1"
attribute "mesos/mesosphere/with_zookeeper",
:recipes => ["mesos::mesosphere"],
:display_name => "switch for installing zookeeper packages",
:description => "if true, zookeeper packages will be installed with mesosphere's mesos package",
:default => "false"
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 => "[OBSOLUTE] Human readable name for the cluster, displayed at webui"
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/slave/master_url",
:required => "required",
:recipes => ["mesos::slave"],
:display_name => "master url",
:description => "[OBSOLUTE] Use mesos/slave/master. mesos master url. this should be host:port for non-ZooKeeper based masters, otherwise a zk:// or file://."