Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup the ExampleService on the ACORD setup |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | - custom_types/exampleservice.yaml |
| 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | |
| 12 | mysite: |
| 13 | type: tosca.nodes.Site |
| 14 | |
| 15 | trusty-server-multi-nic: |
| 16 | type: tosca.nodes.Image |
| 17 | |
| 18 | m1.small: |
| 19 | type: tosca.nodes.Flavor |
| 20 | |
| 21 | mysite_exampleservice: |
| 22 | description: This slice holds the ExampleService |
| 23 | type: tosca.nodes.Slice |
| 24 | requirements: |
| 25 | - site: |
| 26 | node: mysite |
| 27 | relationship: tosca.relationships.MemberOfSite |
| 28 | - exmapleservice: |
| 29 | node: service_example |
| 30 | relationship: tosca.relationships.MemberOfService |
| 31 | - default_image: |
| 32 | node: trusty-server-multi-nic |
| 33 | relationship: tosca.relationships.DefaultImage |
| 34 | - m1.small: |
| 35 | node: m1.small |
| 36 | relationship: tosca.relationships.DefaultFlavor |
| 37 | |
| 38 | service_example: |
| 39 | type: tosca.nodes.ExampleService |
| 40 | properties: |
| 41 | view_url: /admin/exampleservice/exampleservice/$id$/ |
| 42 | kind: exampleservice |
| 43 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 44 | private_key_fn: /opt/xos/synchronizers/exampleservice/exampleservice_private_key |
| 45 | service_message: hello |
| 46 | artifacts: |
| 47 | pubkey: /opt/xos/synchronizers/exampleservice/exampleservice_public_key |
| 48 | |
| 49 | exampletenant1: |
| 50 | type: tosca.nodes.ExampleTenant |
| 51 | properties: |
| 52 | tenant_message: world |
| 53 | requirements: |
| 54 | - tenant: |
| 55 | node: service_example |
| 56 | relationship: tosca.relationships.TenantOfService |