forked from alien4cloud/mesos-tosca-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaurora-template.yml
105 lines (101 loc) · 3.11 KB
/
aurora-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
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
tosca_definitions_version: alien_dsl_1_4_0
metadata:
template_name: aurora-topology
template_version: 1.4.0-SNAPSHOT
template_author: alien4cloud
description: "Alien4Cloud TOSCA template of an Aurora cluster. Uses Aurora v.0.12."
imports:
- tosca-normative-types:1.0.0-ALIEN14
- mesos-types:1.4.0-SNAPSHOT
- aurora-types:1.4.0-SNAPSHOT
topology_template:
node_templates:
Slave_Compute:
type: tosca.nodes.Compute
capabilities:
endpoint:
properties:
protocol: tcp
initiator: source
network_name: PRIVATE
secure: true
os:
properties:
type: linux
distribution: ubuntu
version: 14.04
architecture: x86_64
scalable:
properties:
min_instances: 1
max_instances: 100
default_instances: 3
MesosMaster:
type: org.alien4cloud.nodes.MesosMaster
properties:
work_dir: /var/lib/mesos
log_dir: /var/log/mesos
port: 5050
cluster_name: Mesos cluster
component_version: "0.25.0-0.2.70"
requirements:
- host:
node: Master_Compute
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
AuroraScheduler:
type: org.alien4cloud.nodes.AuroraScheduler
requirements:
- host:
node: MesosMaster
capability: org.alien4cloud.capabilities.MesosMaster
relationship: org.alien4cloud.relationships.AuroraSchedulerHostedOnMaster
Master_Compute:
type: tosca.nodes.Compute
capabilities:
endpoint:
properties:
protocol: tcp
initiator: source
network_name: PRIVATE
secure: true
os:
properties:
type: linux
distribution: ubuntu
version: 14.04
architecture: x86_64
scalable:
properties:
min_instances: 1
max_instances: 5
default_instances: 3
AuroraExecutor:
type: org.alien4cloud.nodes.AuroraExecutor
requirements:
- host:
node: MesosSlave
capability: org.alien4cloud.capabilities.MesosSlaveHost
relationship: org.alien4cloud.relationships.AuroraExecutorHostedOnSlave
MesosSlave:
type: org.alien4cloud.nodes.MesosSlave
properties:
log_dir: /var/log/mesos
port: 5051
component_version: "0.25.0-0.2.70"
requirements:
- host:
node: Slave_Compute
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
- master:
node: MesosMaster
capability: org.alien4cloud.capabilities.MesosMaster
relationship: org.alien4cloud.relationships.MesosSlaveConnectsToMaster
outputs:
Mesos_masters:
description: The masters' URLs.
value: { get_attribute: [MesosMaster, external_url] }
Aurora:
description: Aurora's URL.
value: { get_attribute: [AuroraScheduler, external_url]}