blob: 410212775152f8341afd607d35bc17e532c8251b [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup the ExampleService on the pod
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/exampleservice.yaml
8
9topology_template:
10 node_templates:
11
Scott Baker5e65b902016-10-12 10:00:15 -070012 m1.small:
13 type: tosca.nodes.Flavor
14
Scott Baker50421662016-06-27 22:09:48 -070015 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 Bavier37c853a2016-11-02 17:26:32 -040025 public:
26 type: tosca.nodes.network.Network.XOS
27 properties:
28 no-create: true
29 no-delete: true
30 no-update: true
31
Scott Baker50421662016-06-27 22:09:48 -070032 service#vrouter:
33 type: tosca.nodes.Service
34 properties:
35 no-create: true
36 no-delete: true
37 no-update: true
38
Scott Baker50421662016-06-27 22:09:48 -070039 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 Bavier37c853a2016-11-02 17:26:32 -040057 - public:
58 node: public
59 relationship: tosca.relationships.ConnectsToNetwork
Scott Baker50421662016-06-27 22:09:48 -070060 - exmapleserver:
61 node: service#exampleservice
62 relationship: tosca.relationships.MemberOfService
63 - image:
64 node: trusty-server-multi-nic
65 relationship: tosca.relationships.DefaultImage
Scott Baker5e65b902016-10-12 10:00:15 -070066 - default_flavor:
67 node: m1.small
68 relationship: tosca.relationships.DefaultFlavor
Scott Baker50421662016-06-27 22:09:48 -070069
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 Baker5e65b902016-10-12 10:00:15 -070093 - dependency:
94 node: mysite_exampleservice
95 relationship: tosca.relationships.DependsOn