blob: d1c46267839846e342c313e777e0d8853e009aef [file] [log] [blame]
Zack Williams682450e2016-11-19 09:04:41 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
5
6description: deployment config, generated by platform-install
7
8topology_template:
9 node_templates:
10
11# Flavors
12
13{% for flavor in deployment_flavors %}
14 {{ flavor }}:
15 type: tosca.nodes.Flavor
16
17{% endfor %}
18
19# Deployment
20 {{ deployment_type }}:
21 type: tosca.nodes.Deployment
22 requirements:
23{% for flavor in deployment_flavors %}
Zack Williams1396aa32017-06-06 10:28:29 -070024 - {{ flavor }}:
25 node: {{ flavor }}
26 relationship: tosca.relationships.SupportsFlavor
Zack Williams682450e2016-11-19 09:04:41 -070027
28{% endfor %}
29
30# Site
31 {{ site_name }}:
32 type: tosca.nodes.Site
33 properties:
Zack Williams1396aa32017-06-06 10:28:29 -070034 display_name: {{ site_humanname }}
35 site_url: http://{{ site_name }}.opencloud.us/
36 hosts_nodes: true
Zack Williams682450e2016-11-19 09:04:41 -070037 requirements:
38 - deployment:
39 node: {{ deployment_type }}
40 relationship: tosca.relationships.MemberOfDeployment
41
42# Attach the Tenant view to the deployment
43 Tenant:
44 type: tosca.nodes.DashboardView
45 properties:
Zack Williams1396aa32017-06-06 10:28:29 -070046 no-create: true
47 no-delete: true
Zack Williams682450e2016-11-19 09:04:41 -070048 requirements:
Zack Williams1396aa32017-06-06 10:28:29 -070049 - deployment:
50 node: {{ deployment_type }}
51 relationship: tosca.relationships.SupportsDeployment
Zack Williams682450e2016-11-19 09:04:41 -070052
53# XOS Users
Zack Williamsa2763112017-01-03 11:38:38 -070054# Default admin user account
55 {{ xos_admin_user }}:
56 type: tosca.nodes.User
57 properties:
58 password: {{ xos_admin_pass }}
59 firstname: {{ xos_admin_first }}
60 lastname: {{ xos_admin_last }}
61 is_admin: True
62 requirements:
63 - site:
64 node: {{ site_name }}
65 relationship: tosca.relationships.MemberOfSite
66 - tenant_dashboard:
Zack Williams1396aa32017-06-06 10:28:29 -070067 node: Tenant
68 relationship: tosca.relationships.UsesDashboard
Zack Williamsa2763112017-01-03 11:38:38 -070069
70# All other users
Zack Williams682450e2016-11-19 09:04:41 -070071{% for user in xos_users %}
72 {{ user.email }}:
73 type: tosca.nodes.User
74 properties:
75 password: {{ user.password }}
76 firstname: {{ user.first | default(user.email) }}
77 lastname: {{ user.last | default("unknown") }}
78 is_admin: {{ user.admin | default("false") }}
79 requirements:
80 - site:
81 node: {{ site_name }}
82 relationship: tosca.relationships.MemberOfSite
83 - tenant_dashboard:
Zack Williams1396aa32017-06-06 10:28:29 -070084 node: Tenant
85 relationship: tosca.relationships.UsesDashboard
Zack Williams682450e2016-11-19 09:04:41 -070086
87{% endfor %}
88