blob: 4333ca4971c3879f2dc3a7d7c89b6d9f50b6efb5 [file] [log] [blame]
Gabe Black4c040b72016-11-17 22:35:04 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup the ActiveTest on the pod
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/ActiveTest.yaml
8
9topology_template:
10 node_templates:
11
12 mysite:
13 type: tosca.nodes.Site
14
15 qt600:
16 type: tosca.nodes.Image
17
18 vpma:
19 type: tosca.nodes.Image
20
21 fusion:
22 type: tosca.nodes.Image
23
24 vta:
25 type: tosca.nodes.Image
26
27 activetest.vta:
28 type: tosca.nodes.Flavor
29
30 m1.small:
31 type: tosca.nodes.Flavor
32
33 m1.large:
34 type: tosca.nodes.Flavor
35
36 External:
37 type: tosca.nodes.NetworkTemplate
38 properties:
39 access: indirect
40
41 Private-Indirect:
42 type: tosca.nodes.NetworkTemplate
43 properties:
44 access: indirect
45
46 management:
47 type: tosca.nodes.network.Network.XOS
48 properties:
49 no-create: true
50 no-delete: true
51 no-update: true
52
53 mysite_activetest_network_slice:
54 description: This slice exists solely to own the activetest network
55 type: tosca.nodes.Slice
56 properties:
57 network: noauto
58 requirements:
59 - site:
60 node: mysite
61 relationship: tosca.relationships.MemberOfSite
62
63 mysite_activetest_test_network1_slice:
64 description: This slice exists solely to own the activetest test network 1
65 type: tosca.nodes.Slice
66 properties:
67 network: noauto
68 requirements:
69 - site:
70 node: mysite
71 relationship: tosca.relationships.MemberOfSite
72
73 lan_activetest_public_network:
74 type: tosca.nodes.network.Network.XOS
75 properties:
76 ip_version: 4
77 requirements:
78 - network_template:
79 node: External
80 relationship: tosca.relationships.UsesNetworkTemplate
81 - owner:
82 node: mysite_activetest_network_slice
83 relationship: tosca.relationships.MemberOfSlice
84 - connection:
85 node: mysite_activetest_slice1
86 relationship: tosca.relationships.ConnectsToSlice
87
88 lan_activetest_test_network1:
89 type: tosca.nodes.network.Network.XOS
90 properties:
91 ip_version: 4
92 requirements:
93 - network_template:
94 node: External
95 relationship: tosca.relationships.UsesNetworkTemplate
96 - owner:
97 node: mysite_activetest_test_network1_slice
98 relationship: tosca.relationships.MemberOfSlice
99 - connection1:
100 node: mysite_vpma_slice1
101 relationship: tosca.relationships.ConnectsToSlice
102 - connection2:
103 node: mysite_vta_slice1
104 relationship: tosca.relationships.ConnectsToSlice
105 - connection3:
106 node: mysite_qt600_slice1
107 relationship: tosca.relationships.ConnectsToSlice
108
109# ActiveTest:
110# type: tosca.nodes.ActiveTest
111# properties:
112# view_url: /admin/activetest/activetestservice
113# kind: activetestservice
114# public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
115# private_key_fn: /opt/xos/services/activetest/keys/activetest_rsa
116# artifacts:
117# pubkey: /opt/xos/services/activetest/keys/activetest_rsa.pub
118
119 ActiveTest:
120 type: tosca.nodes.ActiveTest
121 requirements:
122 - management:
123 node: management
124 relationship: tosca.relationships.UsesNetwork
125 properties:
126 view_url: /admin/activetest/activetestservice/$id$/
127 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
128 private_key_fn: /opt/xos/services/activetest/keys/activetest_rsa
129 kind: ActiveTest
130 artifacts:
131 pubkey: /opt/xos/services/activetest/keys/activetest_rsa.pub
132
133 VTA:
134 type: tosca.nodes.VtaService
135 requirements:
136 - management:
137 node: management
138 relationship: tosca.relationships.UsesNetwork
139 properties:
140 view_url: /admin/activetest/activetestservice/$id$/
141 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
142 private_key_fn: /opt/xos/services/activetest/keys/activetest_rsa
143 kind: ActiveTest
144 artifacts:
145 pubkey: /opt/xos/services/activetest/keys/activetest_rsa.pub
146
147 QT600:
148 type: tosca.nodes.Qt600Service
149 requirements:
150 - management:
151 node: management
152 relationship: tosca.relationships.UsesNetwork
153 properties:
154 view_url: /admin/activetest/activetestservice/$id$/
155 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
156 private_key_fn: /opt/xos/services/activetest/keys/activetest_rsa
157 kind: ActiveTest
158 artifacts:
159 pubkey: /opt/xos/services/activetest/keys/activetest_rsa.pub
160
161 VPMA:
162 type: tosca.nodes.VpmaService
163 requirements:
164 - management:
165 node: management
166 relationship: tosca.relationships.UsesNetwork
167 properties:
168 view_url: /admin/activetest/activetestservice/$id$/
169 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
170 private_key_fn: /opt/xos/services/activetest/keys/activetest_rsa
171 kind: ActiveTest
172 artifacts:
173 pubkey: /opt/xos/services/activetest/keys/activetest_rsa.pub
174
175 mysite_activetest_slice1:
176 description: ActiveTest Service Slice 1
177 type: tosca.nodes.Slice
178 properties:
179 network: noauto
180 requirements:
181 - site:
182 node: mysite
183 relationship: tosca.relationships.MemberOfSite
184 - management:
185 node: management
186 relationship: tosca.relationships.ConnectsToNetwork
187 - ActiveTest:
188 node: ActiveTest
189 relationship: tosca.relationships.MemberOfService
190 - image:
191 node: fusion
192 relationship: tosca.relationships.DefaultImage
193 - flavor:
194 node: m1.large
195 relationship: tosca.relationships.DefaultFlavor
196 - VTA:
197 node: VTA
198 relationship: tosca.relationships.MemberOfService
199 - VPMA:
200 node: VPMA
201 relationship: tosca.relationships.MemberOfService
202 - QT600:
203 node: QT600
204 relationship: tosca.relationships.MemberOfService
205
206 mysite_qt600_slice1:
207 description: ActiveTest QT600 Service Slice 1
208 type: tosca.nodes.Slice
209 properties:
210 network: noauto
211 requirements:
212 - site:
213 node: mysite
214 relationship: tosca.relationships.MemberOfSite
215 - management:
216 node: management
217 relationship: tosca.relationships.ConnectsToNetwork
218 - activetest:
219 node: lan_activetest_public_network
220 relationship: tosca.relationships.ConnectsToNetwork
221 - QT600:
222 node: QT600
223 relationship: tosca.relationships.MemberOfService
224 - image:
225 node: qt600
226 relationship: tosca.relationships.DefaultImage
227 - flavor:
228 node: m1.small
229 relationship: tosca.relationships.DefaultFlavor
230
231 mysite_vpma_slice1:
232 description: ActiveTest VPMA Service Slice 1
233 type: tosca.nodes.Slice
234 properties:
235 network: noauto
236 requirements:
237 - site:
238 node: mysite
239 relationship: tosca.relationships.MemberOfSite
240 - management:
241 node: management
242 relationship: tosca.relationships.ConnectsToNetwork
243 - activetest:
244 node: lan_activetest_public_network
245 relationship: tosca.relationships.ConnectsToNetwork
246 - VPMA:
247 node: VPMA
248 relationship: tosca.relationships.MemberOfService
249 - image:
250 node: vpma
251 relationship: tosca.relationships.DefaultImage
252 - flavor:
253 node: m1.small
254 relationship: tosca.relationships.DefaultFlavor
255
256 mysite_vta_slice1:
257 description: ActiveTest VTA Service Slice 1
258 type: tosca.nodes.Slice
259 properties:
260 network: noauto
261 requirements:
262 - site:
263 node: mysite
264 relationship: tosca.relationships.MemberOfSite
265 - management:
266 node: management
267 relationship: tosca.relationships.ConnectsToNetwork
268 - activetest:
269 node: lan_activetest_public_network
270 relationship: tosca.relationships.ConnectsToNetwork
271 - VTA:
272 node: VTA
273 relationship: tosca.relationships.MemberOfService
274 - image:
275 node: vta
276 relationship: tosca.relationships.DefaultImage
277 - flavor:
278 node: activetest.vta
279 relationship: tosca.relationships.DefaultFlavor
280
281 tenant#activetesttenant:
282 type: tosca.nodes.ActiveTestTenant
283 requirements:
284 - tenant:
285 node: ActiveTest
286 relationship: tosca.relationships.TenantOfService
287 - dependency:
288 node: mysite_activetest_slice1
289 relationship: tosca.relationships.DependsOn
290
291 EtherAssure:
292 type: tosca.nodes.DashboardView
293 properties:
294 url: https://localhost:9443