blob: 874c577e11dde6ac6c89a279396044d03aa289a0 [file] [log] [blame]
Srikanth Vavilapallidf3c58d2016-02-15 01:23:41 -05001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup CORD-related services -- vOLT, vCPE, vBNG.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9 tosca.nodes.SFlowService:
10 derived_from: tosca.nodes.Root
11 description: >
12 XOS SFlow Collection Service
13 capabilities:
14 scalable:
15 type: tosca.capabilities.Scalable
16 service:
17 type: tosca.capabilities.xos.Service
18 properties:
19 kind:
20 type: string
21 default: generic
22 description: Type of service.
23 view_url:
24 type: string
25 required: false
26 description: URL to follow when icon is clicked in the Service Directory.
27 icon_url:
28 type: string
29 required: false
30 description: ICON to display in the Service Directory.
31 enabled:
32 type: boolean
33 default: true
34 published:
35 type: boolean
36 default: true
37 description: If True then display this Service in the Service Directory.
38 public_key:
39 type: string
40 required: false
41 description: Public key to install into Instances to allows Services to SSH into them.
42 private_key_fn:
43 type: string
44 required: false
45 description: Location of private key file
46 versionNumber:
47 type: string
48 required: false
49 description: Version number of Service.
50 sflow_port:
51 type: integer
52 required: false
53 default: 6343
54 description: sFlow listening port
55 sflow_api_port:
56 type: integer
57 required: false
58 default: 33333
59 description: sFlow publish subscribe api listening port
60
61 tosca.nodes.CeilometerService:
62 derived_from: tosca.nodes.Root
63 description: >
64 XOS Ceilometer Service
65 capabilities:
66 scalable:
67 type: tosca.capabilities.Scalable
68 service:
69 type: tosca.capabilities.xos.Service
70 properties:
71 kind:
72 type: string
73 default: generic
74 description: Type of service.
75 view_url:
76 type: string
77 required: false
78 description: URL to follow when icon is clicked in the Service Directory.
79 icon_url:
80 type: string
81 required: false
82 description: ICON to display in the Service Directory.
83 enabled:
84 type: boolean
85 default: true
86 published:
87 type: boolean
88 default: true
89 description: If True then display this Service in the Service Directory.
90 public_key:
91 type: string
92 required: false
93 description: Public key to install into Instances to allows Services to SSH into them.
94 private_key_fn:
95 type: string
96 required: false
97 description: Location of private key file
98 versionNumber:
99 type: string
100 required: false
101 description: Version number of Service.
102 ceilometer_pub_sub_url:
103 type: string
104 required: false
105 description: REST URL of ceilometer PUB/SUB component
106
107 tosca.nodes.CeilometerTenant:
108 derived_from: tosca.nodes.Root
109 description: >
110 CORD: A Tenant of the Ceilometer Service.
111 properties:
112 kind:
113 type: string
114 default: generic
115 description: Kind of tenant
116
117topology_template:
118 node_templates:
119 service_ceilometer:
120 type: tosca.nodes.CeilometerService
121 requirements:
122 properties:
123 view_url: /admin/ceilometer/ceilometerservice/$id$/
124 kind: ceilometer
125 ceilometer_pub_sub_url: http://10.11.10.1:4455/
126# public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
127# artifacts:
128# pubkey: /opt/xos/synchronizers/vcpe/vcpe_public_key
129
130# service_sflow:
131# type: tosca.nodes.SFlowService
132# requirements:
133# properties:
134# view_url: /admin/ceilometer/sflowservice/$id$/
135# kind: sflow
136# sflow_port: 6343
137# sflow_api_port: 33333
138
139 Private:
140 type: tosca.nodes.NetworkTemplate
141
142 ceilometer_network:
143 type: tosca.nodes.network.Network.XOS
144 properties:
145 ip_version: 4
146 labels: ceilometer_client_access
147 requirements:
148 - network_template:
149 node: Private
150 relationship: tosca.relationships.UsesNetworkTemplate
151 - owner:
152 node: mysite_ceilometer
153 relationship: tosca.relationships.MemberOfSlice
154 - connection:
155 node: mysite_ceilometer
156 relationship: tosca.relationships.ConnectsToSlice
157
158 mysite:
159 type: tosca.nodes.Site
160
161 trusty-server-multi-nic:
162 type: tosca.nodes.Image
163
164 mysite_ceilometer:
165 description: Ceilometer Proxy Slice
166 type: tosca.nodes.Slice
167 requirements:
168 - ceilometer_service:
169 node: service_ceilometer
170 relationship: tosca.relationships.MemberOfService
171 - site:
172 node: mysite
173 relationship: tosca.relationships.MemberOfSite
174 - default_image:
175 node: trusty-server-multi-nic
176 relationship: tosca.relationships.DefaultImage
177 properties:
178 default_flavor: m1.medium
179 max_instances: 2
180
181# mysite_sflow:
182# description: Slice for sFlow service
183# type: tosca.nodes.Slice
184# requirements:
185# - sflow_service:
186# node: service_sflow
187# relationship: tosca.relationships.MemberOfService
188# - site:
189# node: mysite
190# relationship: tosca.relationships.MemberOfSite
191# properties:
192# default_flavor: m1.small
193# max_instances: 2
194
195 my_ceilometer_tenant:
196 description: Ceilometer Service default Tenant
197 type: tosca.nodes.CeilometerTenant
198 requirements:
199 - provider_service:
200 node: service_ceilometer
201 relationship: tosca.relationships.MemberOfService
202
203 # Virtual machines
204# sflow_service_instance:
205# type: tosca.nodes.Compute
206# capabilities:
207# # Host container properties
208# host:
209# properties:
210# num_cpus: 1
211# disk_size: 10 GB
212# mem_size: 4 MB
213# # Guest Operating System properties
214# os:
215# properties:
216# # host Operating System image properties
217# architecture: x86_64
218# type: linux
219# distribution: Ubuntu
220# version: 14.10
221# requirements:
222# - slice:
223# node: mysite_sflow
224# relationship: tosca.relationships.MemberOfSlice
225
226 Ceilometer:
227 type: tosca.nodes.DashboardView
228 properties:
229 url: template:xosCeilometerDashboard
230 Tenant:
231 type: tosca.nodes.DashboardView
232 properties:
233 no-create: true
234 no-update: true
235 no-delete: true
236
237 padmin@vicci.org:
238 type: tosca.nodes.User
239 properties:
240 firstname: XOS
241 lastname: admin
242 is_admin: true
243 requirements:
244 - tenant_dashboard:
245 node: Tenant
246 relationship: tosca.relationships.UsesDashboard
247 - ceilometer_dashboard:
248 node: Ceilometer
249 relationship: tosca.relationships.UsesDashboard