blob: 27774618a99282b00b60f0b52f35deab49531a76 [file] [log] [blame]
Zack Williams58e41572017-09-29 07:57:14 -07001---
Matteo Scandolo60b640f2017-08-08 13:05:22 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Zack Williamsce63eb02017-02-28 10:46:22 -070016# cord Scenario
17# for both Physical (using a corddev VM) and Virtual (using multiple VMs)
18
Zack Williams0a7ef162017-07-18 18:15:26 -070019# cord profile config
20frontend_only: False
21
Andy Bavier35d238e2017-07-24 16:47:22 -070022# create a cord_profile dir next to the cord checkout
23config_cord_dir: "{{ ( playbook_dir ~ '/../..' ) | realpath }}"
24config_cord_profile_dir: "{{ ( playbook_dir ~ '/../../../cord_profile' ) | realpath }}"
Zack Williams0a7ef162017-07-18 18:15:26 -070025
Andy Bavier35d238e2017-07-24 16:47:22 -070026build_cord_dir: "/opt/cord"
Gopinath Taget40d57b32017-08-16 17:05:09 -070027build_cord_profile_dir: "/opt/cord_profile"
28host_cord_profile_dir: "~/cord_profile"
Andy Bavier35d238e2017-07-24 16:47:22 -070029
Gopinath Taget40d57b32017-08-16 17:05:09 -070030buildnode: corddev
Andy Bavier35d238e2017-07-24 16:47:22 -070031headnode: head1
Zack Williams0a7ef162017-07-18 18:15:26 -070032
33# docker config
Andy Bavierfb724fc2017-08-22 07:37:51 -070034deploy_docker_registry: "docker-registry:5000"
Zack Williams0a7ef162017-07-18 18:15:26 -070035deploy_docker_tag: "candidate"
Andy Bavier35d238e2017-07-24 16:47:22 -070036pull_docker_registry: "docker-registry:5000/"
37pull_docker_tag: "candidate"
Andy Bavierfb724fc2017-08-22 07:37:51 -070038docker_opts: "--insecure-registry {{ deploy_docker_registry }}"
Andy Bavier35d238e2017-07-24 16:47:22 -070039
40# Variables required by MAAS
41fabric_ip: '10.6.1.1/24'
42management_ip: '10.1.0.1/24'
Andy Bavier35d238e2017-07-24 16:47:22 -070043management_network: '10.1.0.0/24'
Zack Williams0a7ef162017-07-18 18:15:26 -070044
Zack Williamsce63eb02017-02-28 10:46:22 -070045# make build config
46build_targets:
Jonathan Hart37a119c2017-09-13 16:07:24 -070047 - setup-automation
Zack Williamsce63eb02017-02-28 10:46:22 -070048
Zack Williams39c9aa92017-10-17 08:35:00 -070049config_ssh_key_prereqs:
50 - vagrant-ssh-install
51
Zack Williamsf87ef6e2017-10-16 22:30:00 -070052copy_cord_prereqs:
53 - vagrant-ssh-install
Zack Williamsce63eb02017-02-28 10:46:22 -070054
Zack Williamsf87ef6e2017-10-16 22:30:00 -070055cord_config_prereqs:
56 - vagrant-ssh-install
57 - copy-cord
Zack Williamsce63eb02017-02-28 10:46:22 -070058
Zack Williamsce63eb02017-02-28 10:46:22 -070059prep_headnode_prereqs:
60 - copy-cord
61 - copy-config
62
Zack Williams0a7ef162017-07-18 18:15:26 -070063# Start elasticstack before XOS/ONOS, which log to it
64start_xos_prereqs:
Andy Bavier35d238e2017-07-24 16:47:22 -070065 - deploy-maas
66 - publish-docker-images
67
68deploy_openstack_prereqs:
69 - deploy-maas
Andy Bavierb0b5a142017-07-17 17:32:55 -070070
Andy Bavierafaa5302017-08-15 08:56:15 -070071deploy_mavenrepo_prereqs:
Zack Williams8845ee52017-10-04 23:13:26 -070072 - publish-docker-images
Andy Bavierafaa5302017-08-15 08:56:15 -070073
Andy Bavier35d238e2017-07-24 16:47:22 -070074setup_automation_prereqs:
75 - deploy-openstack
Zack Williams0a7ef162017-07-18 18:15:26 -070076
77# Vagrant VM configuration
78vagrant_vms:
Gopinath Taget40d57b32017-08-16 17:05:09 -070079 - corddev
Andy Bavier35d238e2017-07-24 16:47:22 -070080 - head1
Zack Williamsce63eb02017-02-28 10:46:22 -070081
Andy Bavierb0b5a142017-07-17 17:32:55 -070082dev_vm_mem: 2048
83dev_vm_cpu: 1
84
85head_vm_mem: 16384
86head_vm_cpu: 8
87
88compute_vm_mem: 16384
89compute_vm_cpu: 8
90
91switch_vm_mem: 512
92switch_vm_cpu: 1
93
Zack Williams0a7ef162017-07-18 18:15:26 -070094vm_management_network_name: cordmgmt
Andy Bavierb0b5a142017-07-17 17:32:55 -070095
96# Enable experimental fabric
97enable_fabric: False
98
Andy Bavier35d238e2017-07-24 16:47:22 -070099# Apt cache depends on DNS provided by MAAS
100# MAAS isn't installed when prep-headnode runs
101use_apt_cache: False
102
Andy Bavier5a7e7e32017-09-08 09:16:43 -0700103# Always pull XOS images if start-xos target is re-run
104always_pull_xos_images: True
105
Zack Williamsce63eb02017-02-28 10:46:22 -0700106# images for imagebuilder to build/pull (tagged elsewhere)
107docker_image_whitelist:
108 - "xosproject/xos-base"
109 - "xosproject/xos"
110 - "xosproject/xos-client"
111 - "xosproject/xos-corebuilder"
112 - "xosproject/xos-gui"
Matteo Scandolo9acc16b2017-11-16 10:13:55 -0800113 - "xosproject/xos-gui-builder"
Zack Williamseeeb6dd2017-07-13 10:50:28 -0700114 - "xosproject/xos-libraries"
Zack Williamsce63eb02017-02-28 10:46:22 -0700115 - "xosproject/xos-postgres"
Zack Williamseeeb6dd2017-07-13 10:50:28 -0700116 - "xosproject/xos-tosca"
Zack Williamsce63eb02017-02-28 10:46:22 -0700117 - "xosproject/xos-ws"
118 - "xosproject/chameleon"
119 - "xosproject/gui-extension-rcord"
120 - "xosproject/gui-extension-sample"
Max Chue91497c2017-11-06 10:34:38 -0800121 - "xosproject/gui-extension-veestat"
122 - "xosproject/gui-extension-vnaas"
Zack Williamsce63eb02017-02-28 10:46:22 -0700123 - "xosproject/gui-extension-vtr"
Zack Williams0a7ef162017-07-18 18:15:26 -0700124 - "xosproject/xos-synchronizer-base"
Scott Bakerbd37a062017-09-08 13:51:55 -0700125 - "xosproject/addressmanager-synchronizer"
Zack Williams0a7ef162017-07-18 18:15:26 -0700126 - "xosproject/exampleservice-synchronizer"
127 - "xosproject/fabric-synchronizer"
Zack Williamsce63eb02017-02-28 10:46:22 -0700128 - "xosproject/onos-synchronizer"
129 - "xosproject/openstack-synchronizer"
Zack Williams0a7ef162017-07-18 18:15:26 -0700130 - "xosproject/volt-synchronizer"
Zack Williamsce63eb02017-02-28 10:46:22 -0700131 - "xosproject/vrouter-synchronizer"
Zack Williams58e41572017-09-29 07:57:14 -0700132 - "xosproject/vee-synchronizer"
133 - "xosproject/veg-synchronizer"
Zack Williams0a7ef162017-07-18 18:15:26 -0700134 - "xosproject/vsg-synchronizer"
Zack Williamsce63eb02017-02-28 10:46:22 -0700135 - "xosproject/vtn-synchronizer"
Zack Williams0a7ef162017-07-18 18:15:26 -0700136 - "xosproject/vtr-synchronizer"
Andy Bavier7641a192017-10-03 14:14:51 -0700137 - "xosproject/vmme-synchronizer"
Andy Bavier483ffb72017-10-20 11:24:22 -0700138 - "xosproject/internetemulator-synchronizer"
139 - "xosproject/sdncontroller-synchronizer"
140 - "xosproject/vspgwc-synchronizer"
Wei-Yu Chen66186242017-10-21 13:55:09 +0800141 - "xosproject/vspgwu-synchronizer"
Matteo Scandolo1bd23c82017-10-06 11:31:04 -0700142 - "xosproject/venb-synchronizer"
Andy Bavierc7450fa2017-10-24 16:54:15 -0700143 - "xosproject/templateservice-synchronizer"
Zack Williamsce63eb02017-02-28 10:46:22 -0700144 - "gliderlabs/consul-server"
145 - "gliderlabs/registrator"
146 - "nginx"
147 - "onosproject/onos"
Zack Williams5e039f02017-11-16 09:50:09 -0700148 - "opencord/mavenrepo"
Zack Williamsce63eb02017-02-28 10:46:22 -0700149 - "redis"
Andy Bavier56b12b52017-08-03 11:46:42 -0700150 - "node"
Zack Williamsce63eb02017-02-28 10:46:22 -0700151
Zack Williams0a7ef162017-07-18 18:15:26 -0700152# node topology
153physical_node_list:
Andy Bavier35d238e2017-07-24 16:47:22 -0700154 - name: head1
Zack Williams0a7ef162017-07-18 18:15:26 -0700155 ipv4_last_octet: 1
156 aliases:
157 - head
158
Zack Williamsce63eb02017-02-28 10:46:22 -0700159# Inventory for ansible, used to generate inventory.ini
160inventory_groups:
161
162 config:
Andy Bavier35d238e2017-07-24 16:47:22 -0700163 localhost:
164 ansible_connection: local
Zack Williamsce63eb02017-02-28 10:46:22 -0700165
166 build:
Gopinath Taget40d57b32017-08-16 17:05:09 -0700167 corddev:
Zack Williamsce63eb02017-02-28 10:46:22 -0700168
169 head:
Andy Bavier35d238e2017-07-24 16:47:22 -0700170 head1:
Zack Williamsce63eb02017-02-28 10:46:22 -0700171
172 compute:
173