blob: a39284285e758dd45154875e24ec5dea2b8bcd51 [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
5
Pingping Lin4fdbea02017-01-25 19:44:28 -08006description: openstack extensions to deployment, generated by platform-install
Pingping Linb7a7d2b2016-08-19 18:11:36 +00007
8topology_template:
Pingping Lin4fdbea02017-01-25 19:44:28 -08009 node_templates:
Pingping Linb7a7d2b2016-08-19 18:11:36 +000010
Pingping Lin4fdbea02017-01-25 19:44:28 -080011# Images and flavors
12 trusty-server-multi-nic:
13 type: tosca.nodes.Image
14 properties:
15 path: /opt/xos/images/trusty-server-multi-nic.qcow2
16 disk_format: QCOW2
17 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070018
19 bbu-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080020 type: tosca.nodes.Image
21 properties:
Pingping Linda03d272017-05-01 15:46:30 -070022 path: /opt/xos/images/bbu-snapshot-Feb20.ami
23 disk_format: ami
24 container_format: ami
25 bbu_kernel:
Pingping Lin4fdbea02017-01-25 19:44:28 -080026 type: tosca.nodes.Image
27 properties:
Pingping Linda03d272017-05-01 15:46:30 -070028 path: /opt/xos/images/bbu_kernel.aki
29 disk_format: aki
30 container_format: aki
31
32 open-mme-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080033 type: tosca.nodes.Image
34 properties:
Pingping Linda03d272017-05-01 15:46:30 -070035 path: /opt/xos/images/open-mme-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080036 disk_format: QCOW2
37 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070038 open-sgw-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080039 type: tosca.nodes.Image
40 properties:
Pingping Linda03d272017-05-01 15:46:30 -070041 path: /opt/xos/images/open-sgw-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080042 disk_format: QCOW2
43 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070044 open-pgw-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080045 type: tosca.nodes.Image
46 properties:
Pingping Linda03d272017-05-01 15:46:30 -070047 path: /opt/xos/images/open-pgw-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080048 disk_format: QCOW2
49 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070050
51 licenseserver-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080052 type: tosca.nodes.Image
53 properties:
Pingping Linda03d272017-05-01 15:46:30 -070054 path: /opt/xos/images/licenseserver-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080055 disk_format: QCOW2
56 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070057 hss-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080058 type: tosca.nodes.Image
59 properties:
Pingping Linda03d272017-05-01 15:46:30 -070060 path: /opt/xos/images/hss-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080061 disk_format: QCOW2
62 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070063
64 mme1-snapshot-Feb20:
Pingping Lin4fdbea02017-01-25 19:44:28 -080065 type: tosca.nodes.Image
66 properties:
Pingping Linda03d272017-05-01 15:46:30 -070067 path: /opt/xos/images/mme1-snapshot-Feb20.qcow2
Pingping Lin4fdbea02017-01-25 19:44:28 -080068 disk_format: QCOW2
69 container_format: BARE
Pingping Linda03d272017-05-01 15:46:30 -070070 sgwc1-snapshot-Feb20:
71 type: tosca.nodes.Image
72 properties:
73 path: /opt/xos/images/sgwc1-snapshot-Feb20.qcow2
74 disk_format: QCOW2
75 container_format: BARE
76 pgwc1-snapshot-Feb20:
77 type: tosca.nodes.Image
78 properties:
79 path: /opt/xos/images/pgwc1-snapshot-Feb20.qcow2
80 disk_format: QCOW2
81 container_format: BARE
82 sgwu1-snapshot-Feb20:
83 type: tosca.nodes.Image
84 properties:
85 path: /opt/xos/images/sgwu1-snapshot-Feb20.qcow2
86 disk_format: QCOW2
87 container_format: BARE
88 pgwu1-snapshot-Feb20:
89 type: tosca.nodes.Image
90 properties:
91 path: /opt/xos/images/pgwu1-snapshot-Feb20.qcow2
92 disk_format: QCOW2
93 container_format: BARE
94
95 mme2-snapshot-Feb20:
96 type: tosca.nodes.Image
97 properties:
98 path: /opt/xos/images/mme2-snapshot-Feb20.qcow2
99 disk_format: QCOW2
100 container_format: BARE
101 sgwc2-snapshot-Feb20:
102 type: tosca.nodes.Image
103 properties:
104 path: /opt/xos/images/sgwc2-snapshot-Feb20.qcow2
105 disk_format: QCOW2
106 container_format: BARE
107 pgwc2-snapshot-Feb20:
108 type: tosca.nodes.Image
109 properties:
110 path: /opt/xos/images/pgwc2-snapshot-Feb20.qcow2
111 disk_format: QCOW2
112 container_format: BARE
113 sgwu2-snapshot-Feb20:
114 type: tosca.nodes.Image
115 properties:
116 path: /opt/xos/images/sgwu2-snapshot-Feb20.qcow2
117 disk_format: QCOW2
118 container_format: BARE
119 pgwu2-snapshot-Feb20:
120 type: tosca.nodes.Image
121 properties:
122 path: /opt/xos/images/pgwu2-snapshot-Feb20.qcow2
123 disk_format: QCOW2
124 container_format: BARE
125
126 cookie-snapshot-Feb20:
127 type: tosca.nodes.Image
128 properties:
129 path: /opt/xos/images/cookie-snapshot-Feb20.qcow2
130 disk_format: QCOW2
131 container_format: BARE
132 NAT-snapshot-Feb20:
133 type: tosca.nodes.Image
134 properties:
135 path: /opt/xos/images/NAT-snapshot-Feb20.qcow2
136 disk_format: QCOW2
137 container_format: BARE
138 xpose-snapshot-Feb20:
139 type: tosca.nodes.Image
140 properties:
141 path: /opt/xos/images/xpose-snapshot-Feb20.qcow2
142 disk_format: QCOW2
143 container_format: BARE
144
145# licenseserver:
146# type: tosca.nodes.Image
147# properties:
148# path: /opt/xos/images/licenseserver.qcow2
149# disk_format: QCOW2
150# container_format: BARE
151# hss:
152# type: tosca.nodes.Image
153# properties:
154# path: /opt/xos/images/hss.qcow2
155# disk_format: QCOW2
156# container_format: BARE
157# mme:
158# type: tosca.nodes.Image
159# properties:
160# path: /opt/xos/images/mme.qcow2
161# disk_format: QCOW2
162# container_format: BARE
163# pgwc:
164# type: tosca.nodes.Image
165# properties:
166# path: /opt/xos/images/pgwc.qcow2
167# disk_format: QCOW2
168# container_format: BARE
169# pgwu:
170# type: tosca.nodes.Image
171# properties:
172# path: /opt/xos/images/pgwu.qcow2
173# disk_format: QCOW2
174# container_format: BARE
175# sgwc:
176# type: tosca.nodes.Image
177# properties:
178# path: /opt/xos/images/sgwc.qcow2
179# disk_format: QCOW2
180# container_format: BARE
181# sgwu:
182# type: tosca.nodes.Image
183# properties:
184# path: /opt/xos/images/sgwu.qcow2
185# disk_format: QCOW2
186# container_format: BARE
187# bbu:
188# type: tosca.nodes.Image
189# properties:
190# path: /opt/xos/images/bbu.qcow2
191# disk_format: QCOW2
192# container_format: BARE
193# bbu_s:
194# type: tosca.nodes.Image
195# properties:
196# path: /opt/xos/images/bbus.qcow2
197# disk_format: QCOW2
198# container_format: BARE
199# cookies:
200# type: tosca.nodes.Image
201# properties:
202# path: /opt/xos/images/cookies.qcow2
203# disk_format: QCOW2
204# container_format: BARE
205
206
Pingping Lin4fdbea02017-01-25 19:44:28 -0800207 m1.small:
208 type: tosca.nodes.Flavor
209
210 m1.medium:
211 type: tosca.nodes.Flavor
212
213 m1.large:
214 type: tosca.nodes.Flavor
215
216 m1.xlarge:
217 type: tosca.nodes.Flavor
218
219
220# Deployment - adds images/flavors to site defined in deployment.yaml
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000221 MyDeployment:
222 type: tosca.nodes.Deployment
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000223 requirements:
Pingping Lin4fdbea02017-01-25 19:44:28 -0800224 - m1.small:
225 node: m1.small
226 relationship: tosca.relationships.SupportsFlavor
227 - m1.medium:
228 node: m1.medium
229 relationship: tosca.relationships.SupportsFlavor
230 - m1.large:
231 node: m1.large
232 relationship: tosca.relationships.SupportsFlavor
233 - m1.xlarge:
234 node: m1.xlarge
235 relationship: tosca.relationships.SupportsFlavor
236
237# OpenStack Controller
238 mysite_MyDeployment_openstack:
239 type: tosca.nodes.Controller
240 requirements:
241 - deployment:
242 node: MyDeployment
243 relationship: tosca.relationships.ControllerDeployment
244 properties:
245 backend_type: OpenStack
246 version: Kilo
247 auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] }
248 admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] }
249 admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] }
250 admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] }
251 domain: Default
252 artifacts:
253 adminrc: /root/setup/admin-openrc.sh
254
255# Site - adds openstack controller to site defined in deployment.yaml
256 mysite:
257 type: tosca.nodes.Site
258 properties:
259 display_name: MySite
260 site_url: http://mysite.opencloud.us/
261 hosts_nodes: true
262 requirements:
263 - deployment:
264 node: MyDeployment
265 relationship: tosca.relationships.MemberOfDeployment
266 - controller:
267 node: mysite_MyDeployment_openstack
268 relationship: tosca.relationships.UsesController
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000269