| Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame^] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Two services "service_one" and "service_two" with a tenancy relationship. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | Private-Indirect: |
| 12 | type: tosca.nodes.NetworkTemplate |
| 13 | properties: |
| 14 | access: indirect |
| 15 | |
| 16 | mysite: |
| 17 | type: tosca.nodes.Site |
| 18 | |
| 19 | service_vcpe: |
| 20 | type: tosca.nodes.Service |
| 21 | requirements: |
| 22 | - helloworld_tenant: |
| 23 | node: service_helloworld |
| 24 | relationship: tosca.relationships.TenantOfService |
| 25 | |
| 26 | service_helloworld: |
| 27 | type: tosca.nodes.Service |
| 28 | |
| 29 | mysite_helloworld: |
| 30 | type: tosca.nodes.Slice |
| 31 | requirements: |
| 32 | - service: |
| 33 | node: service_helloworld |
| 34 | relationship: tosca.relationships.MemberOfService |
| 35 | - site: |
| 36 | node: mysite |
| 37 | relationship: tosca.relationships.MemberOfSite |
| 38 | |
| 39 | helloworld_access: |
| 40 | type: tosca.nodes.network.Network |
| 41 | properties: |
| 42 | ip_version: 4 |
| 43 | requirements: |
| 44 | - network_template: |
| 45 | node: Private-Indirect |
| 46 | relationship: tosca.relationships.UsesNetworkTemplate |
| 47 | - owner: |
| 48 | node: mysite_helloworld |
| 49 | relationship: tosca.relationships.MemberOfSlice |
| 50 | - connection: |
| 51 | node: mysite_helloworld |
| 52 | relationship: tosca.relationships.ConnectsToSlice |
| 53 | |
| 54 | # we need at least one instance to make the Networks instantiate |
| 55 | helloworld_instance: |
| 56 | type: tosca.nodes.Compute |
| 57 | capabilities: |
| 58 | # Host container properties |
| 59 | host: |
| 60 | properties: |
| 61 | num_cpus: 1 |
| 62 | disk_size: 10 GB |
| 63 | mem_size: 4 MB |
| 64 | # Guest Operating System properties |
| 65 | os: |
| 66 | properties: |
| 67 | # host Operating System image properties |
| 68 | architecture: x86_64 |
| 69 | type: linux |
| 70 | distribution: rhel |
| 71 | version: 6.5 |
| 72 | requirements: |
| 73 | - slice: |
| 74 | node: mysite_helloworld |
| 75 | relationship: tosca.relationships.MemberOfSlice |
| 76 | |