Omar Abdelkader | 19e9be2 | 2017-08-18 14:09:09 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Creates desired M-CORD instances and tenants during build time |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | - custom_types/vbbu.yaml |
| 8 | - custom_types/vmme.yaml |
| 9 | |
| 10 | topology_template: |
| 11 | node_templates: |
| 12 | |
| 13 | # site, fully created in deployment.yaml |
| 14 | {{ site_name }}: |
| 15 | type: tosca.nodes.Site |
| 16 | properties: |
| 17 | no-delete: true |
| 18 | no-create: true |
| 19 | no-update: true |
| 20 | |
| 21 | trusty-server-multi-nic: |
| 22 | type: tosca.nodes.Image |
| 23 | |
| 24 | # vbbu and vmme slices/services fully created in mcord-services.yaml |
| 25 | service#vbbu: |
| 26 | type: tosca.nodes.VBBUService |
| 27 | properties: |
| 28 | no-delete: true |
| 29 | no-create: true |
| 30 | no-update: true |
| 31 | |
| 32 | service#vmme: |
| 33 | type: tosca.nodes.VMMEService |
| 34 | properties: |
| 35 | no-delete: true |
| 36 | no-create: true |
| 37 | no-update: true |
| 38 | |
| 39 | mysite_vBBU_slice: |
| 40 | type: tosca.nodes.Slice |
| 41 | properties: |
| 42 | no-delete: true |
| 43 | no-create: true |
| 44 | no-update: true |
| 45 | |
| 46 | mysite_vMME_slice: |
| 47 | type: tosca.nodes.Slice |
| 48 | properties: |
| 49 | no-delete: true |
| 50 | no-create: true |
| 51 | no-update: true |
| 52 | |
| 53 | # create a sample tenant and sample instance |
| 54 | tenant#vmmetenant1: |
| 55 | type: tosca.nodes.VMMETenant |
| 56 | properties: |
| 57 | kind: vEPC |
| 58 | requirements: |
| 59 | - tenant: |
| 60 | node: service#vmme |
| 61 | relationship: tosca.relationships.TenantOfService |
| 62 | - dependency: |
| 63 | node: mysite_vMME_slice |
| 64 | relationship: tosca.relationships.DependsOn |
| 65 | |
| 66 | instance#vbbuinstance1: |
| 67 | type: tosca.nodes.Compute |
| 68 | capabilities: |
| 69 | # Host container properties |
| 70 | host: |
| 71 | properties: |
| 72 | num_cpus: 1 |
| 73 | disk_size: 10 GB |
| 74 | mem_size: 2 GB |
| 75 | requirements: |
| 76 | - slice: |
| 77 | node: mysite_vBBU_slice |
| 78 | relationship: tosca.relationships.MemberOfSlice |
| 79 | - image: |
| 80 | node: trusty-server-multi-nic |
| 81 | relationship: tosca.relationships.UseImage |