blob: 14590912f9940ee52aec6a69280b1c1d35a44fae [file] [log] [blame]
Pingping Linc5bf2e52016-10-05 01:50:08 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup CORD-related services -- vOLT, vCPE, vBNG.
4
5imports:
6 - custom_types/xos.yaml
Pingping Lin74292aa2017-05-02 16:23:24 -07007 - custom_types/monitoring_tosca_types.yaml
Pingping Linc5bf2e52016-10-05 01:50:08 +00008
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_pub_sub_url: http://10.11.10.1:4455/
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: mysite_ceilometer
53# relationship: tosca.relationships.MemberOfSlice
54# - connection:
55# node: mysite_ceilometer
56# relationship: tosca.relationships.ConnectsToSlice
57
58 mysite:
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 mysite_ceilometer:
74 description: Ceilometer Proxy Slice
75 type: tosca.nodes.Slice
Pingping Lin74292aa2017-05-02 16:23:24 -070076 properties:
77 default_node: salty-interest
Pingping Linc5bf2e52016-10-05 01:50:08 +000078 requirements:
79 - ceilometer_service:
80 node: service_ceilometer
81 relationship: tosca.relationships.MemberOfService
82 - site:
83 node: mysite
84 relationship: tosca.relationships.MemberOfSite
85 - default_image:
86 node: ceilometer-trusty-server-multi-nic
87 relationship: tosca.relationships.DefaultImage
88 - management:
89 node: management
90 relationship: tosca.relationships.ConnectsToNetwork
91 - m1.small:
92 node: m1.small
93 relationship: tosca.relationships.DefaultFlavor
Pingping Linc5bf2e52016-10-05 01:50:08 +000094
95 # Virtual machines
96 ceilometer_service_instance:
97 type: tosca.nodes.Compute
98 capabilities:
99 # Host container properties
100 host:
101 properties:
Pingping Lin74292aa2017-05-02 16:23:24 -0700102 num_cpus: 2
Pingping Linc5bf2e52016-10-05 01:50:08 +0000103 disk_size: 20 GB
104 mem_size: 2 GB
105 requirements:
106 - slice:
107 node: mysite_ceilometer
108 relationship: tosca.relationships.MemberOfSlice
109 - image:
110 node: ceilometer-service-trusty-server-multi-nic
111 relationship: tosca.relationships.UsesImage
112
113# mysite_sflow:
114# description: Slice for sFlow service
115# type: tosca.nodes.Slice
116# requirements:
117# - sflow_service:
118# node: service_sflow
119# relationship: tosca.relationships.MemberOfService
120# - site:
121# node: mysite
122# relationship: tosca.relationships.MemberOfSite
123
124# MOVING this section to monitoringtenant.yaml
125# my_ceilometer_tenant:
126# description: Ceilometer Service default Tenant
127# type: tosca.nodes.CeilometerTenant
128# requirements:
129# - provider_service:
130# node: service_ceilometer
131# relationship: tosca.relationships.MemberOfService
132# - dependency:
133# node: ceilometer_service_instance
134# relationship: tosca.relationships.DependsOn
135
136 # Virtual machines
137# sflow_service_instance:
138# type: tosca.nodes.Compute
139# capabilities:
140# # Host container properties
141# host:
142# properties:
143# num_cpus: 1
144# disk_size: 10 GB
145# mem_size: 4 MB
146# # Guest Operating System properties
147# os:
148# properties:
149# # host Operating System image properties
150# architecture: x86_64
151# type: linux
152# distribution: Ubuntu
153# version: 14.10
154# requirements:
155# - slice:
156# node: mysite_sflow
157# relationship: tosca.relationships.MemberOfSlice
158
159# MOVING the below sections to monitoringtenant.yaml
160# Ceilometer:
161# type: tosca.nodes.DashboardView
162# properties:
163# url: template:xosCeilometerDashboard
164# Tenant:
165# type: tosca.nodes.DashboardView
166# properties:
167# no-create: true
168# no-update: true
169# no-delete: true
170#
171# padmin@vicci.org:
172# type: tosca.nodes.User
173# properties:
174# firstname: XOS
175# lastname: admin
176# is_admin: true
177# requirements:
178# - tenant_dashboard:
179# node: Tenant
180# relationship: tosca.relationships.UsesDashboard
181# - ceilometer_dashboard:
182# node: Ceilometer
183# relationship: tosca.relationships.UsesDashboard