blob: 410212775152f8341afd607d35bc17e532c8251b [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: Setup the ExampleService on the pod
imports:
- custom_types/xos.yaml
- custom_types/exampleservice.yaml
topology_template:
node_templates:
m1.small:
type: tosca.nodes.Flavor
Private:
type: tosca.nodes.NetworkTemplate
management:
type: tosca.nodes.network.Network.XOS
properties:
no-create: true
no-delete: true
no-update: true
public:
type: tosca.nodes.network.Network.XOS
properties:
no-create: true
no-delete: true
no-update: true
service#vrouter:
type: tosca.nodes.Service
properties:
no-create: true
no-delete: true
no-update: true
mysite:
type: tosca.nodes.Site
trusty-server-multi-nic:
type: tosca.nodes.Image
mysite_exampleservice:
description: This slice holds the ExampleService
type: tosca.nodes.Slice
properties:
network: noauto
requirements:
- site:
node: mysite
relationship: tosca.relationships.MemberOfSite
- management:
node: management
relationship: tosca.relationships.ConnectsToNetwork
- public:
node: public
relationship: tosca.relationships.ConnectsToNetwork
- exmapleserver:
node: service#exampleservice
relationship: tosca.relationships.MemberOfService
- image:
node: trusty-server-multi-nic
relationship: tosca.relationships.DefaultImage
- default_flavor:
node: m1.small
relationship: tosca.relationships.DefaultFlavor
service#exampleservice:
type: tosca.nodes.ExampleService
requirements:
- management:
node: management
relationship: tosca.relationships.UsesNetwork
properties:
view_url: /admin/exampleservice/exampleservice/$id$/
kind: exampleservice
public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
private_key_fn: /opt/xos/services/exampleservice/keys/exampleservice_rsa
service_message: hello
artifacts:
pubkey: /opt/xos/services/exampleservice/keys/exampleservice_rsa.pub
tenant#exampletenant1:
type: tosca.nodes.ExampleTenant
properties:
tenant_message: world
requirements:
- tenant:
node: service#exampleservice
relationship: tosca.relationships.TenantOfService
- dependency:
node: mysite_exampleservice
relationship: tosca.relationships.DependsOn