Andy Bavier | d048039 | 2018-03-21 07:52:14 -0700 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | # Copyright 2018-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # Override XOS admin user and password values set in values.yaml |
| 18 | # |
| 19 | # helm install -f examples/adminuser-values.yaml xos-core -n xos-core |
| 20 | # helm install -f examples/adminuser-values.yaml xos-profiles/rcord-lite -n rcord-lite |
| 21 | |
| 22 | xosAdminUser: &adminuser "cordadmin@foobar.com" |
| 23 | xosAdminPassword: &adminpass "AVerySecurePassword" |
| 24 | |
| 25 | # initial_data_config is a list. |
| 26 | # I don’t know how to override individual list items... |
| 27 | configs: |
| 28 | initial_data_config: |
| 29 | - model: core.Site |
| 30 | fields: |
Andy Bavier | 17697fe | 2018-04-03 08:12:18 -0700 | [diff] [blame] | 31 | name: "mysite" |
| 32 | abbreviated_name: "mysite" |
| 33 | login_base: "mysite" |
Andy Bavier | d048039 | 2018-03-21 07:52:14 -0700 | [diff] [blame] | 34 | site_url: "http://opencord.org/" |
| 35 | hosts_nodes: true |
| 36 | - model: core.User |
| 37 | fields: |
| 38 | email: *adminuser |
| 39 | password: *adminpass |
| 40 | firstname: "XOS" |
| 41 | lastname: "User" |
| 42 | is_admin: True |
| 43 | relations: |
| 44 | site: |
| 45 | fields: |
Andy Bavier | 17697fe | 2018-04-03 08:12:18 -0700 | [diff] [blame] | 46 | name: "mysite" |
Andy Bavier | d048039 | 2018-03-21 07:52:14 -0700 | [diff] [blame] | 47 | model: core.Site |
| 48 | |
| 49 | serviceOverride: &serviceOverride |
| 50 | serviceConfig: |
| 51 | accessor: |
| 52 | username: *adminuser |
| 53 | password: *adminpass |
| 54 | |
| 55 | |
| 56 | # Update the username / password for all the services |
| 57 | addressmanager: *serviceOverride |
| 58 | fabric: *serviceOverride |
| 59 | onos-service: *serviceOverride |
| 60 | volt: *serviceOverride |
| 61 | vsg-hw: *serviceOverride |