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 | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 16 | # rcord-physical-example Pod Config |
| 17 | # Example configuration for a physical R-CORD pod |
| 18 | |
| 19 | cord_scenario: cord |
| 20 | cord_profile: rcord |
| 21 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 22 | # Bring up the corddev VM. This is the `build` node as specified in ansible |
| 23 | # inventory below. |
| 24 | vagrant_vms: |
| 25 | - 'corddev' |
| 26 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 27 | # 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 Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 30 | # 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 Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 37 | # profile should differ. These are paths on the config node. |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 38 | # |
| 39 | # credentials_dir: '/path_to/credentials' |
| 40 | # pki_dir: '/path_to/pki' |
| 41 | # ssh_pki_dir: '/path_to/ssh_pki' |
| 42 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 43 | # Variables. Default values are specified here |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 44 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 45 | # IP address used for the ONOS fabric interface on the head node |
| 46 | # |
| 47 | # fabric_ip: '10.6.1.0/24' |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 48 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 49 | # 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 Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 63 | |
| 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. |
| 68 | headnode: 'cord@10.80.1.200' |
| 69 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 70 | # External interface device name on head node |
| 71 | external_iface: 'eth2' |
| 72 | |
| 73 | # External interface ip/range on head node |
| 74 | external_ip: '10.80.1.200/24' |
| 75 | |
| 76 | # Gateway IP address |
| 77 | external_gw: '10.80.1.1' |
| 78 | |
| 79 | # address and port of docker registry (on the head node) |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 80 | deploy_docker_registry: "10.80.1.200:5000" |
| 81 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 82 | # Additional network config documentation can be found here: |
| 83 | # https://guide.opencord.org/appendix_network_settings.html |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 84 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 85 | # Additional makefile targets |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 86 | |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 87 | # 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 Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 104 | skipTags: |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 105 | # - 'switch_support' |
| 106 | # - 'reboot' |
| 107 | # - 'interface_config' |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 108 | |
| 109 | # Inventory for ansible, used to generate inventory.ini |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 110 | # There must be config, build, head, and compute sections |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 111 | inventory_groups: |
| 112 | |
| 113 | config: |
| 114 | localhost: |
| 115 | ansible_connection: local |
| 116 | |
| 117 | build: |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 118 | corddev: |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 119 | |
| 120 | head: |
| 121 | headnode.site1.opencord.org: |
Zack Williams | 144027f | 2017-09-25 18:01:47 -0700 | [diff] [blame^] | 122 | # 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 Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 133 | |
| 134 | compute: |
| 135 | |