-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathsoftlayer-blueprint.yaml
More file actions
122 lines (99 loc) · 3.46 KB
/
softlayer-blueprint.yaml
File metadata and controls
122 lines (99 loc) · 3.46 KB
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
tosca_definitions_version: cloudify_dsl_1_3
description: >
This Blueprint installs the nodecellar application
on a softlayer cloud environment.
imports:
- http://www.getcloudify.org/spec/cloudify/3.4m5/types.yaml
- http://www.getcloudify.org/spec/softlayer-plugin/1.3.1/plugin.yaml
- http://www.getcloudify.org/spec/diamond-plugin/1.3.2/plugin.yaml
- types/nodecellar.yaml
- types/softlayer-types.yaml
#####################################################################################
# inputs section allows the user to use same
# blueprint for creating different deployments, each one
# with its own parameters.
# to specify deployment inputs run:
# - cfy deployments create -b <blueprint_id> -d <deployment_id> -i inputs.json
#####################################################################################
inputs:
location:
description: >
Location of the data center
Default value is the location id of Melbourne 1
default: 449596
domain:
description: The domain
default: cloudify.org
ram:
description: >
Item id of the ram
Default value is the item id of 16 GB
default: 1017
cpu:
description: >
Item id of the cpu
Default value is the item id of 4 x 2.0 GHz Cores
default: 859
disk:
description: >
Item id of the disk
Default value is the item id of 25 GB (SAN)
default: 1178
os:
description: >
Item id of the operating system
Default value is the item id of
Ubuntu Linux 14.04 LTS Trusty Tahr - Minimal Install (64 bit)
default: 4668
diamond_reporting_interval:
description: interval in seconds for reporting metrics by diamond agent
type: integer
default: 10
# This default is here for UX and demos, we strongly recommend you reconsider
# how much data you report for your own production system based on your
# specific application, as this generates approximately 12kb of data per report,
# so for example a setting of 10 would generate approximately 726mb per week,
# which might be an issue if you install your manager on a small partition.
node_templates:
nodecellar:
type: nodecellar.nodes.NodecellarApplicationModule
relationships:
################################
# Setting the mongo connection
################################
- type: node_connected_to_mongo
target: mongod
################################
# Setting the nodejs connection
################################
- type: node_contained_in_nodejs
target: nodejs
mongod:
type: nodecellar.nodes.MonitoredMongoDatabase
relationships:
- type: cloudify.relationships.contained_in
target: mongod_host
nodejs:
type: nodecellar.nodes.NodeJSServer
relationships:
- type: cloudify.relationships.contained_in
target: nodejs_host
mongod_host:
type: nodecellar.nodes.MonitoredServer
properties:
hostname: mongod
nodejs_host:
type: nodecellar.nodes.MonitoredServer
properties:
hostname: nodejs
###########################################################
# This outputs section exposes the application endpoint.
# You can access it by running:
# - cfy deployments -d <deployment_id> outputs
###########################################################
outputs:
endpoint:
description: Web application endpoint
value:
ip_address: { get_attribute: [ nodejs_host, public_ip ] }
port: { get_property: [ nodecellar, port ] }