Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0
|
| 2 |
|
| 3 | description: Setup MCORD-related services.
|
| 4 |
|
| 5 | imports:
|
| 6 | - custom_types/xos.yaml
|
| 7 |
|
| 8 | node_types:
|
| 9 | tosca.nodes.MCORDComponent:
|
| 10 | derived_from: tosca.nodes.Root
|
| 11 | description: >
|
| 12 | CORD: A Service Component of MCORD Service.
|
| 13 | properties:
|
| 14 | kind:
|
| 15 | type: string
|
| 16 | default: generic
|
| 17 | description: Kind of component
|
| 18 |
|
| 19 | topology_template:
|
| 20 | node_templates:
|
| 21 | service_mcord:
|
| 22 | type: tosca.nodes.Service
|
| 23 | requirements:
|
| 24 | properties:
|
| 25 | kind: mcordservice
|
| 26 |
|
| 27 |
|
| 28 | Private:
|
| 29 | type: tosca.nodes.NetworkTemplate
|
| 30 |
|
| 31 | mcord_network:
|
| 32 | type: tosca.nodes.network.Network.XOS
|
| 33 | properties:
|
| 34 | ip_version: 4
|
| 35 | labels: mcord_service_internal_net
|
| 36 | cidr: 172.16.16.0/24
|
| 37 | start_ip: 172.16.16.1
|
| 38 | end_ip: 172.16.16.5
|
| 39 | gateway_ip: 172.16.16.1
|
| 40 |
|
| 41 | requirements:
|
| 42 | - network_template:
|
| 43 | node: Private
|
| 44 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 45 | - owner:
|
| 46 | node: mysite_mcord_slice1
|
| 47 | relationship: tosca.relationships.MemberOfSlice
|
| 48 | - connection:
|
| 49 | node: mysite_mcord_slice1
|
| 50 | relationship: tosca.relationships.ConnectsToSlice
|
| 51 |
|
| 52 | mysite:
|
| 53 | type: tosca.nodes.Site
|
| 54 |
|
| 55 |
|
| 56 | ubuntu-14.04-server-cloudimg-amd64-disk1:
|
| 57 | type: tosca.nodes.Image
|
| 58 |
|
| 59 | trusty-server-multi-nic:
|
| 60 | type: tosca.nodes.Image
|
| 61 |
|
| 62 | mysite_mcord_slice1:
|
| 63 | description: MCORD Service Slice 1
|
| 64 | type: tosca.nodes.Slice
|
| 65 | requirements:
|
| 66 | - mcord_service:
|
| 67 | node: service_mcord
|
| 68 | relationship: tosca.relationships.MemberOfService
|
| 69 | - site:
|
| 70 | node: mysite
|
| 71 | relationship: tosca.relationships.MemberOfSite
|
| 72 | - default_image:
|
| 73 | node: ubuntu-14.04-server-cloudimg-amd64-disk1
|
| 74 | # node: mcord-server-image-s1
|
| 75 | relationship: tosca.relationships.DefaultImage
|
| 76 | properties:
|
| 77 | default_flavor: m1.medium
|
| 78 | default_node: compute9
|
| 79 |
|
| 80 | my_service_mcord_component1:
|
| 81 | description: MCORD Service default Component
|
| 82 | type: tosca.nodes.MCORDComponent
|
| 83 | requirements:
|
| 84 | - provider_service:
|
| 85 | node: service_mcord
|
| 86 | relationship: tosca.relationships.MemberOfService
|
| 87 | - mcord_slice:
|
| 88 | node: mysite_mcord_slice1
|
| 89 | relationship: tosca.relationships.MemberOfSlice
|