blob: f66e0f2fa202485e168770f7e584fbfef1541bbd [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Template for deploying a single server with predefined properties.
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/cdn.yaml
8
9topology_template:
10 node_templates:
11 HyperCache:
12 type: tosca.nodes.CDNService
13 description: Content Delivery Network
14 properties:
15 view_url: /admin/hpc/hpcservice/$id$/
16 icon_url: /static/primarycons_blue/network.png
17
18 onlab:
19 type: tosca.nodes.Site
20 properties:
21 # Assume the onlab site exists, and don't touch it
22 no-create: true
23 no-update: true
24 no-delete: true
25
26 onlab_cmi:
27 description: CMI Slice
28 type: tosca.nodes.Slice
29 properties:
30 exposed_ports: tcp 8003, tcp 8004, tcp 8140
31 requirements:
32 - cdn_service:
33 node: HyperCache
34 relationship: tosca.relationships.MemberOfService
35 - site:
36 node: onlab
37 relationship: tosca.relationships.MemberOfSite
38
39 onlab_hpc:
40 description: HyperCache Slice
41 type: tosca.nodes.Slice
42 properties:
43 exposed_ports: tcp 2120:2128, tcp 3200:3209, tcp 8006, tcp 8009, tcp 8015, tcp 80
44 requirements:
45 - cdn_service:
46 node: HyperCache
47 relationship: tosca.relationships.MemberOfService
48 - site:
49 node: onlab
50 relationship: tosca.relationships.MemberOfSite
51
52 onlab_dnsredir:
53 description: HyperCache Slice
54 type: tosca.nodes.Slice
55 properties:
56 exposed_ports: udp 53541, tcp 8016
57 requirements:
58 - cdn_service:
59 node: HyperCache
60 relationship: tosca.relationships.MemberOfService
61 - site:
62 node: onlab
63 relationship: tosca.relationships.MemberOfSite
64
65 onlab_dnsdemux:
66 description: HyperCache Slice
67 type: tosca.nodes.Slice
68 properties:
69 exposed_ports: udp 53, tcp 8017
70 requirements:
71 - cdn_service:
72 node: HyperCache
73 relationship: tosca.relationships.MemberOfService
74 - site:
75 node: onlab
76 relationship: tosca.relationships.MemberOfSite
77