blob: 0017cfcdeb0f1eedefe29fbc952e965947c4025d [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:
Zack Williams07edc6f2017-08-23 22:21:06 -070020 name: "{{ site_humanname }}"
21 abbreviated_name: "{{ site_name }}"
22 login_base: "{{ site_name }}"
23 site_url: "http://{{ site_name }}.opencloud.us/"
Matteo Scandolob92469d2017-07-28 17:32:00 -070024 hosts_nodes: true
25
26# User
27- model: core.User
28 fields:
Zack Williams07edc6f2017-08-23 22:21:06 -070029 email: "{{ xos_admin_user }}"
30 password: "{{ xos_admin_pass }}"
31 firstname: "{{ xos_admin_first }}"
32 lastname: "{{ xos_admin_last }}"
Matteo Scandolob92469d2017-07-28 17:32:00 -070033 is_admin: True
34 relations:
35 site:
36 fields:
Zack Williams07edc6f2017-08-23 22:21:06 -070037 name: "{{ site_humanname }}"
Matteo Scandolob92469d2017-07-28 17:32:00 -070038 model: core.Site
39
40# All other users
41{% for user in xos_users %}
42- model: core.User
43 fields:
Zack Williams07edc6f2017-08-23 22:21:06 -070044 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 Scandolob92469d2017-07-28 17:32:00 -070049 relations:
50 site:
51 fields:
Zack Williams07edc6f2017-08-23 22:21:06 -070052 name: "{{ site_humanname }}"
Matteo Scandolob92469d2017-07-28 17:32:00 -070053 model: core.Site
Zack Williams07edc6f2017-08-23 22:21:06 -070054
55{% endfor %}
56