blob: 43ca71a49bc07d2195f268a86b5e890f2597a1e1 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_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:
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000123 view_url: /admin/monitoring/ceilometerservice/$id$/
Scott Baker50421662016-06-27 22:09:48 -0700124 kind: ceilometer
125 ceilometer_pub_sub_url: http://130.127.133.58:4455/
126 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000127 private_key_fn: /opt/xos/services/monitoring/keys/monitoringservice_rsa
Scott Baker50421662016-06-27 22:09:48 -0700128 artifacts:
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000129 pubkey: /opt/xos/services/monitoring/keys/monitoringservice_rsa.pub
Scott Baker50421662016-06-27 22:09:48 -0700130
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000131# service_sflow:
132# type: tosca.nodes.SFlowService
133# requirements:
134# properties:
135# view_url: /admin/ceilometer/sflowservice/$id$/
136# kind: sflow
137# sflow_port: 6343
138# sflow_api_port: 33333
Scott Baker50421662016-06-27 22:09:48 -0700139
140 Private:
141 type: tosca.nodes.NetworkTemplate
142#
143# ceilometer_network:
144# type: tosca.nodes.network.Network.XOS
145# properties:
146# ip_version: 4
147# labels: ceilometer_client_access
148# requirements:
149# - network_template:
150# node: Private
151# relationship: tosca.relationships.UsesNetworkTemplate
152# - owner:
153# node: mysite_ceilometer
154# relationship: tosca.relationships.MemberOfSlice
155# - connection:
156# node: mysite_ceilometer
157# relationship: tosca.relationships.ConnectsToSlice
158
159 mysite:
160 type: tosca.nodes.Site
161
162 trusty-server-multi-nic:
163 type: tosca.nodes.Image
164
165 ceilometer-trusty-server-multi-nic:
166 type: tosca.nodes.Image
167
168 m1.small:
169 type: tosca.nodes.Flavor
170
171 mysite_ceilometer:
172 description: Ceilometer Proxy Slice
173 type: tosca.nodes.Slice
174 requirements:
175 - ceilometer_service:
176 node: service_ceilometer
177 relationship: tosca.relationships.MemberOfService
178 - site:
179 node: mysite
180 relationship: tosca.relationships.MemberOfSite
181 - default_image:
182 node: ceilometer-trusty-server-multi-nic
183 relationship: tosca.relationships.DefaultImage
184 - m1.small:
185 node: m1.small
186 relationship: tosca.relationships.DefaultFlavor
Scott Baker50421662016-06-27 22:09:48 -0700187
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000188# mysite_sflow:
189# description: Slice for sFlow service
190# type: tosca.nodes.Slice
191# requirements:
192# - sflow_service:
193# node: service_sflow
194# relationship: tosca.relationships.MemberOfService
195# - site:
196# node: mysite
197# relationship: tosca.relationships.MemberOfSite
198# - default_image:
199# node: trusty-server-multi-nic
200# relationship: tosca.relationships.DefaultImage
201# - m1.small:
202# node: m1.small
203# relationship: tosca.relationships.DefaultFlavor
204# properties:
205# max_instances: 2
Scott Baker50421662016-06-27 22:09:48 -0700206
207 my_ceilometer_tenant:
208 description: Ceilometer Service default Tenant
209 type: tosca.nodes.CeilometerTenant
210 requirements:
211 - provider_service:
212 node: service_ceilometer
213 relationship: tosca.relationships.MemberOfService
214
Srikanth Vavilapallif95cd5b2016-07-10 19:08:04 +0000215# # Virtual machines
216# sflow_service_instance:
217# type: tosca.nodes.Compute
218# capabilities:
219# # Host container properties
220# host:
221# properties:
222# num_cpus: 1
223# disk_size: 10 GB
224# mem_size: 4 MB
225# # Guest Operating System properties
226# os:
227# properties:
228# # host Operating System image properties
229# architecture: x86_64
230# type: linux
231# distribution: Ubuntu
232# version: 14.10
233# requirements:
234# - slice:
235# node: mysite_sflow
236# relationship: tosca.relationships.MemberOfSlice
Scott Baker50421662016-06-27 22:09:48 -0700237
238 Ceilometer:
239 type: tosca.nodes.DashboardView
240 properties:
241 url: template:xosCeilometerDashboard
242 Tenant:
243 type: tosca.nodes.DashboardView
244 properties:
245 no-create: true
246 no-update: true
247 no-delete: true
248
249 padmin@vicci.org:
250 type: tosca.nodes.User
251 properties:
252 firstname: XOS
253 lastname: admin
254 is_admin: true
255 requirements:
256 - tenant_dashboard:
257 node: Tenant
258 relationship: tosca.relationships.UsesDashboard
259 - ceilometer_dashboard:
260 node: Ceilometer
261 relationship: tosca.relationships.UsesDashboard