blob: 2a63216f904f4c1d7f52f07a82e3717af7e86cfe [file] [log] [blame]
Zack Williams1b96a952017-07-17 16:48:01 -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# rcord-physical-example Pod Config
17# Example configuration for a physical R-CORD pod
18
19cord_scenario: cord
20cord_profile: rcord
21
Zack Williams1b96a952017-07-17 16:48:01 -070022# Bring up the corddev VM. This is the `build` node as specified in ansible
23# inventory below.
24vagrant_vms:
25 - 'corddev'
26
Zack Williams144027f2017-09-25 18:01:47 -070027# NOTE: Many of these items are described in more detail in the Build System
28# Variable Glossary: https://guide.opencord.org/build_glossary.html
29
Zack Williams1b96a952017-07-17 16:48:01 -070030# Location of the cord_profile directory to be mounted in the `corddev` VM by
31# Vagrant.
32#
33# host_cord_profile_dir: "/path_to/cord_profile"
34
35# Set these directory paths if the defaults aren't suitable, or if deploying
36# multiple pods from the same source tree where the credentials, keys, and
Zack Williams144027f2017-09-25 18:01:47 -070037# profile should differ. These are paths on the config node.
Zack Williams1b96a952017-07-17 16:48:01 -070038#
39# credentials_dir: '/path_to/credentials'
40# pki_dir: '/path_to/pki'
41# ssh_pki_dir: '/path_to/ssh_pki'
42
Zack Williams144027f2017-09-25 18:01:47 -070043# Variables. Default values are specified here
Zack Williamsce63eb02017-02-28 10:46:22 -070044
Zack Williams144027f2017-09-25 18:01:47 -070045# IP address used for the ONOS fabric interface on the head node
46#
47# fabric_ip: '10.6.1.0/24'
Zack Williams1b96a952017-07-17 16:48:01 -070048
Zack Williams144027f2017-09-25 18:01:47 -070049# Low and high addresses to assign to on the fabric
50#
51# fabric_range_low: '10.6.1.2'
52# fabric_range_high: '10.6.1.100'
53
54# IP and range of the management network, which MaaS serves DHCP.
55#
56# management_ip: '10.6.0.0/24'
57# management_network: '10.6.0.0/24'
58
59# Low and high addresses to assign to on the management network
60#
61# management_range_low: '10.6.0.2'
62# management_range_high: '10.6.0.127'
Zack Williams1b96a952017-07-17 16:48:01 -070063
64# name or IP of the POD head node, used to SSH to the head node. You can also
65# specify the head node user here in user@hostname format. This could also be
66# `cord@headnode.site1.opencord.org` as specified later in inventory, if
67# external DNS is set up.
68headnode: 'cord@10.80.1.200'
69
Zack Williams144027f2017-09-25 18:01:47 -070070# External interface device name on head node
71external_iface: 'eth2'
72
73# External interface ip/range on head node
74external_ip: '10.80.1.200/24'
75
76# Gateway IP address
77external_gw: '10.80.1.1'
78
79# address and port of docker registry (on the head node)
Zack Williams1b96a952017-07-17 16:48:01 -070080deploy_docker_registry: "10.80.1.200:5000"
81
Zack Williams144027f2017-09-25 18:01:47 -070082# Additional network config documentation can be found here:
83# https://guide.opencord.org/appendix_network_settings.html
Zack Williams1b96a952017-07-17 16:48:01 -070084
Zack Williams144027f2017-09-25 18:01:47 -070085# Additional makefile targets
Zack Williams1b96a952017-07-17 16:48:01 -070086
Zack Williams144027f2017-09-25 18:01:47 -070087# key-based SSH auth is required for some portions of the build, specifically
88# the 'synchronize' task. Enable this to generate a SSH key on the config node
89# and have the head node trust it.
90# copy_cord_prereqs:
91# - 'config-ssh-key'
92
93# skipTags is used in MaaS options allow various part of the deployment to be skipped
94#
95# switch_support - does not deploy switch boot images to the PXE server
96#
97# reboot - will not reboot the head node after updating its network configuration
98# this may mean the network configuration will not take effect, but will
99# also prevent you from being locked out of the server if there is a
100# network configuration error.
101#
102# interface_config - will not modify the network configuration of the head node,
103# including the consistent naming of the network interfaces
Zack Williams1b96a952017-07-17 16:48:01 -0700104skipTags:
Zack Williams144027f2017-09-25 18:01:47 -0700105# - 'switch_support'
106# - 'reboot'
107# - 'interface_config'
Zack Williamsce63eb02017-02-28 10:46:22 -0700108
109# Inventory for ansible, used to generate inventory.ini
Zack Williams144027f2017-09-25 18:01:47 -0700110# There must be config, build, head, and compute sections
Zack Williamsce63eb02017-02-28 10:46:22 -0700111inventory_groups:
112
113 config:
114 localhost:
115 ansible_connection: local
116
117 build:
Zack Williams1b96a952017-07-17 16:48:01 -0700118 corddev:
Zack Williamsce63eb02017-02-28 10:46:22 -0700119
120 head:
121 headnode.site1.opencord.org:
Zack Williams144027f2017-09-25 18:01:47 -0700122# If you do not have DNS set up that will resolve the headnode address, you can
123# specify the IP address here.
124#
125# ansible_host: 10.80.1.200
126#
127# Set these if you don't have SSH keys set up between the config node (where
128# make runs) and the head node. Also, make sure to enable the 'config-ssh-key'
129# further up in the file to create these.
130#
131# ansible_user: cord
132# ansible_ssh_pass: cordpass
Zack Williamsce63eb02017-02-28 10:46:22 -0700133
134 compute:
135