Scott Baker | 5042166 | 2016-06-27 22:09:48 -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 | properties: |
| 14 | # HyperCache service must already exist before running this recipe |
| 15 | no-create: true |
| 16 | no-delete: true |
| 17 | no-update: true |
| 18 | |
| 19 | # Setup the Syndicate Devel Service Provider |
| 20 | |
| 21 | main_service_provider: |
| 22 | type: tosca.nodes.ServiceProvider |
| 23 | requirements: |
| 24 | - hpc_service: |
| 25 | node: HyperCache |
| 26 | relationship: tosca.relationships.MemberOfService |
| 27 | |
| 28 | syndicate_devel: |
| 29 | type: tosca.nodes.ContentProvider
|
| 30 | requirements:
|
| 31 | - service_provider:
|
| 32 | node: main_service_provider
|
| 33 | relationship: tosca.relationships.MemberOfServiceProvider |
| 34 | |
| 35 | # http_node2.cs.arizona.edu: |
| 36 | # type: tosca.nodes.OriginServer
|
| 37 | # requirements:
|
| 38 | # - content_provider:
|
| 39 | # node: syndicate_devel
|
| 40 | # relationship: tosca.relationships.MemberOfContentProvider |
| 41 | |
| 42 | syndicate-devel.opencloud.us: |
| 43 | type: tosca.nodes.CDNPrefix
|
| 44 | requirements:
|
| 45 | - content_provider:
|
| 46 | node: syndicate_devel
|
| 47 | relationship: tosca.relationships.MemberOfContentProvider
|
| 48 |
|
| 49 | # - default_origin_server:
|
| 50 | # node: http_node2.cs.arizona.edu
|
| 51 | # relationship: tosca.relationships.DefaultOriginServer |
| 52 | |