blob: ae3043aebb9003dea3e0488cc1401082457e6aab [file] [log] [blame]
mcordbef65082017-05-24 16:05:07 -07001---
2# vars/cord-pod.yaml
3# Configures an M-CORD pod
4
5# site configuration
6site_name: mysite
7site_humanname: MySite
8deployment_type: MyDeployment
9
10xos_admin_user: xosadmin@opencord.org
11xos_admin_pass: "{{ lookup('password', 'credentials/xosadmin@opencord.org chars=ascii_letters,digits') }}"
12xos_admin_first: XOS
13xos_admin_last: Admin
14
15xos_users: []
16
17use_vtn: True
18
19xos_tosca_config_templates:
20 - openstack.yaml
21 - vtn-service.yaml
22 - fabric-service.yaml
23 - management-net.yaml
Omar Abdelkader525bbce2017-07-17 11:09:25 -060024 - mcord-services.yaml # should unify this with services.yaml.j2 eventually
Omar Abdelkadercf794522017-07-13 19:44:06 -060025 - shared-net.yaml
26 - wan-net.yaml
27 - vsg-net.yaml
mcordbef65082017-05-24 16:05:07 -070028# - public-net.yaml
29# - volt-devices.yaml
30# - vrouter.yaml
31
32xos_other_templates:
33 - fabric-network-cfg.json
34
35cord_profile_dir: "{{ ansible_user_dir + '/cord_profile' }}"
36
37xos_docker_volumes:
38 - host: "{{ cord_profile_dir }}/images"
39 container: /opt/xos/images
40
Pingping Lin3d4d8ea2017-06-15 16:24:16 -070041# GUI Config [new GUI]
42gui_project_name: "M-CORD"
43gui_background: "cord-bg.jpg" # TODO find mcord image
44
mcordbef65082017-05-24 16:05:07 -070045# GUI branding [OLD GUI to be removed]
46gui_branding_name: "MCORD"
47gui_branding_icon: "/static/mcord-logo.png"
48gui_branding_favicon: "/static/mcord-favicon.png"
49gui_branding_bg: "/static/mcord-bg.jpg"
50
51enabled_gui_extensions: []
52#enabled_gui_extensions:
53# - name: vtr
54# path: orchestration/xos_services/vtr/xos/gui
55# - name: rcord
56# path: orchestration/profiles/rcord/xos/gui
57
58# paths defined in manifest/default.xml
59xos_services:
60 - name: vtn
61 path: onos-apps/apps/vtn
62 keypair: vsg_rsa
63 synchronizer: true
64 - name: openstack
65 path: orchestration/xos_services/openstack
66 synchronizer: true
67 - name: onos
68 path: orchestration/xos_services/onos-service
69 keypair: onos_rsa
70 synchronizer: true
71 - name: fabric
72 path: orchestration/xos_services/fabric
73 synchronizer: true
Yunpeng Zhang45847142017-07-19 00:53:27 -040074 - name: vbbu
75 path: orchestration/xos_services/vbbu
76 keypair: mcord_rsa
77 synchronizer: true
78 - name: vmme
79 path: orchestration/xos_services/vmme
80 keypair: mcord_rsa
81 synchronizer: true
82 - name: vsgw
83 path: orchestration/xos_services/vsgw
84 keypair: mcord_rsa
85 synchronizer: true
Omar Abdelkadercf794522017-07-13 19:44:06 -060086# - name: vpgwc
87# path: orchestration/xos_services/vpgwc
mcordbef65082017-05-24 16:05:07 -070088# keypair: mcord_rsa
89# synchronizer: true
90# needed onboarding synchronizer doesn't require service code to be present when started
91 - name: exampleservice
92 path: orchestration/xos_services/exampleservice
93 keypair: exampleservice_rsa
94 synchronizer: true
95 - name: monitoring
96 path: orchestration/xos_services/monitoring
97 keypair: monitoringservice_rsa
98 synchronizer: false
Omar Abdelkadercf794522017-07-13 19:44:06 -060099# - name: vhss
100# path: orchestration/xos_services/vhss
101# keypaird: mcord_rsa
102# synchronizer: true
mcordbef65082017-05-24 16:05:07 -0700103
104xos_service_sshkeys:
105 - name: onos_rsa
106 source_path: "~/.ssh/id_rsa"
107 - name: onos_rsa.pub
108 source_path: "~/.ssh/id_rsa.pub"
109 - name: mcord_rsa
110 source_path: "~/.ssh/id_rsa"
111 - name: mcord_rsa.pub
112 source_path: "~/.ssh/id_rsa.pub"
113# needed onboarding synchronizer doesn't require service code to be present when started
114 - name: exampleservice_rsa
115 source_path: "~/.ssh/id_rsa"
116 - name: exampleservice_rsa.pub
117 source_path: "~/.ssh/id_rsa.pub"
118 - name: monitoringservice_rsa
119 source_path: "~/.ssh/id_rsa"
120 - name: monitoringservice_rsa.pub
121 source_path: "~/.ssh/id_rsa.pub"
122
123# profile_library: "mcord"
124
125# VM networks/bridges on head
126virt_nets:
127 - name: mgmtbr
128 ipv4_prefix: 192.168.122
129 head_vms: true
130
131# site domain suffix
132site_suffix: cord.lab
133
134# resolv.conf settings
135dns_search:
136 - "{{ site_suffix }}"
137
138# SSL server certificate generation
139server_certs:
140 - cn: "keystone.{{ site_suffix }}"
141 subj: "/C=US/ST=California/L=Menlo Park/O=ON.Lab/OU=Test Deployment/CN=keystone.{{ site_suffix }}"
142 altnames:
143 - "DNS:keystone.{{ site_suffix }}"
144 - "DNS:keystone"
145 - cn: "xos-core.{{ site_suffix }}"
146 subj: "/C=US/ST=California/L=Menlo Park/O=ON.Lab/OU=Test Deployment/CN=xos-core.{{ site_suffix }}"
147 altnames:
148 - "DNS:xos-core.{{ site_suffix }}"
149
150# NSD/Unbound settings
151nsd_zones:
152 - name: "{{ site_suffix }}"
153 ipv4_first_octets: 192.168.122
154 name_reverse_unbound: "168.192.in-addr.arpa"
155 soa: ns1
156 ns:
157 - { name: ns1 }
158 nodelist: head_vm_list
159 aliases:
160 - { name: "ns1" , dest: "head" }
161 - { name: "ns" , dest: "head" }
162 - { name: "apt-cache" , dest: "head" }
163
164name_on_public_interface: head
165
166# VTN network configuration
167management_network_cidr: 172.27.0.0/24
168management_network_ip: 172.27.0.1/24
169data_plane_ip: 10.168.0.253/24
170
171# CORD ONOS app version
172cord_app_version: 1.2-SNAPSHOT
173
174# If true, unbound listens on the head node's `ansible_default_ipv4` interface
175unbound_listen_on_default: True
176
177# turn this on, or override it when running the playbook with --extra-vars="on_cloudlab=True"
178on_cloudlab: False
179
180# turn this off, or override when running playbook with --extra-vars="on_maas=False"
181on_maas: True
182
183run_dist_upgrade: False
184
185maas_node_key: /etc/maas/ansible/id_rsa
186
187openstack_version: kilo
188
189juju_config_name: cord
190
191juju_config_path: /usr/local/src/juju_config.yml
192
193# Pull ONOS from local Docker registry rather than Docker Hub
194onos_docker_image: "docker-registry:5000/onosproject/onos:candidate"
195
196# Pull XOS from local Docker registry
197xos_docker_image: "docker-registry:5000/xosproject/xos:candidate"
198
199keystone_admin_password: "{{ lookup('password', 'credentials/cord_keystone_admin chars=ascii_letters,digits') }}"
200
201deployment_flavors:
202 - m1.small
203 - m1.medium
204 - m1.large
205 - m1.xlarge
206
207charm_versions:
208 ceilometer: "cs:trusty/ceilometer-17"
209 ceilometer-agent: "cs:trusty/ceilometer-agent-13"
210 glance: "cs:trusty/glance-28"
211 keystone: "cs:trusty/keystone-33"
212 mongodb: "cs:trusty/mongodb-33"
213 percona-cluster: "cs:trusty/percona-cluster-31"
214 nagios: "cs:trusty/nagios-10"
215 neutron-api: "cs:~cordteam/trusty/neutron-api-5"
216 nova-cloud-controller: "cs:trusty/nova-cloud-controller-64"
217 nova-compute: "cs:~cordteam/trusty/nova-compute-2"
218 nrpe: "cs:trusty/nrpe-4"
219 ntp: "cs:trusty/ntp-14"
220 openstack-dashboard: "cs:trusty/openstack-dashboard-19"
221 rabbitmq-server: "cs:trusty/rabbitmq-server-42"
222
223head_vm_list: []
224
225head_lxd_list:
226 - name: "juju-1"
227 service: "juju"
228 aliases:
229 - "juju"
230 ipv4_last_octet: 10
231
232 - name: "ceilometer-1"
233 service: "ceilometer"
234 aliases:
235 - "ceilometer"
236 ipv4_last_octet: 20
237 forwarded_ports:
238 - { ext: 8777, int: 8777 }
239
240 - name: "glance-1"
241 service: "glance"
242 aliases:
243 - "glance"
244 ipv4_last_octet: 30
245 forwarded_ports:
246 - { ext: 9292, int: 9292 }
247
248 - name: "keystone-1"
249 service: "keystone"
250 aliases:
251 - "keystone"
252 ipv4_last_octet: 40
253 forwarded_ports:
254 - { ext: 35357, int: 35357 }
255 - { ext: 4990, int: 4990 }
256 - { ext: 5000, int: 5000 }
257
258 - name: "percona-cluster-1"
259 service: "percona-cluster"
260 aliases:
261 - "percona-cluster"
262 ipv4_last_octet: 50
263
264 - name: "nagios-1"
265 service: "nagios"
266 aliases:
267 - "nagios"
268 ipv4_last_octet: 60
269 forwarded_ports:
270 - { ext: 3128, int: 80 }
271
272 - name: "neutron-api-1"
273 service: "neutron-api"
274 aliases:
275 - "neutron-api"
276 ipv4_last_octet: 70
277 forwarded_ports:
278 - { ext: 9696, int: 9696 }
279
280 - name: "nova-cloud-controller-1"
281 service: "nova-cloud-controller"
282 aliases:
283 - "nova-cloud-controller"
284 ipv4_last_octet: 80
285 forwarded_ports:
286 - { ext: 8774, int: 8774 }
287
288 - name: "openstack-dashboard-1"
289 service: "openstack-dashboard"
290 aliases:
291 - "openstack-dashboard"
292 ipv4_last_octet: 90
293 forwarded_ports:
294 - { ext: 8080, int: 80 }
295
296 - name: "rabbitmq-server-1"
297 service: "rabbitmq-server"
298 aliases:
299 - "rabbitmq-server"
300 ipv4_last_octet: 100
301
302 - name: "mongodb-1"
303 service: "mongodb"
304 aliases:
305 - "mongodb"
306 ipv4_last_octet: 110
307
308lxd_service_list:
309 - ceilometer
310 - glance
311 - keystone
312 - mongodb
313 - nagios
314 - neutron-api
315 - nova-cloud-controller
316 - openstack-dashboard
317 - percona-cluster
318 - rabbitmq-server
319
320standalone_service_list:
321 - ntp
322 - nrpe
323 - ceilometer-agent
324
325
326service_relations:
327 - name: keystone
328 relations: [ "percona-cluster", "nrpe", ]
329
330 - name: nova-cloud-controller
331 relations: [ "percona-cluster", "rabbitmq-server", "glance", "keystone", "nrpe", ]
332
333 - name: glance
334 relations: [ "percona-cluster", "keystone", "nrpe", ]
335
336 - name: neutron-api
337 relations: [ "keystone", "percona-cluster", "rabbitmq-server", "nova-cloud-controller", "nrpe", ]
338
339 - name: openstack-dashboard
340 relations: [ "keystone", "nrpe", ]
341
342 - name: nagios
343 relations: [ "nrpe", ]
344
345 - name: "percona-cluster:juju-info"
346 relations: [ "nrpe:general-info", ]
347
348 - name: rabbitmq-server
349 relations: [ "nrpe", ]
350
351 - name: ceilometer
352 relations: [ "mongodb", "rabbitmq-server", "nagios", "nrpe", ]
353
354 - name: "ceilometer:identity-service"
355 relations: [ "keystone:identity-service", ]
356
357 - name: "ceilometer:ceilometer-service"
358 relations: [ "ceilometer-agent:ceilometer-service", ]
359
360
361compute_relations:
362 - name: nova-compute
363 relations: [ "ceilometer-agent", "glance", "nova-cloud-controller", "nagios", "nrpe", ]
364
365 - name: "nova-compute:shared-db"
366 relations: [ "percona-cluster:shared-db", ]
367
368 - name: "nova-compute:amqp"
369 relations: [ "rabbitmq-server:amqp", ]
370
371 - name: ntp
372 relations: [ "nova-compute", ]
373
374
375xos_images:
376 - name: "trusty-server-multi-nic"
377 url: "http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img.20170201"
378 checksum: "sha256:ebf007ba3ec1043b7cd011fc6668e2a1d1d4c69c41071e8513ab355df7a057cb"
379
Pingping Line3b18f42017-07-11 15:03:54 -0700380 # How to add local image and dynamically load it into existing XOS
381 # add your private image such as mcord-local-image-name.img to /opt/iamges/ on 'corddev' VM inside cord in a box
382 # uncomment the code blow,and run those two commands:
383 # on corddev VM: vagrant@corddev:/cord/build$ ./gradlew -PdeployConfig=config/mcord_in_a_box.yml PIcreateProfile
384 # on prod VM: compute-node-refresh
385
386 #- name: "mcord-local-image-name"
387 # url: "file://localhost/opt/images/mcord-local-image-name.img"
388 # checksum: "sha256:ebf007ba3ec1043b7cd011fc6668e2a1d1d4c69c41071e8513ab355df7a057cb"
389
mcordbef65082017-05-24 16:05:07 -0700390 - name: "vsg-1.1"
391 url: "http://www.vicci.org/cord/vsg-1.1.img"
392 checksum: "sha256:16b0beb6778aed0f5feecb05f8d5750e6c262f98e6011e99ddadf7d46a177b6f"
393
394 - name: "ceilometer-trusty-server-multi-nic"
395 url: "http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2"
396 checksum: "sha256:b77ef8d692b640568dea13df99fe1dfcb1f4bb4ac05408db9ff77399b34f754f"
397
398 - name: "ceilometer-service-trusty-server-multi-nic"
399 url: "http://www.vicci.org/cord/ceilometer-service-trusty-server-multi-nic.compressed.qcow2.20170131"
400 checksum: "sha256:f0341e283f0f2cb8f70cd1a6347e0081c9c8492ef34eb6397c657ef824800d4f"