Scott Baker | 79d9329 | 2016-07-18 17:23:53 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup the ExampleService on the pod |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | - custom_types/exampleservice.yaml |
| 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | |
| 12 | Private: |
| 13 | type: tosca.nodes.NetworkTemplate |
| 14 | |
| 15 | management: |
| 16 | type: tosca.nodes.network.Network.XOS |
| 17 | properties: |
| 18 | no-create: true |
| 19 | no-delete: true |
| 20 | no-update: true |
| 21 | |
| 22 | service#vrouter: |
| 23 | type: tosca.nodes.Service |
| 24 | properties: |
| 25 | no-create: true |
| 26 | no-delete: true |
| 27 | no-update: true |
| 28 | |
| 29 | exampleservice-public: |
| 30 | type: tosca.nodes.network.Network |
| 31 | properties: |
| 32 | ip_version: 4 |
| 33 | requirements: |
| 34 | - network_template: |
| 35 | node: Private |
| 36 | relationship: tosca.relationships.UsesNetworkTemplate |
| 37 | - owner: |
| 38 | node: mysite_exampleservice |
| 39 | relationship: tosca.relationships.MemberOfSlice |
| 40 | - connection: |
| 41 | node: mysite_exampleservice |
| 42 | relationship: tosca.relationships.ConnectsToSlice |
| 43 | - vrouter_tenant: |
| 44 | node: service#vrouter |
| 45 | relationship: tosca.relationships.TenantOfService |
| 46 | |
| 47 | mysite: |
| 48 | type: tosca.nodes.Site |
| 49 | |
| 50 | trusty-server-multi-nic: |
| 51 | type: tosca.nodes.Image |
| 52 | |
| 53 | mysite_exampleservice: |
| 54 | description: This slice holds the ExampleService |
| 55 | type: tosca.nodes.Slice |
| 56 | properties: |
| 57 | network: noauto |
| 58 | requirements: |
| 59 | - site: |
| 60 | node: mysite |
| 61 | relationship: tosca.relationships.MemberOfSite |
| 62 | - management: |
| 63 | node: management |
| 64 | relationship: tosca.relationships.ConnectsToNetwork |
| 65 | - exmapleserver: |
| 66 | node: service#exampleservice |
| 67 | relationship: tosca.relationships.MemberOfService |
| 68 | - image: |
| 69 | node: trusty-server-multi-nic |
| 70 | relationship: tosca.relationships.DefaultImage |
| 71 | |
| 72 | service#exampleservice: |
| 73 | type: tosca.nodes.ExampleService |
| 74 | requirements: |
| 75 | - management: |
| 76 | node: management |
| 77 | relationship: tosca.relationships.UsesNetwork |
| 78 | properties: |
| 79 | view_url: /admin/exampleservice/exampleservice/$id$/ |
| 80 | kind: exampleservice |
| 81 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 82 | private_key_fn: /opt/xos/services/exampleservice/keys/exampleservice_rsa |
| 83 | service_message: hello |
| 84 | artifacts: |
| 85 | pubkey: /opt/xos/services/exampleservice/keys/exampleservice_rsa.pub |
| 86 | |
| 87 | tenant#exampletenant1: |
| 88 | type: tosca.nodes.ExampleTenant |
| 89 | properties: |
| 90 | tenant_message: world |
| 91 | requirements: |
| 92 | - tenant: |
| 93 | node: service#exampleservice |
| 94 | relationship: tosca.relationships.TenantOfService |