blob: d93e91b9818446f782e18580b19f347c505d0bcb [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 Williams9f42b972018-01-10 15:05:35 -070063publish_docker_images_prereqs:
64 - deploy-maas
65
Zack Williams0a7ef162017-07-18 18:15:26 -070066# Start elasticstack before XOS/ONOS, which log to it
67start_xos_prereqs:
Andy Bavier35d238e2017-07-24 16:47:22 -070068 - deploy-maas
69 - publish-docker-images
70
71deploy_openstack_prereqs:
72 - deploy-maas
Andy Bavierb0b5a142017-07-17 17:32:55 -070073
Andy Bavierafaa5302017-08-15 08:56:15 -070074deploy_mavenrepo_prereqs:
Zack Williams8845ee52017-10-04 23:13:26 -070075 - publish-docker-images
Andy Bavierafaa5302017-08-15 08:56:15 -070076
Zack Williamsba3e2462018-01-19 11:52:31 -070077testing_prereqs:
78 - collect-diag-maas
79 - setup-automation
80
Andy Bavier35d238e2017-07-24 16:47:22 -070081setup_automation_prereqs:
82 - deploy-openstack
Zack Williams0a7ef162017-07-18 18:15:26 -070083
84# Vagrant VM configuration
Zack Williams82f24ca2017-12-30 13:53:46 -070085vagrant_box: "ubuntu/trusty64"
86
Zack Williams0a7ef162017-07-18 18:15:26 -070087vagrant_vms:
Gopinath Taget40d57b32017-08-16 17:05:09 -070088 - corddev
Andy Bavier35d238e2017-07-24 16:47:22 -070089 - head1
Zack Williamsce63eb02017-02-28 10:46:22 -070090
Andy Bavierb0b5a142017-07-17 17:32:55 -070091dev_vm_mem: 2048
92dev_vm_cpu: 1
93
94head_vm_mem: 16384
95head_vm_cpu: 8
96
97compute_vm_mem: 16384
98compute_vm_cpu: 8
99
100switch_vm_mem: 512
101switch_vm_cpu: 1
102
Zack Williams0a7ef162017-07-18 18:15:26 -0700103vm_management_network_name: cordmgmt
Andy Bavierb0b5a142017-07-17 17:32:55 -0700104
105# Enable experimental fabric
106enable_fabric: False
107
Andy Bavier35d238e2017-07-24 16:47:22 -0700108# Apt cache depends on DNS provided by MAAS
109# MAAS isn't installed when prep-headnode runs
110use_apt_cache: False
111
Andy Bavier5a7e7e32017-09-08 09:16:43 -0700112# Always pull XOS images if start-xos target is re-run
113always_pull_xos_images: True
114
Sapan Bhatia377bd102017-12-12 13:55:45 -0500115# Used in platform-install / roles/cord-profile/templates/docker-compose.yml.j2
116use_elasticstack: True
117
Zack Williams9f42b972018-01-10 15:05:35 -0700118# Use the insecure MaaS-installed docker registry
119use_secure_docker_registry: False
120
Zack Williamsce63eb02017-02-28 10:46:22 -0700121# images for imagebuilder to build/pull (tagged elsewhere)
122docker_image_whitelist:
123 - "xosproject/xos-base"
124 - "xosproject/xos"
125 - "xosproject/xos-client"
126 - "xosproject/xos-corebuilder"
127 - "xosproject/xos-gui"
Matteo Scandolo9acc16b2017-11-16 10:13:55 -0800128 - "xosproject/xos-gui-builder"
Zack Williamseeeb6dd2017-07-13 10:50:28 -0700129 - "xosproject/xos-libraries"
Zack Williamsce63eb02017-02-28 10:46:22 -0700130 - "xosproject/xos-postgres"
Zack Williamseeeb6dd2017-07-13 10:50:28 -0700131 - "xosproject/xos-tosca"
Zack Williamsce63eb02017-02-28 10:46:22 -0700132 - "xosproject/xos-ws"
133 - "xosproject/chameleon"
Zack Williams0a7ef162017-07-18 18:15:26 -0700134 - "xosproject/xos-synchronizer-base"
Zack Williamsce63eb02017-02-28 10:46:22 -0700135 - "nginx"
136 - "onosproject/onos"
Zack Williams5e039f02017-11-16 09:50:09 -0700137 - "opencord/mavenrepo"
Zack Williamsce63eb02017-02-28 10:46:22 -0700138 - "redis"
Andy Bavier56b12b52017-08-03 11:46:42 -0700139 - "node"
Sapan Bhatia377bd102017-12-12 13:55:45 -0500140 - "sebp/elk"
Zack Williamsce63eb02017-02-28 10:46:22 -0700141
Zack Williams0a7ef162017-07-18 18:15:26 -0700142# node topology
143physical_node_list:
Andy Bavier35d238e2017-07-24 16:47:22 -0700144 - name: head1
Zack Williams0a7ef162017-07-18 18:15:26 -0700145 ipv4_last_octet: 1
146 aliases:
147 - head
148
Zack Williamsce63eb02017-02-28 10:46:22 -0700149# Inventory for ansible, used to generate inventory.ini
150inventory_groups:
151
152 config:
Andy Bavier35d238e2017-07-24 16:47:22 -0700153 localhost:
154 ansible_connection: local
Zack Williamsce63eb02017-02-28 10:46:22 -0700155
156 build:
Gopinath Taget40d57b32017-08-16 17:05:09 -0700157 corddev:
Zack Williamsce63eb02017-02-28 10:46:22 -0700158
159 head:
Andy Bavier35d238e2017-07-24 16:47:22 -0700160 head1:
Zack Williamsce63eb02017-02-28 10:46:22 -0700161
162 compute:
163