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 | |
Srikanth Vavilapalli | 73afe29 | 2015-12-14 17:35:04 -0500 | [diff] [blame] | 19 | trusty-server-multi-nic: |
| 20 | type: tosca.nodes.Image |
| 21 | |
Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 22 | service_vcpe: |
Scott Baker | 0985ef8 | 2015-12-17 21:13:40 -0800 | [diff] [blame^] | 23 | type: tosca.nodes.VCPEService |
Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 24 | requirements: |
| 25 | - helloworld_tenant: |
| 26 | node: service_helloworld |
| 27 | relationship: tosca.relationships.TenantOfService |
| 28 | |
| 29 | service_helloworld: |
| 30 | type: tosca.nodes.Service |
Scott Baker | ee1b950 | 2015-12-10 15:30:37 -0800 | [diff] [blame] | 31 | properties: |
| 32 | kind: helloworldservice_complete |
| 33 | view_url: /admin/helloworldservice_complete/helloworldservicecomplete/$id$/ |
Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 34 | |
Scott Baker | eeb6252 | 2015-12-10 23:04:44 -0800 | [diff] [blame] | 35 | tenant_helloworld: |
| 36 | type: tosca.nodes.Tenant |
| 37 | properties: |
| 38 | kind: helloworldservice_complete |
| 39 | service_specific_attribute: "{\"display_message\": \"Hello World from Tosca\"}" |
Scott Baker | a894f18 | 2015-12-10 23:24:50 -0800 | [diff] [blame] | 40 | model: helloworldservice_complete.models.HelloWorldTenantComplete |
Scott Baker | eeb6252 | 2015-12-10 23:04:44 -0800 | [diff] [blame] | 41 | requirements: |
| 42 | - provider_service: |
| 43 | node: service_helloworld |
| 44 | relationship: tosca.relationships.MemberOfService |
| 45 | |
| 46 | |
Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 47 | mysite_helloworld: |
| 48 | type: tosca.nodes.Slice |
| 49 | requirements: |
| 50 | - service: |
| 51 | node: service_helloworld |
| 52 | relationship: tosca.relationships.MemberOfService |
| 53 | - site: |
| 54 | node: mysite |
| 55 | relationship: tosca.relationships.MemberOfSite |
Srikanth Vavilapalli | 73afe29 | 2015-12-14 17:35:04 -0500 | [diff] [blame] | 56 | - default_image: |
| 57 | node: trusty-server-multi-nic |
| 58 | relationship: tosca.relationships.DefaultImage |
| 59 | properties: |
| 60 | default_flavor: m1.small |
Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 61 | |
| 62 | helloworld_access: |
| 63 | type: tosca.nodes.network.Network |
| 64 | properties: |
| 65 | ip_version: 4 |
| 66 | requirements: |
| 67 | - network_template: |
| 68 | node: Private-Indirect |
| 69 | relationship: tosca.relationships.UsesNetworkTemplate |
| 70 | - owner: |
| 71 | node: mysite_helloworld |
| 72 | relationship: tosca.relationships.MemberOfSlice |
| 73 | - connection: |
| 74 | node: mysite_helloworld |
| 75 | relationship: tosca.relationships.ConnectsToSlice |
| 76 | |