blob: 614290511805053edcd0ecef11d0626c130e095a [file] [log] [blame]
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup CORD-related services -- vOLT, vCPE, vBNG.
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/monitoring_tosca_types.yaml
8
9topology_template:
10 node_templates:
11 service_ceilometer:
12 type: tosca.nodes.CeilometerService
13 requirements:
14 properties:
15 view_url: /admin/monitoring/ceilometerservice/$id$/
16 kind: ceilometer
17 ceilometer_enable_pub_sub: true
18 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
19 private_key_fn: /opt/xos/services/monitoring/keys/monitoringservice_rsa
20 artifacts:
21 pubkey: /opt/xos/services/monitoring/keys/monitoringservice_rsa.pub
22
23# service_sflow:
24# type: tosca.nodes.SFlowService
25# requirements:
26# properties:
27# view_url: /admin/monitoring/sflowservice/$id$/
28# kind: sflow
29# sflow_port: 6343
30# sflow_api_port: 33333
31
32 Private:
33 type: tosca.nodes.NetworkTemplate
34
35 management:
36 type: tosca.nodes.network.Network.XOS
37 properties:
38 no-create: true
39 no-delete: true
40 no-update: true
41
42# ceilometer_network:
43# type: tosca.nodes.network.Network.XOS
44# properties:
45# ip_version: 4
46# labels: ceilometer_client_access
47# requirements:
48# - network_template:
49# node: Private
50# relationship: tosca.relationships.UsesNetworkTemplate
51# - owner:
52# node: {{ site_name }}_ceilometer
53# relationship: tosca.relationships.MemberOfSlice
54# - connection:
55# node: {{ site_name }}_ceilometer
56# relationship: tosca.relationships.ConnectsToSlice
57
58 {{ site_name }}:
59 type: tosca.nodes.Site
60
61 trusty-server-multi-nic:
62 type: tosca.nodes.Image
63
64 ceilometer-trusty-server-multi-nic:
65 type: tosca.nodes.Image
66
67 ceilometer-service-trusty-server-multi-nic:
68 type: tosca.nodes.Image
69
70 m1.small:
71 type: tosca.nodes.Flavor
72
73 {{ site_name }}_ceilometer:
74 description: Ceilometer Proxy Slice
75 type: tosca.nodes.Slice
76 requirements:
77 - ceilometer_service:
78 node: service_ceilometer
79 relationship: tosca.relationships.MemberOfService
80 - site:
81 node: {{ site_name }}
82 relationship: tosca.relationships.MemberOfSite
83 - default_image:
84 node: ceilometer-trusty-server-multi-nic
85 relationship: tosca.relationships.DefaultImage
86 - management:
87 node: management
88 relationship: tosca.relationships.ConnectsToNetwork
89 - m1.small:
90 node: m1.small
91 relationship: tosca.relationships.DefaultFlavor
92
93 # Virtual machines
94 ceilometer_service_instance:
95 type: tosca.nodes.Compute
96 capabilities:
97 # Host container properties
98 host:
99 properties:
100 num_cpus: 2
101 disk_size: 40 GB
102 mem_size: 4 GB
103 requirements:
104 - slice:
105 node: {{ site_name }}_ceilometer
106 relationship: tosca.relationships.MemberOfSlice
107 - image:
108 node: ceilometer-service-trusty-server-multi-nic
109 relationship: tosca.relationships.UsesImage
110
111# {{ site_name }}_sflow:
112# description: Slice for sFlow service
113# type: tosca.nodes.Slice
114# requirements:
115# - sflow_service:
116# node: service_sflow
117# relationship: tosca.relationships.MemberOfService
118# - site:
119# node: {{ site_name }}
120# relationship: tosca.relationships.MemberOfSite
121
122# MOVING this section to monitoringtenant.yaml
123# my_ceilometer_tenant:
124# description: Ceilometer Service default Tenant
125# type: tosca.nodes.CeilometerTenant
126# requirements:
127# - provider_service:
128# node: service_ceilometer
129# relationship: tosca.relationships.MemberOfService
130# - dependency:
131# node: ceilometer_service_instance
132# relationship: tosca.relationships.DependsOn
133
134 # Virtual machines
135# sflow_service_instance:
136# type: tosca.nodes.Compute
137# capabilities:
138# # Host container properties
139# host:
140# properties:
141# num_cpus: 1
142# disk_size: 10 GB
143# mem_size: 4 MB
144# # Guest Operating System properties
145# os:
146# properties:
147# # host Operating System image properties
148# architecture: x86_64
149# type: linux
150# distribution: Ubuntu
151# version: 14.10
152# requirements:
153# - slice:
154# node: {{ site_name }}_sflow
155# relationship: tosca.relationships.MemberOfSlice
156
157# MOVING the below sections to monitoringtenant.yaml
158# Ceilometer:
159# type: tosca.nodes.DashboardView
160# properties:
161# url: template:xosCeilometerDashboard
162# Tenant:
163# type: tosca.nodes.DashboardView
164# properties:
165# no-create: true
166# no-update: true
167# no-delete: true
168#
169# padmin@vicci.org:
170# type: tosca.nodes.User
171# properties:
172# firstname: XOS
173# lastname: admin
174# is_admin: true
175# requirements:
176# - tenant_dashboard:
177# node: Tenant
178# relationship: tosca.relationships.UsesDashboard
179# - ceilometer_dashboard:
180# node: Ceilometer
181# relationship: tosca.relationships.UsesDashboard