blob: 8a35b9e28fa0db725492ed4af8e158340bab4949 [file] [log] [blame]
Scott Bakerbb7d64a2015-12-09 22:55:47 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Two services "service_one" and "service_two" with a tenancy relationship.
4
5imports:
6 - custom_types/xos.yaml
7
8topology_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 Vavilapalli73afe292015-12-14 17:35:04 -050019 trusty-server-multi-nic:
20 type: tosca.nodes.Image
21
Scott Bakerbb7d64a2015-12-09 22:55:47 -080022 service_vcpe:
Scott Baker0985ef82015-12-17 21:13:40 -080023 type: tosca.nodes.VCPEService
Scott Bakerbb7d64a2015-12-09 22:55:47 -080024 requirements:
25 - helloworld_tenant:
26 node: service_helloworld
27 relationship: tosca.relationships.TenantOfService
28
29 service_helloworld:
30 type: tosca.nodes.Service
Scott Bakeree1b9502015-12-10 15:30:37 -080031 properties:
32 kind: helloworldservice_complete
33 view_url: /admin/helloworldservice_complete/helloworldservicecomplete/$id$/
Scott Bakerbb7d64a2015-12-09 22:55:47 -080034
Scott Bakereeb62522015-12-10 23:04:44 -080035 tenant_helloworld:
36 type: tosca.nodes.Tenant
37 properties:
38 kind: helloworldservice_complete
39 service_specific_attribute: "{\"display_message\": \"Hello World from Tosca\"}"
Scott Bakera894f182015-12-10 23:24:50 -080040 model: helloworldservice_complete.models.HelloWorldTenantComplete
Scott Bakereeb62522015-12-10 23:04:44 -080041 requirements:
42 - provider_service:
43 node: service_helloworld
44 relationship: tosca.relationships.MemberOfService
45
46
Scott Bakerbb7d64a2015-12-09 22:55:47 -080047 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 Vavilapalli73afe292015-12-14 17:35:04 -050056 - default_image:
57 node: trusty-server-multi-nic
58 relationship: tosca.relationships.DefaultImage
59 properties:
60 default_flavor: m1.small
Scott Bakerbb7d64a2015-12-09 22:55:47 -080061
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