forked from alien4cloud/mesos-tosca-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmesos-ha-template.yml
78 lines (72 loc) · 2.13 KB
/
mesos-ha-template.yml
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
tosca_definitions_version: alien_dsl_1_4_0
metadata:
template_name: mesos-ha-topology
template_version: 1.4.0-SNAPSHOT
template_author: alien4cloud
description: "Template for a scalable Mesos cluster in HA mode."
imports:
- tosca-normative-types:1.0.0-ALIEN14
- mesos-types:1.4.0-SNAPSHOT
topology_template:
node_templates:
Master_Compute:
type: tosca.nodes.Compute
capabilities:
os:
properties:
type: linux
distribution: ubuntu
version: 14.04
architecture: x86_64
scalable:
properties:
min_instances: 1
max_instances: 5
default_instances: 3
Mesos_Master:
type: org.alien4cloud.nodes.MesosMaster
properties:
work_dir: /var/lib/mesos
log_dir: /var/log/mesos
port: 5050
cluster_name: Mesos cluster
requirements:
- host:
node: Master_Compute
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
Slave_Compute:
type: tosca.nodes.Compute
capabilities:
os:
properties:
type: linux
distribution: ubuntu
version: 14.04
architecture: x86_64
scalable:
properties:
min_instances: 1
max_instances: 100
default_instances: 2
Mesos_Slave:
type: org.alien4cloud.nodes.MesosSlave
properties:
log_dir: /var/log/mesos
port: 5051
requirements:
- host:
node: Slave_Compute
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
- master:
node: Mesos_Master
capability: org.alien4cloud.capabilities.MesosMaster
relationship: org.alien4cloud.relationships.MesosSlaveConnectsToMaster
outputs:
masters_ip:
description: The masters' IPs.
value: { get_attribute: [Mesos_Master, external_url] }
zk_url:
description: The Zookeeper endpoint URL.
value: { get_attribute: [Mesos_Master, master_url] }