Zack Williams | 63dd02f | 2017-10-16 22:30:00 -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 | # opencloud Scenario |
| 17 | # For a virtual install, physical does not use VMs |
| 18 | |
| 19 | # opencloud profile config |
| 20 | frontend_only: False |
| 21 | |
| 22 | # create a cord_profile dir next to the cord checkout |
| 23 | config_cord_dir: "{{ ( playbook_dir ~ '/../..' ) | realpath }}" |
| 24 | config_cord_profile_dir: "{{ ( playbook_dir ~ '/../../../cord_profile' ) | realpath }}" |
| 25 | |
| 26 | build_cord_dir: /opt/cord |
| 27 | |
| 28 | buildnode: head1 |
| 29 | headnode: head1 |
| 30 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 31 | # Make build config |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 32 | build_targets: |
Zack Williams | 63dd02f | 2017-10-16 22:30:00 -0700 | [diff] [blame] | 33 | - onos-debug |
| 34 | - onboard-openstack |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 35 | |
| 36 | vagrant_up_prereqs: |
| 37 | - prereqs-check |
| 38 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 39 | # Copy cord and config to physical/virtual nodes |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 40 | cord_config_prereqs: |
Zack Williams | 63dd02f | 2017-10-16 22:30:00 -0700 | [diff] [blame] | 41 | - vagrant-ssh-install |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 42 | - copy-cord |
| 43 | |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 44 | prep_buildnode_prereqs: |
| 45 | - copy-cord |
| 46 | - copy-config |
| 47 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 48 | # Run build prep before head prep, when build == head |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 49 | prep_headnode_prereqs: |
| 50 | - prep-buildnode |
| 51 | |
Zack Williams | a5fcefd | 2017-07-27 22:06:33 -0700 | [diff] [blame] | 52 | # Wait until headnode prepped before building containers, for consistent DNS |
| 53 | docker_images_prereqs: |
| 54 | - prep-headnode |
| 55 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 56 | # Start elasticstack before XOS/ONOS, which log to it |
| 57 | start_xos_prereqs: |
| 58 | - deploy-elasticstack |
| 59 | |
| 60 | deploy_onos_prereqs: |
| 61 | - deploy-elasticstack |
| 62 | |
| 63 | # node topology, used to bring up management interfaces |
| 64 | physical_node_list: |
| 65 | - name: head1 |
| 66 | ipv4_last_octet: 1 |
| 67 | aliases: |
| 68 | - head |
| 69 | - name: compute1 |
Zack Williams | a5fcefd | 2017-07-27 22:06:33 -0700 | [diff] [blame] | 70 | ipv4_last_octet: 250 |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 71 | - name: compute2 |
Zack Williams | a5fcefd | 2017-07-27 22:06:33 -0700 | [diff] [blame] | 72 | ipv4_last_octet: 251 |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 73 | |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 74 | # Vagrant VM configuration |
| 75 | vagrant_vms: |
| 76 | - head1 |
| 77 | - compute1 |
Zack Williams | a5fcefd | 2017-07-27 22:06:33 -0700 | [diff] [blame] | 78 | - compute2 |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 79 | |
Zack Williams | 2f56eee | 2017-07-17 09:59:16 -0700 | [diff] [blame] | 80 | head_vm_mem: 16384 |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 81 | head_vm_cpu: 8 |
| 82 | |
| 83 | compute_vm_mem: 16384 |
| 84 | compute_vm_cpu: 8 |
| 85 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 86 | vm_management_network_name: cordmgmt |
| 87 | vm_public_network_name: cordpub |
| 88 | vm_public_network_cidr: "10.230.100.0/24" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 89 | |
| 90 | # images for imagebuilder to build/pull (tagged elsewhere) |
| 91 | docker_image_whitelist: |
| 92 | - "xosproject/xos-base" |
| 93 | - "xosproject/xos" |
| 94 | - "xosproject/xos-client" |
| 95 | - "xosproject/xos-corebuilder" |
| 96 | - "xosproject/xos-gui" |
| 97 | - "xosproject/xos-gui-extension-builder" |
Zack Williams | eeeb6dd | 2017-07-13 10:50:28 -0700 | [diff] [blame] | 98 | - "xosproject/xos-libraries" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 99 | - "xosproject/xos-postgres" |
Zack Williams | eeeb6dd | 2017-07-13 10:50:28 -0700 | [diff] [blame] | 100 | - "xosproject/xos-tosca" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 101 | - "xosproject/xos-ws" |
| 102 | - "xosproject/chameleon" |
| 103 | - "xosproject/gui-extension-rcord" |
| 104 | - "xosproject/gui-extension-sample" |
| 105 | - "xosproject/gui-extension-vtr" |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 106 | - "xosproject/xos-synchronizer-base" |
Scott Baker | 3033386 | 2017-09-08 13:51:55 -0700 | [diff] [blame] | 107 | - "xosproject/addressmanager-synchronizer" |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 108 | - "xosproject/exampleservice-synchronizer" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 109 | - "xosproject/onos-synchronizer" |
| 110 | - "xosproject/openstack-synchronizer" |
| 111 | - "xosproject/vrouter-synchronizer" |
| 112 | - "xosproject/vtn-synchronizer" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 113 | - "gliderlabs/consul-server" |
| 114 | - "gliderlabs/registrator" |
| 115 | - "nginx" |
| 116 | - "onosproject/onos" |
| 117 | - "redis" |
Andy Bavier | 56b12b5 | 2017-08-03 11:46:42 -0700 | [diff] [blame] | 118 | - "node" |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 119 | |
Zack Williams | 0a7ef16 | 2017-07-18 18:15:26 -0700 | [diff] [blame] | 120 | |
| 121 | |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 122 | # Ansible Inventory |
| 123 | inventory_groups: |
| 124 | |
| 125 | config: |
| 126 | localhost: |
| 127 | ansible_connection: local |
| 128 | |
| 129 | build: |
| 130 | head1: |
| 131 | |
| 132 | head: |
| 133 | head1: |
| 134 | |
| 135 | compute: |
| 136 | compute1: |
Zack Williams | a5fcefd | 2017-07-27 22:06:33 -0700 | [diff] [blame] | 137 | compute2: |
Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 138 | |