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