blob: 77e4c4a447b4598c5f4cf0800a4b7dc329e8d3d7 [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
Scott Baker83610442016-10-18 15:53:09 -070032 template#private_wan:
33 type: tosca.nodes.NetworkTemplate
34 properties:
35 visibility: private
36 translation: none
37 vtn_kind: public
38
Scott Baker50421662016-06-27 22:09:48 -070039 exampleservice-public:
40 type: tosca.nodes.network.Network
41 properties:
42 ip_version: 4
43 requirements:
44 - network_template:
Scott Baker83610442016-10-18 15:53:09 -070045 node: template#private_wan
Scott Baker50421662016-06-27 22:09:48 -070046 relationship: tosca.relationships.UsesNetworkTemplate
47 - owner:
48 node: mysite_exampleservice
49 relationship: tosca.relationships.MemberOfSlice
50 - connection:
51 node: mysite_exampleservice
52 relationship: tosca.relationships.ConnectsToSlice
53 - vrouter_tenant:
54 node: service#vrouter
55 relationship: tosca.relationships.TenantOfService
56
57 mysite:
58 type: tosca.nodes.Site
59
60 trusty-server-multi-nic:
61 type: tosca.nodes.Image
62
63 mysite_exampleservice:
64 description: This slice holds the ExampleService
65 type: tosca.nodes.Slice
66 properties:
67 network: noauto
68 requirements:
69 - site:
70 node: mysite
71 relationship: tosca.relationships.MemberOfSite
72 - management:
73 node: management
74 relationship: tosca.relationships.ConnectsToNetwork
75 - exmapleserver:
76 node: service#exampleservice
77 relationship: tosca.relationships.MemberOfService
78 - image:
79 node: trusty-server-multi-nic
80 relationship: tosca.relationships.DefaultImage
Scott Baker5e65b902016-10-12 10:00:15 -070081 - default_flavor:
82 node: m1.small
83 relationship: tosca.relationships.DefaultFlavor
Scott Baker50421662016-06-27 22:09:48 -070084
85 service#exampleservice:
86 type: tosca.nodes.ExampleService
87 requirements:
88 - management:
89 node: management
90 relationship: tosca.relationships.UsesNetwork
91 properties:
92 view_url: /admin/exampleservice/exampleservice/$id$/
93 kind: exampleservice
94 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
95 private_key_fn: /opt/xos/services/exampleservice/keys/exampleservice_rsa
96 service_message: hello
97 artifacts:
98 pubkey: /opt/xos/services/exampleservice/keys/exampleservice_rsa.pub
99
100 tenant#exampletenant1:
101 type: tosca.nodes.ExampleTenant
102 properties:
103 tenant_message: world
104 requirements:
105 - tenant:
106 node: service#exampleservice
107 relationship: tosca.relationships.TenantOfService
Scott Baker5e65b902016-10-12 10:00:15 -0700108 - dependency:
109 node: mysite_exampleservice
110 relationship: tosca.relationships.DependsOn