blob: 56675d61a3d5b804bf4c2435b76f97b0c3773966 [file] [log] [blame]
Scott Baker74065da2017-03-16 13:33:39 -07001---
2# vars/cord-pod.yaml
3# Configures an R-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
24 - cord-services.yaml # should unify this with services.yaml.j2 eventually
25 - public-net.yaml
26 - volt-devices.yaml
27 - vrouter.yaml
28
29xos_other_templates:
30 - fabric-network-cfg.json
31
32cord_profile_dir: "{{ ansible_user_dir + '/cord_profile' }}"
33
34xos_docker_volumes:
35 - host: "{{ cord_profile_dir }}/images"
36 container: /opt/xos/images
37
38# GUI branding
39gui_branding_name: "CORD"
40gui_branding_icon: "/static/cord-logo.png"
41gui_branding_favicon: "/static/cord-favicon.png"
42gui_branding_bg: "/static/cord-bg.jpg"
43
44# paths defined in manifest/default.xml
45xos_services:
46 - name: volt
47 path: onos-apps/apps/olt
48 - name: vtn
49 path: onos-apps/apps/vtn
Scott Baker2184a3b2017-03-16 22:28:48 -070050 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070051 - name: openstack
52 path: orchestration/xos_services/openstack
53 - name: onos
54 path: orchestration/xos_services/onos-service
Scott Baker2184a3b2017-03-16 22:28:48 -070055 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070056 - name: vrouter
57 path: orchestration/xos_services/vrouter
Scott Baker2184a3b2017-03-16 22:28:48 -070058 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070059 - name: vsg
60 path: orchestration/xos_services/vsg
Scott Baker2184a3b2017-03-16 22:28:48 -070061 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070062 - name: vtr
63 path: orchestration/xos_services/vtr
Scott Baker2184a3b2017-03-16 22:28:48 -070064 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070065 - name: fabric
66 path: orchestration/xos_services/fabric
Scott Baker2184a3b2017-03-16 22:28:48 -070067 operation: onboardnew
Scott Baker74065da2017-03-16 13:33:39 -070068# needed onboarding synchronizer doesn't require service code to be present when started
69 - name: exampleservice
70 path: orchestration/xos_services/exampleservice
71 operation: onboardnew
72 - name: monitoring
73 path: orchestration/xos_services/monitoring
74
75xos_service_sshkeys:
76 - name: onos_rsa
77 source_path: "~/.ssh/id_rsa"
78 - name: onos_rsa.pub
79 source_path: "~/.ssh/id_rsa.pub"
80 - name: volt_rsa
81 source_path: "~/.ssh/id_rsa"
82 - name: volt_rsa.pub
83 source_path: "~/.ssh/id_rsa.pub"
84 - name: vsg_rsa
85 source_path: "~/.ssh/id_rsa"
86 - name: vsg_rsa.pub
87 source_path: "~/.ssh/id_rsa.pub"
88# needed onboarding synchronizer doesn't require service code to be present when started
89 - name: exampleservice_rsa
90 source_path: "~/.ssh/id_rsa"
91 - name: exampleservice_rsa.pub
92 source_path: "~/.ssh/id_rsa.pub"
93 - name: monitoringservice_rsa
94 source_path: "~/.ssh/id_rsa"
95 - name: monitoringservice_rsa.pub
96 source_path: "~/.ssh/id_rsa.pub"
97
98# VM networks/bridges on head
99virt_nets:
100 - name: mgmtbr
101 ipv4_prefix: 192.168.122
102 head_vms: true
103
104# site domain suffix
105site_suffix: cord.lab
106
107# resolv.conf settings
108dns_search:
109 - "{{ site_suffix }}"
110
111# SSL server certificate generation
112server_certs:
113 - cn: "keystone.{{ site_suffix }}"
114 subj: "/C=US/ST=California/L=Menlo Park/O=ON.Lab/OU=Test Deployment/CN=keystone.{{ site_suffix }}"
115 altnames:
116 - "DNS:keystone.{{ site_suffix }}"
117 - "DNS:keystone"
118 - cn: "xos-core.{{ site_suffix }}"
119 subj: "/C=US/ST=California/L=Menlo Park/O=ON.Lab/OU=Test Deployment/CN=xos-core.{{ site_suffix }}"
120 altnames:
121 - "DNS:xos-core.{{ site_suffix }}"
122
123# NSD/Unbound settings
124nsd_zones:
125 - name: "{{ site_suffix }}"
126 ipv4_first_octets: 192.168.122
127 name_reverse_unbound: "168.192.in-addr.arpa"
128 soa: ns1
129 ns:
130 - { name: ns1 }
131 nodelist: head_vm_list
132 aliases:
133 - { name: "ns1" , dest: "head" }
134 - { name: "ns" , dest: "head" }
135 - { name: "apt-cache" , dest: "head" }
136
137name_on_public_interface: head
138
139# VTN network configuration
140management_network_cidr: 172.27.0.0/24
141management_network_ip: 172.27.0.1/24
142data_plane_ip: 10.168.0.253/24
143
144# CORD ONOS app version
145cord_app_version: 1.2-SNAPSHOT
146
147# If true, unbound listens on the head node's `ansible_default_ipv4` interface
148unbound_listen_on_default: True
149
150# turn this on, or override it when running the playbook with --extra-vars="on_cloudlab=True"
151on_cloudlab: False
152
153# turn this off, or override when running playbook with --extra-vars="on_maas=False"
154on_maas: True
155
156run_dist_upgrade: False
157
158maas_node_key: /etc/maas/ansible/id_rsa
159
160openstack_version: kilo
161
162juju_config_name: cord
163
164juju_config_path: /usr/local/src/juju_config.yml
165
166# Pull ONOS from local Docker registry rather than Docker Hub
167onos_docker_image: "docker-registry:5000/opencord/onos:candidate"
168
169keystone_admin_password: "{{ lookup('password', 'credentials/cord_keystone_admin chars=ascii_letters,digits') }}"
170
171deployment_flavors:
172 - m1.small
173 - m1.medium
174 - m1.large
175 - m1.xlarge
176
Scott Baker74065da2017-03-16 13:33:39 -0700177charm_versions:
178 ceilometer: "cs:trusty/ceilometer-17"
179 ceilometer-agent: "cs:trusty/ceilometer-agent-13"
180 glance: "cs:trusty/glance-28"
181 keystone: "cs:trusty/keystone-33"
182 mongodb: "cs:trusty/mongodb-33"
183 percona-cluster: "cs:trusty/percona-cluster-31"
184 nagios: "cs:trusty/nagios-10"
Andy Bavierfd169692017-04-14 16:32:08 -0400185 neutron-api: "cs:~cordteam/trusty/neutron-api-5"
Scott Baker74065da2017-03-16 13:33:39 -0700186 nova-cloud-controller: "cs:trusty/nova-cloud-controller-64"
187 nova-compute: "cs:~cordteam/trusty/nova-compute-2"
188 nrpe: "cs:trusty/nrpe-4"
189 ntp: "cs:trusty/ntp-14"
190 openstack-dashboard: "cs:trusty/openstack-dashboard-19"
191 rabbitmq-server: "cs:trusty/rabbitmq-server-42"
192
193head_vm_list: []
194
195head_lxd_list:
196 - name: "juju-1"
197 service: "juju"
198 aliases:
199 - "juju"
200 ipv4_last_octet: 10
201
202 - name: "ceilometer-1"
203 service: "ceilometer"
204 aliases:
205 - "ceilometer"
206 ipv4_last_octet: 20
207 forwarded_ports:
208 - { ext: 8777, int: 8777 }
209
210 - name: "glance-1"
211 service: "glance"
212 aliases:
213 - "glance"
214 ipv4_last_octet: 30
215 forwarded_ports:
216 - { ext: 9292, int: 9292 }
217
218 - name: "keystone-1"
219 service: "keystone"
220 aliases:
221 - "keystone"
222 ipv4_last_octet: 40
223 forwarded_ports:
224 - { ext: 35357, int: 35357 }
225 - { ext: 4990, int: 4990 }
226 - { ext: 5000, int: 5000 }
227
228 - name: "percona-cluster-1"
229 service: "percona-cluster"
230 aliases:
231 - "percona-cluster"
232 ipv4_last_octet: 50
233
234 - name: "nagios-1"
235 service: "nagios"
236 aliases:
237 - "nagios"
238 ipv4_last_octet: 60
239 forwarded_ports:
240 - { ext: 3128, int: 80 }
241
242 - name: "neutron-api-1"
243 service: "neutron-api"
244 aliases:
245 - "neutron-api"
246 ipv4_last_octet: 70
247 forwarded_ports:
248 - { ext: 9696, int: 9696 }
249
250 - name: "nova-cloud-controller-1"
251 service: "nova-cloud-controller"
252 aliases:
253 - "nova-cloud-controller"
254 ipv4_last_octet: 80
255 forwarded_ports:
256 - { ext: 8774, int: 8774 }
257
258 - name: "openstack-dashboard-1"
259 service: "openstack-dashboard"
260 aliases:
261 - "openstack-dashboard"
262 ipv4_last_octet: 90
263 forwarded_ports:
264 - { ext: 8080, int: 80 }
265
266 - name: "rabbitmq-server-1"
267 service: "rabbitmq-server"
268 aliases:
269 - "rabbitmq-server"
270 ipv4_last_octet: 100
271
272 - name: "mongodb-1"
273 service: "mongodb"
274 aliases:
275 - "mongodb"
276 ipv4_last_octet: 110
277
278lxd_service_list:
279 - ceilometer
280 - glance
281 - keystone
282 - mongodb
283 - nagios
284 - neutron-api
285 - nova-cloud-controller
286 - openstack-dashboard
287 - percona-cluster
288 - rabbitmq-server
289
290standalone_service_list:
291 - ntp
292 - nrpe
293 - ceilometer-agent
294
295
296service_relations:
297 - name: keystone
298 relations: [ "percona-cluster", "nrpe", ]
299
300 - name: nova-cloud-controller
301 relations: [ "percona-cluster", "rabbitmq-server", "glance", "keystone", "nrpe", ]
302
303 - name: glance
304 relations: [ "percona-cluster", "keystone", "nrpe", ]
305
306 - name: neutron-api
307 relations: [ "keystone", "percona-cluster", "rabbitmq-server", "nova-cloud-controller", "nrpe", ]
308
309 - name: openstack-dashboard
310 relations: [ "keystone", "nrpe", ]
311
312 - name: nagios
313 relations: [ "nrpe", ]
314
315 - name: "percona-cluster:juju-info"
316 relations: [ "nrpe:general-info", ]
317
318 - name: rabbitmq-server
319 relations: [ "nrpe", ]
320
321 - name: ceilometer
322 relations: [ "mongodb", "rabbitmq-server", "nagios", "nrpe", ]
323
324 - name: "ceilometer:identity-service"
325 relations: [ "keystone:identity-service", ]
326
327 - name: "ceilometer:ceilometer-service"
328 relations: [ "ceilometer-agent:ceilometer-service", ]
329
330
331compute_relations:
332 - name: nova-compute
333 relations: [ "ceilometer-agent", "glance", "nova-cloud-controller", "nagios", "nrpe", ]
334
335 - name: "nova-compute:shared-db"
336 relations: [ "percona-cluster:shared-db", ]
337
338 - name: "nova-compute:amqp"
339 relations: [ "rabbitmq-server:amqp", ]
340
341 - name: ntp
342 relations: [ "nova-compute", ]
343
344
345xos_images:
346 - name: "trusty-server-multi-nic"
347 url: "http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img.20170201"
348 checksum: "sha256:ebf007ba3ec1043b7cd011fc6668e2a1d1d4c69c41071e8513ab355df7a057cb"
349
350 - name: "vsg-1.1"
351 url: "http://www.vicci.org/cord/vsg-1.1.img"
352 checksum: "sha256:16b0beb6778aed0f5feecb05f8d5750e6c262f98e6011e99ddadf7d46a177b6f"
353
354 - name: "ceilometer-trusty-server-multi-nic"
355 url: "http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2"
356 checksum: "sha256:b77ef8d692b640568dea13df99fe1dfcb1f4bb4ac05408db9ff77399b34f754f"
357
358 - name: "ceilometer-service-trusty-server-multi-nic"
359 url: "http://www.vicci.org/cord/ceilometer-service-trusty-server-multi-nic.compressed.qcow2.20170131"
360 checksum: "sha256:f0341e283f0f2cb8f70cd1a6347e0081c9c8492ef34eb6397c657ef824800d4f"