blob: 4433c2babebb34ce3e74f20196c4b04f14b288bd [file] [log] [blame]
Matteo Scandolob92469d2017-07-28 17:32:00 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations 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 %}