blob: dd433cf6944aa1f2109cdd7039ac2e04d9927c5d [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
25 service#vrouter:
26 type: tosca.nodes.Service
27 properties:
28 no-create: true
29 no-delete: true
30 no-update: true
31
32 exampleservice-public:
33 type: tosca.nodes.network.Network
34 properties:
35 ip_version: 4
36 requirements:
37 - network_template:
38 node: Private
39 relationship: tosca.relationships.UsesNetworkTemplate
40 - owner:
41 node: mysite_exampleservice
42 relationship: tosca.relationships.MemberOfSlice
43 - connection:
44 node: mysite_exampleservice
45 relationship: tosca.relationships.ConnectsToSlice
46 - vrouter_tenant:
47 node: service#vrouter
48 relationship: tosca.relationships.TenantOfService
49
50 mysite:
51 type: tosca.nodes.Site
52
53 trusty-server-multi-nic:
54 type: tosca.nodes.Image
55
56 mysite_exampleservice:
57 description: This slice holds the ExampleService
58 type: tosca.nodes.Slice
59 properties:
60 network: noauto
61 requirements:
62 - site:
63 node: mysite
64 relationship: tosca.relationships.MemberOfSite
65 - management:
66 node: management
67 relationship: tosca.relationships.ConnectsToNetwork
68 - exmapleserver:
69 node: service#exampleservice
70 relationship: tosca.relationships.MemberOfService
71 - image:
72 node: trusty-server-multi-nic
73 relationship: tosca.relationships.DefaultImage
Scott Baker5e65b902016-10-12 10:00:15 -070074 - default_flavor:
75 node: m1.small
76 relationship: tosca.relationships.DefaultFlavor
Scott Baker50421662016-06-27 22:09:48 -070077
78 service#exampleservice:
79 type: tosca.nodes.ExampleService
80 requirements:
81 - management:
82 node: management
83 relationship: tosca.relationships.UsesNetwork
84 properties:
85 view_url: /admin/exampleservice/exampleservice/$id$/
86 kind: exampleservice
87 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
88 private_key_fn: /opt/xos/services/exampleservice/keys/exampleservice_rsa
89 service_message: hello
90 artifacts:
91 pubkey: /opt/xos/services/exampleservice/keys/exampleservice_rsa.pub
92
93 tenant#exampletenant1:
94 type: tosca.nodes.ExampleTenant
95 properties:
96 tenant_message: world
97 requirements:
98 - tenant:
99 node: service#exampleservice
100 relationship: tosca.relationships.TenantOfService
Scott Baker5e65b902016-10-12 10:00:15 -0700101 - dependency:
102 node: mysite_exampleservice
103 relationship: tosca.relationships.DependsOn