blob: dc154aedd9d826b1cb07d88febfbf9fa557ade2b [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +000019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: Setup CORD-related services -- vOLT, vCPE, vBNG.
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/monitoring_tosca_types.yaml
26
27topology_template:
28 node_templates:
29 service_ceilometer:
30 type: tosca.nodes.CeilometerService
31 requirements:
32 properties:
33 view_url: /admin/monitoring/ceilometerservice/$id$/
34 kind: ceilometer
35 ceilometer_enable_pub_sub: true
36 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
37 private_key_fn: /opt/xos/services/monitoring/keys/monitoringservice_rsa
38 artifacts:
39 pubkey: /opt/xos/services/monitoring/keys/monitoringservice_rsa.pub
40
41# service_sflow:
42# type: tosca.nodes.SFlowService
43# requirements:
44# properties:
45# view_url: /admin/monitoring/sflowservice/$id$/
46# kind: sflow
47# sflow_port: 6343
48# sflow_api_port: 33333
49
50 Private:
51 type: tosca.nodes.NetworkTemplate
52
53 management:
54 type: tosca.nodes.network.Network.XOS
55 properties:
56 no-create: true
57 no-delete: true
58 no-update: true
59
60# ceilometer_network:
61# type: tosca.nodes.network.Network.XOS
62# properties:
63# ip_version: 4
64# labels: ceilometer_client_access
65# requirements:
66# - network_template:
67# node: Private
68# relationship: tosca.relationships.UsesNetworkTemplate
69# - owner:
70# node: {{ site_name }}_ceilometer
71# relationship: tosca.relationships.MemberOfSlice
72# - connection:
73# node: {{ site_name }}_ceilometer
74# relationship: tosca.relationships.ConnectsToSlice
75
76 {{ site_name }}:
77 type: tosca.nodes.Site
78
79 trusty-server-multi-nic:
80 type: tosca.nodes.Image
81
82 ceilometer-trusty-server-multi-nic:
83 type: tosca.nodes.Image
84
85 ceilometer-service-trusty-server-multi-nic:
86 type: tosca.nodes.Image
87
88 m1.small:
89 type: tosca.nodes.Flavor
90
91 {{ site_name }}_ceilometer:
92 description: Ceilometer Proxy Slice
93 type: tosca.nodes.Slice
94 requirements:
95 - ceilometer_service:
96 node: service_ceilometer
97 relationship: tosca.relationships.MemberOfService
98 - site:
99 node: {{ site_name }}
100 relationship: tosca.relationships.MemberOfSite
101 - default_image:
102 node: ceilometer-trusty-server-multi-nic
103 relationship: tosca.relationships.DefaultImage
104 - management:
105 node: management
106 relationship: tosca.relationships.ConnectsToNetwork
107 - m1.small:
108 node: m1.small
109 relationship: tosca.relationships.DefaultFlavor
110
111 # Virtual machines
112 ceilometer_service_instance:
113 type: tosca.nodes.Compute
114 capabilities:
115 # Host container properties
116 host:
117 properties:
118 num_cpus: 2
119 disk_size: 40 GB
120 mem_size: 4 GB
121 requirements:
122 - slice:
123 node: {{ site_name }}_ceilometer
124 relationship: tosca.relationships.MemberOfSlice
125 - image:
126 node: ceilometer-service-trusty-server-multi-nic
127 relationship: tosca.relationships.UsesImage
128
129# {{ site_name }}_sflow:
130# description: Slice for sFlow service
131# type: tosca.nodes.Slice
132# requirements:
133# - sflow_service:
134# node: service_sflow
135# relationship: tosca.relationships.MemberOfService
136# - site:
137# node: {{ site_name }}
138# relationship: tosca.relationships.MemberOfSite
139
140# MOVING this section to monitoringtenant.yaml
141# my_ceilometer_tenant:
142# description: Ceilometer Service default Tenant
143# type: tosca.nodes.CeilometerTenant
144# requirements:
145# - provider_service:
146# node: service_ceilometer
147# relationship: tosca.relationships.MemberOfService
148# - dependency:
149# node: ceilometer_service_instance
150# relationship: tosca.relationships.DependsOn
151
152 # Virtual machines
153# sflow_service_instance:
154# type: tosca.nodes.Compute
155# capabilities:
156# # Host container properties
157# host:
158# properties:
159# num_cpus: 1
160# disk_size: 10 GB
161# mem_size: 4 MB
162# # Guest Operating System properties
163# os:
164# properties:
165# # host Operating System image properties
166# architecture: x86_64
167# type: linux
168# distribution: Ubuntu
169# version: 14.10
170# requirements:
171# - slice:
172# node: {{ site_name }}_sflow
173# relationship: tosca.relationships.MemberOfSlice
174
175# MOVING the below sections to monitoringtenant.yaml
176# Ceilometer:
177# type: tosca.nodes.DashboardView
178# properties:
179# url: template:xosCeilometerDashboard
180# Tenant:
181# type: tosca.nodes.DashboardView
182# properties:
183# no-create: true
184# no-update: true
185# no-delete: true
186#
187# padmin@vicci.org:
188# type: tosca.nodes.User
189# properties:
190# firstname: XOS
191# lastname: admin
192# is_admin: true
193# requirements:
194# - tenant_dashboard:
195# node: Tenant
196# relationship: tosca.relationships.UsesDashboard
197# - ceilometer_dashboard:
198# node: Ceilometer
199# relationship: tosca.relationships.UsesDashboard