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: |
| 20 | name: {{ site_name }} |
| 21 | site_url: http://{{ site_name }}.opencloud.us/ |
| 22 | hosts_nodes: true |
| 23 | |
| 24 | # User |
| 25 | - model: core.User |
| 26 | fields: |
| 27 | email: {{ xos_admin_user }} |
| 28 | password: {{ xos_admin_pass }} |
| 29 | firstname: {{ xos_admin_first }} |
| 30 | lastname: {{ xos_admin_last }} |
| 31 | is_admin: True |
| 32 | relations: |
| 33 | site: |
| 34 | fields: |
| 35 | name: {{ site_name }} |
| 36 | model: core.Site |
| 37 | |
| 38 | # All other users |
| 39 | {% for user in xos_users %} |
| 40 | - model: core.User |
| 41 | fields: |
| 42 | email: {{ user.email }} |
| 43 | password: {{ user.password }} |
| 44 | firstname: {{ user.first | default(user.email) }} |
| 45 | lastname: {{ user.last | default("unknown") }} |
| 46 | is_admin: {{ user.admin | default("false") }} |
| 47 | relations: |
| 48 | site: |
| 49 | fields: |
| 50 | name: {{ site_name }} |
| 51 | model: core.Site |
| 52 | {% endfor %} |