blob: 2ec44135c29f544d3af3dbd3e7f2e3e3b1882c7d [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
177apt_cacher_name: apt-cache
178
179apt_ssl_sites:
180 - apt.dockerproject.org
181 - butler.opencloud.cs.arizona.edu
182 - deb.nodesource.com
183
184charm_versions:
185 ceilometer: "cs:trusty/ceilometer-17"
186 ceilometer-agent: "cs:trusty/ceilometer-agent-13"
187 glance: "cs:trusty/glance-28"
188 keystone: "cs:trusty/keystone-33"
189 mongodb: "cs:trusty/mongodb-33"
190 percona-cluster: "cs:trusty/percona-cluster-31"
191 nagios: "cs:trusty/nagios-10"
192 neutron-api: "cs:~cordteam/trusty/neutron-api-4"
193 nova-cloud-controller: "cs:trusty/nova-cloud-controller-64"
194 nova-compute: "cs:~cordteam/trusty/nova-compute-2"
195 nrpe: "cs:trusty/nrpe-4"
196 ntp: "cs:trusty/ntp-14"
197 openstack-dashboard: "cs:trusty/openstack-dashboard-19"
198 rabbitmq-server: "cs:trusty/rabbitmq-server-42"
199
200head_vm_list: []
201
202head_lxd_list:
203 - name: "juju-1"
204 service: "juju"
205 aliases:
206 - "juju"
207 ipv4_last_octet: 10
208
209 - name: "ceilometer-1"
210 service: "ceilometer"
211 aliases:
212 - "ceilometer"
213 ipv4_last_octet: 20
214 forwarded_ports:
215 - { ext: 8777, int: 8777 }
216
217 - name: "glance-1"
218 service: "glance"
219 aliases:
220 - "glance"
221 ipv4_last_octet: 30
222 forwarded_ports:
223 - { ext: 9292, int: 9292 }
224
225 - name: "keystone-1"
226 service: "keystone"
227 aliases:
228 - "keystone"
229 ipv4_last_octet: 40
230 forwarded_ports:
231 - { ext: 35357, int: 35357 }
232 - { ext: 4990, int: 4990 }
233 - { ext: 5000, int: 5000 }
234
235 - name: "percona-cluster-1"
236 service: "percona-cluster"
237 aliases:
238 - "percona-cluster"
239 ipv4_last_octet: 50
240
241 - name: "nagios-1"
242 service: "nagios"
243 aliases:
244 - "nagios"
245 ipv4_last_octet: 60
246 forwarded_ports:
247 - { ext: 3128, int: 80 }
248
249 - name: "neutron-api-1"
250 service: "neutron-api"
251 aliases:
252 - "neutron-api"
253 ipv4_last_octet: 70
254 forwarded_ports:
255 - { ext: 9696, int: 9696 }
256
257 - name: "nova-cloud-controller-1"
258 service: "nova-cloud-controller"
259 aliases:
260 - "nova-cloud-controller"
261 ipv4_last_octet: 80
262 forwarded_ports:
263 - { ext: 8774, int: 8774 }
264
265 - name: "openstack-dashboard-1"
266 service: "openstack-dashboard"
267 aliases:
268 - "openstack-dashboard"
269 ipv4_last_octet: 90
270 forwarded_ports:
271 - { ext: 8080, int: 80 }
272
273 - name: "rabbitmq-server-1"
274 service: "rabbitmq-server"
275 aliases:
276 - "rabbitmq-server"
277 ipv4_last_octet: 100
278
279 - name: "mongodb-1"
280 service: "mongodb"
281 aliases:
282 - "mongodb"
283 ipv4_last_octet: 110
284
285lxd_service_list:
286 - ceilometer
287 - glance
288 - keystone
289 - mongodb
290 - nagios
291 - neutron-api
292 - nova-cloud-controller
293 - openstack-dashboard
294 - percona-cluster
295 - rabbitmq-server
296
297standalone_service_list:
298 - ntp
299 - nrpe
300 - ceilometer-agent
301
302
303service_relations:
304 - name: keystone
305 relations: [ "percona-cluster", "nrpe", ]
306
307 - name: nova-cloud-controller
308 relations: [ "percona-cluster", "rabbitmq-server", "glance", "keystone", "nrpe", ]
309
310 - name: glance
311 relations: [ "percona-cluster", "keystone", "nrpe", ]
312
313 - name: neutron-api
314 relations: [ "keystone", "percona-cluster", "rabbitmq-server", "nova-cloud-controller", "nrpe", ]
315
316 - name: openstack-dashboard
317 relations: [ "keystone", "nrpe", ]
318
319 - name: nagios
320 relations: [ "nrpe", ]
321
322 - name: "percona-cluster:juju-info"
323 relations: [ "nrpe:general-info", ]
324
325 - name: rabbitmq-server
326 relations: [ "nrpe", ]
327
328 - name: ceilometer
329 relations: [ "mongodb", "rabbitmq-server", "nagios", "nrpe", ]
330
331 - name: "ceilometer:identity-service"
332 relations: [ "keystone:identity-service", ]
333
334 - name: "ceilometer:ceilometer-service"
335 relations: [ "ceilometer-agent:ceilometer-service", ]
336
337
338compute_relations:
339 - name: nova-compute
340 relations: [ "ceilometer-agent", "glance", "nova-cloud-controller", "nagios", "nrpe", ]
341
342 - name: "nova-compute:shared-db"
343 relations: [ "percona-cluster:shared-db", ]
344
345 - name: "nova-compute:amqp"
346 relations: [ "rabbitmq-server:amqp", ]
347
348 - name: ntp
349 relations: [ "nova-compute", ]
350
351
352xos_images:
353 - name: "trusty-server-multi-nic"
354 url: "http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img.20170201"
355 checksum: "sha256:ebf007ba3ec1043b7cd011fc6668e2a1d1d4c69c41071e8513ab355df7a057cb"
356
357 - name: "vsg-1.1"
358 url: "http://www.vicci.org/cord/vsg-1.1.img"
359 checksum: "sha256:16b0beb6778aed0f5feecb05f8d5750e6c262f98e6011e99ddadf7d46a177b6f"
360
361 - name: "ceilometer-trusty-server-multi-nic"
362 url: "http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2"
363 checksum: "sha256:b77ef8d692b640568dea13df99fe1dfcb1f4bb4ac05408db9ff77399b34f754f"
364
365 - name: "ceilometer-service-trusty-server-multi-nic"
366 url: "http://www.vicci.org/cord/ceilometer-service-trusty-server-multi-nic.compressed.qcow2.20170131"
367 checksum: "sha256:f0341e283f0f2cb8f70cd1a6347e0081c9c8492ef34eb6397c657ef824800d4f"