| tosca_definitions_version: tosca_simple_yaml_1_0 |
| |
| description: Two services "service_one" and "service_two" with a tenancy relationship. |
| |
| imports: |
| - custom_types/xos.yaml |
| |
| topology_template: |
| node_templates: |
| |
| Private-Indirect: |
| type: tosca.nodes.NetworkTemplate |
| properties: |
| access: indirect |
| |
| mysite: |
| type: tosca.nodes.Site |
| |
| service_vcpe: |
| type: tosca.nodes.Service |
| requirements: |
| - helloworld_tenant: |
| node: service_helloworld |
| relationship: tosca.relationships.TenantOfService |
| |
| service_helloworld: |
| type: tosca.nodes.Service |
| |
| mysite_helloworld: |
| type: tosca.nodes.Slice |
| requirements: |
| - service: |
| node: service_helloworld |
| relationship: tosca.relationships.MemberOfService |
| - site: |
| node: mysite |
| relationship: tosca.relationships.MemberOfSite |
| |
| helloworld_access: |
| type: tosca.nodes.network.Network |
| properties: |
| ip_version: 4 |
| requirements: |
| - network_template: |
| node: Private-Indirect |
| relationship: tosca.relationships.UsesNetworkTemplate |
| - owner: |
| node: mysite_helloworld |
| relationship: tosca.relationships.MemberOfSlice |
| - connection: |
| node: mysite_helloworld |
| relationship: tosca.relationships.ConnectsToSlice |
| |
| # we need at least one instance to make the Networks instantiate |
| helloworld_instance: |
| type: tosca.nodes.Compute |
| capabilities: |
| # Host container properties |
| host: |
| properties: |
| num_cpus: 1 |
| disk_size: 10 GB |
| mem_size: 4 MB |
| # Guest Operating System properties |
| os: |
| properties: |
| # host Operating System image properties |
| architecture: x86_64 |
| type: linux |
| distribution: rhel |
| version: 6.5 |
| requirements: |
| - slice: |
| node: mysite_helloworld |
| relationship: tosca.relationships.MemberOfSlice |
| |