Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 1 | --- |
Matteo Scandolo | 60b640f | 2017-08-08 13:05:22 -0700 | [diff] [blame] | 2 | # 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 Williams | 58e4157 | 2017-09-29 07:57:14 -0700 | [diff] [blame] | 16 | # physical-example Pod Config |
| 17 | # Example configuration for a physical CORD pod |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 18 | |
Zack Williams | 58e4157 | 2017-09-29 07:57:14 -0700 | [diff] [blame] | 19 | # The name of the scenario to use, found in the scenarios directory |
| 20 | # `cord` is the standard CORD POD with XOS, ONOS, MaaS and OpenStack |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 21 | cord_scenario: cord |
Zack Williams | 58e4157 | 2017-09-29 07:57:14 -0700 | [diff] [blame] | 22 | |
| 23 | # The name of the profile to use, found in the |
| 24 | # platform-install/profile_manifests directory |
| 25 | # Example values: `rcord`, `ecord`, `mcord`, `opencloud` |
| 26 | cord_profile: <must_be_set> |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 27 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 28 | # Bring up the corddev VM. This is the `build` node as specified in ansible |
| 29 | # inventory below. |
| 30 | vagrant_vms: |
| 31 | - 'corddev' |
| 32 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 33 | # NOTE: Many of these items are described in more detail in the Build System |
| 34 | # Variable Glossary: https://guide.opencord.org/build_glossary.html |
| 35 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 36 | # Location of the cord_profile directory to be mounted in the `corddev` VM by |
| 37 | # Vagrant. |
| 38 | # |
| 39 | # host_cord_profile_dir: "/path_to/cord_profile" |
| 40 | |
| 41 | # Set these directory paths if the defaults aren't suitable, or if deploying |
| 42 | # multiple pods from the same source tree where the credentials, keys, and |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 43 | # profile should differ. These are paths on the config node. |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 44 | # |
| 45 | # credentials_dir: '/path_to/credentials' |
| 46 | # pki_dir: '/path_to/pki' |
| 47 | # ssh_pki_dir: '/path_to/ssh_pki' |
| 48 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 49 | # Variables. Default values are specified here |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 50 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 51 | # IP address used for the ONOS fabric interface on the head node |
| 52 | # |
| 53 | # fabric_ip: '10.6.1.0/24' |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 54 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 55 | # Low and high addresses to assign to on the fabric |
| 56 | # |
| 57 | # fabric_range_low: '10.6.1.2' |
| 58 | # fabric_range_high: '10.6.1.100' |
| 59 | |
| 60 | # IP and range of the management network, which MaaS serves DHCP. |
| 61 | # |
| 62 | # management_ip: '10.6.0.0/24' |
| 63 | # management_network: '10.6.0.0/24' |
| 64 | |
| 65 | # Low and high addresses to assign to on the management network |
| 66 | # |
| 67 | # management_range_low: '10.6.0.2' |
| 68 | # management_range_high: '10.6.0.127' |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 69 | |
| 70 | # name or IP of the POD head node, used to SSH to the head node. You can also |
| 71 | # specify the head node user here in user@hostname format. This could also be |
| 72 | # `cord@headnode.site1.opencord.org` as specified later in inventory, if |
| 73 | # external DNS is set up. |
| 74 | headnode: 'cord@10.80.1.200' |
| 75 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 76 | # External interface device name on head node |
| 77 | external_iface: 'eth2' |
| 78 | |
| 79 | # External interface ip/range on head node |
| 80 | external_ip: '10.80.1.200/24' |
| 81 | |
| 82 | # Gateway IP address |
| 83 | external_gw: '10.80.1.1' |
| 84 | |
| 85 | # address and port of docker registry (on the head node) |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 86 | deploy_docker_registry: "10.80.1.200:5000" |
| 87 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 88 | # Additional network config documentation can be found here: |
| 89 | # https://guide.opencord.org/appendix_network_settings.html |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 90 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 91 | # Additional makefile targets |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 92 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 93 | # key-based SSH auth is required for some portions of the build, specifically |
| 94 | # the 'synchronize' task. Enable this to generate a SSH key on the config node |
| 95 | # and have the head node trust it. |
| 96 | # copy_cord_prereqs: |
| 97 | # - 'config-ssh-key' |
| 98 | |
| 99 | # skipTags is used in MaaS options allow various part of the deployment to be skipped |
| 100 | # |
| 101 | # switch_support - does not deploy switch boot images to the PXE server |
| 102 | # |
| 103 | # reboot - will not reboot the head node after updating its network configuration |
| 104 | # this may mean the network configuration will not take effect, but will |
| 105 | # also prevent you from being locked out of the server if there is a |
| 106 | # network configuration error. |
| 107 | # |
| 108 | # interface_config - will not modify the network configuration of the head node, |
| 109 | # including the consistent naming of the network interfaces |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 110 | skipTags: |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 111 | # - 'switch_support' |
| 112 | # - 'reboot' |
| 113 | # - 'interface_config' |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 114 | |
| 115 | # Inventory for ansible, used to generate inventory.ini |
Zack Williams | 58e4157 | 2017-09-29 07:57:14 -0700 | [diff] [blame] | 116 | # |
| 117 | # A physical podconfig must contain this, and will minimally set the head node |
| 118 | # address in the `head` section.. |
| 119 | # |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 120 | # There must be config, build, head, and compute sections |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 121 | inventory_groups: |
| 122 | |
| 123 | config: |
| 124 | localhost: |
| 125 | ansible_connection: local |
| 126 | |
| 127 | build: |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 128 | corddev: |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 129 | |
| 130 | head: |
| 131 | headnode.site1.opencord.org: |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame] | 132 | # If you do not have DNS set up that will resolve the headnode address, you can |
| 133 | # specify the IP address here. |
| 134 | # |
| 135 | # ansible_host: 10.80.1.200 |
| 136 | # |
| 137 | # Set these if you don't have SSH keys set up between the config node (where |
| 138 | # make runs) and the head node. Also, make sure to enable the 'config-ssh-key' |
| 139 | # further up in the file to create these. |
| 140 | # |
| 141 | # ansible_user: cord |
| 142 | # ansible_ssh_pass: cordpass |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 143 | |
| 144 | compute: |
| 145 | |