Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 1 | {# |
| 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 | #} |
| 16 | |
| 17 | # Site |
| 18 | - model: core.Site |
| 19 | fields: |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 20 | name: "{{ site_humanname }}" |
| 21 | abbreviated_name: "{{ site_name }}" |
| 22 | login_base: "{{ site_name }}" |
| 23 | site_url: "http://{{ site_name }}.opencloud.us/" |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 24 | hosts_nodes: true |
| 25 | |
| 26 | # User |
| 27 | - model: core.User |
| 28 | fields: |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 29 | email: "{{ xos_admin_user }}" |
| 30 | password: "{{ xos_admin_pass }}" |
| 31 | firstname: "{{ xos_admin_first }}" |
| 32 | lastname: "{{ xos_admin_last }}" |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 33 | is_admin: True |
| 34 | relations: |
| 35 | site: |
| 36 | fields: |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 37 | name: "{{ site_humanname }}" |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 38 | model: core.Site |
| 39 | |
| 40 | # All other users |
| 41 | {% for user in xos_users %} |
| 42 | - model: core.User |
| 43 | fields: |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 44 | email: "{{ user.email }}" |
| 45 | password: "{{ user.password }}" |
| 46 | firstname: "{{ user.first | default(user.email) }}" |
| 47 | lastname: "{{ user.last | default("unknown") }}" |
| 48 | is_admin: "{{ user.admin | default("false") }}" |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 49 | relations: |
| 50 | site: |
| 51 | fields: |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 52 | name: "{{ site_humanname }}" |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 53 | model: core.Site |
Zack Williams | 07edc6f | 2017-08-23 22:21:06 -0700 | [diff] [blame] | 54 | |
| 55 | {% endfor %} |
| 56 | |