Scott Baker | f12eed7 | 2016-08-08 11:12:51 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Template for deploying a single server with predefined properties. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | - custom_types/cdn.yaml |
| 8 | |
| 9 | topology_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 | mysite: |
| 19 | type: tosca.nodes.Site |
| 20 | properties: |
| 21 | # Assume the mysite site exists, and don't touch it |
| 22 | no-create: true |
| 23 | no-update: true |
| 24 | no-delete: true |
| 25 | |
| 26 | mysite_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: mysite |
| 37 | relationship: tosca.relationships.MemberOfSite |
| 38 | |
| 39 | mysite_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: mysite |
| 50 | relationship: tosca.relationships.MemberOfSite |
| 51 | |
| 52 | mysite_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: mysite |
| 63 | relationship: tosca.relationships.MemberOfSite |
| 64 | |
| 65 | mysite_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: mysite |
| 76 | relationship: tosca.relationships.MemberOfSite |
| 77 | |