blob: 26f0e80bfd83c70e8159340edd5382b1d83cac6b [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:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080020 name: "{{ site_name }}"
Zack Williams07edc6f2017-08-23 22:21:06 -070021 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:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080037 name: "{{ site_name }}"
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:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080052 name: "{{ site_name }}"
Matteo Scandolob92469d2017-07-28 17:32:00 -070053 model: core.Site
Zack Williams07edc6f2017-08-23 22:21:06 -070054
55{% endfor %}
56