Scott Baker | 0ef1b80 | 2016-06-03 10:47:22 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup the CDN on the pod |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | Private: |
| 12 | type: tosca.nodes.NetworkTemplate |
| 13 | |
| 14 | management: |
| 15 | type: tosca.nodes.network.Network.XOS |
| 16 | properties: |
| 17 | no-create: true |
| 18 | no-delete: true |
| 19 | no-update: true |
| 20 | |
| 21 | cdn-public: |
| 22 | type: tosca.nodes.network.Network |
| 23 | properties: |
| 24 | ip_version: 4 |
| 25 | cidr: 207.141.192.128/28 |
| 26 | requirements: |
| 27 | - network_template: |
| 28 | node: Private |
| 29 | relationship: tosca.relationships.UsesNetworkTemplate |
| 30 | - owner: |
| 31 | node: mysite_cdn |
| 32 | relationship: tosca.relationships.MemberOfSlice |
| 33 | - connection: |
| 34 | node: mysite_cdn |
| 35 | relationship: tosca.relationships.ConnectsToSlice |
| 36 | |
| 37 | mysite: |
| 38 | type: tosca.nodes.Site |
| 39 | |
| 40 | mysite_cdn: |
| 41 | description: This slice holds the CDN |
| 42 | type: tosca.nodes.Slice |
| 43 | properties: |
| 44 | network: noauto |
| 45 | requirements: |
| 46 | - site: |
| 47 | node: mysite |
| 48 | relationship: tosca.relationships.MemberOfSite |
| 49 | - management: |
| 50 | node: management |
| 51 | relationship: tosca.relationships.ConnectsToNetwork |
| 52 | |