-
Notifications
You must be signed in to change notification settings - Fork 6
/
scenario_iaas.yml
192 lines (166 loc) · 4.12 KB
/
scenario_iaas.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
---
version: edm_1_0
components:
## Spring PetClinic Application
pet_clinic:
type: web_application
artifacts:
- war: ./files/app.war
operations:
configure: ./files/configure.sh
relations:
- hosted_on: pet_clinic_tomcat
- connects_to: db
pet_clinic_tomcat:
type: tomcat
operations:
create: ./files/create.sh
start: ./files/start.sh
relations:
- hosted_on: pet_clinic_ubuntu
pet_clinic_ubuntu:
type: compute
properties:
machine_image: ubuntu
instance_type: large
key_name: edmm
public_key: |
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0
FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/
3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB
-----END PUBLIC KEY-----
operations:
configure: ./files/configure.sh
## Database
db:
type: mysql_database
properties:
schema_name: petclinic
user: pc
password: petclinic
artifacts:
- sql: ./files/app.sql
operations:
configure: ./files/configure.sh
relations:
- hosted_on: dbms
dbms:
type: mysql_dbms
properties:
root_password: petclinic
operations:
create: ./files/create.sh
start: ./files/start.sh
relations:
- hosted_on: db_ubuntu
db_ubuntu:
type: compute
properties:
machine_image: ubuntu
instance_type: large
key_name: edmm
public_key: |
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0
FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/
3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB
-----END PUBLIC KEY-----
operations:
configure: ./files/configure.sh
###############################################
## Component Types
###############################################
component_types:
## Generic Types
base:
extends: null
description: The base type
metadata: {}
operations:
create: ~
configure: ~
start: ~
stop: ~
delete: ~
software_component:
extends: base
compute:
extends: base
properties:
os_family:
type: string
description: Specifies the type of operating system
default_value: linux
machine_image:
type: string
description: The name of the machine image to use
instance_type:
type: string
description: The name of the instance type to provision
key_name:
type: string
description: The name of the key pair to use for authentication
public_key:
type: string
description: The public key of the key pair to use for authentication
public_address:
type: string
description: The public ip address of this instance
web_server:
extends: software_component
properties:
port:
type: integer
default_value: 80
web_application:
extends: base
dbms:
extends: software_component
properties:
port:
type: integer
root_password:
type: string
database:
extends: base
properties:
schema_name:
type: string
user:
type: string
password:
type: string
## Technology-specific Types
tomcat:
extends: web_server
properties:
port:
type: integer
default_value: 8080
mysql_dbms:
extends: dbms
properties:
port:
type: integer
default_value: 3306
mysql_database:
extends: database
###############################################
## Relation Types
###############################################
relation_types:
depends_on:
extends: null
properties: {}
operations:
pre_configure_source: ~
pre_configure_target: ~
post_configure_source: ~
post_configure_target: ~
target_changed: ~
target_removed: ~
hosted_on:
extends: depends_on
connects_to:
extends: depends_on