blob: 2d5dfd11fb800fbb3c9bb883f32206d866190fe8 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- custom_types/xos.yaml
description: deployment config, generated by platform-install
topology_template:
node_templates:
# Flavors
{% for flavor in deployment_flavors %}
{{ flavor }}:
type: tosca.nodes.Flavor
{% endfor %}
# Deployment
{{ deployment_type }}:
type: tosca.nodes.Deployment
requirements:
{% for flavor in deployment_flavors %}
- {{ flavor }}:
node: {{ flavor }}
relationship: tosca.relationships.SupportsFlavor
{% endfor %}
# Site
{{ site_name }}:
type: tosca.nodes.Site
properties:
display_name: {{ site_humanname }}
site_url: http://{{ site_name }}.opencloud.us/
hosts_nodes: true
requirements:
- deployment:
node: {{ deployment_type }}
relationship: tosca.relationships.MemberOfDeployment
# Attach the Tenant view to the deployment
Tenant:
type: tosca.nodes.DashboardView
properties:
no-create: true
no-delete: true
requirements:
- deployment:
node: {{ deployment_type }}
relationship: tosca.relationships.SupportsDeployment
# XOS Users
{% for user in xos_users %}
{{ user.email }}:
type: tosca.nodes.User
properties:
password: {{ user.password }}
firstname: {{ user.first | default(user.email) }}
lastname: {{ user.last | default("unknown") }}
is_admin: {{ user.admin | default("false") }}
requirements:
- site:
node: {{ site_name }}
relationship: tosca.relationships.MemberOfSite
- tenant_dashboard:
node: Tenant
relationship: tosca.relationships.UsesDashboard
{% endfor %}