aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/skyline/templates/skyline.yaml.j2
blob: 9d0ae074101f5678361acaeb2ebd59be4e150d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
default:
  access_token_expire: {{ skyline_access_token_expire_seconds }}
  access_token_renew: {{ skyline_access_token_renew_seconds }}
  cors_allow_origins: {{ skyline_backend_cors_origins }}
  database_url: mysql+pymysql://{{ skyline_database_user }}:{{ skyline_database_password }}@{{ skyline_database_address }}/{{ skyline_database_name }}{{ '?ssl_ca=' ~ openstack_cacert if skyline_database_enable_tls_internal | bool }}
  debug: {{ skyline_logging_debug }}
  log_dir: {{ log_dir }}
{% if enable_prometheus | bool  %}
  prometheus_basic_auth_password: "{{ prometheus_skyline_password }}"
  prometheus_basic_auth_user: "{{ prometheus_skyline_user }}"
  prometheus_enable_basic_auth: true
  prometheus_endpoint: "{{ prometheus_internal_endpoint }}"
{% endif %}
  secret_key: {{ skyline_secret_key }}
  session_name: {{ skyline_session_name }}
openstack:
{% if skyline_base_domains_ignore | bool %}
  base_domains:
{%     if enable_heat | bool %}
  - heat_user_domain
{%     endif %}
{%     if enable_magnum | bool %}
  - magnum
{%     endif %}
{% endif %}
  default_region: {{ openstack_region_name }}
  extension_mapping:
{% if enable_neutron_port_forwarding | bool %}
    floating-ip-port-forwarding: neutron_port_forwarding
{% endif %}
{% if enable_neutron_qos | bool %}
    qos: neutron_qos
{% endif %}
{% if enable_neutron_vpnaas | bool %}
    vpnaas: neutron_vpn
{% endif %}
  keystone_url: {{ skyline_keystone_url }}
  nginx_prefix: {{ skyline_nginx_prefix }}
  reclaim_instance_interval: {{ skyline_reclaim_instance_interval }}
  service_mapping:
{% if enable_ironic | bool %}
    baremetal: ironic
{% endif %}
{% if enable_nova | bool %}
    compute: nova
{% endif %}
{% if enable_zun | bool %}
    container: zun
{% endif %}
{% if enable_magnum | bool %}
    container-infra: magnum
{% endif %}
{% if enable_trove | bool %}
    database: trove
{% endif %}
{% if enable_designate | bool %}
    dns: designate
{% endif %}
{% if enable_keystone | bool %}
    identity: keystone
{% endif %}
{% if enable_glance | bool %}
    image: glance
{% endif %}
{% if enable_masakari | bool %}
    instance-ha: masakari
{% endif %}
{% if enable_barbican | bool %}
    key-manager: barbican
{% endif %}
{% if enable_octavia | bool %}
    load-balancer: octavia
{% endif %}
{% if enable_neutron | bool %}
    network: neutron
{% endif %}
{% if enable_ceph_rgw | bool or skyline_external_swift | bool %}
    object-store: swift
{% endif %}
{% if enable_heat | bool %}
    orchestration: heat
{% endif %}
{% if enable_placement | bool %}
    placement: placement
{% endif %}
{% if enable_manila | bool %}
    sharev2: manilav2
{% endif %}
{% if enable_cinder | bool %}
    block-storage: cinder
{% endif %}
  sso_enabled: {{ skyline_enable_sso | bool }}
{% if skyline_enable_sso | bool %}
  sso_protocols:
    - openid
  sso_region: {{ openstack_region_name }}
{% endif %}
  system_admin_roles:
{% for skyline_system_admin_role in skyline_system_admin_roles %}
  - {{ skyline_system_admin_role }}
{% endfor %}
  system_project: service
  system_project_domain: {{ default_project_domain_name }}
  system_reader_roles:
{% for skyline_system_reader_role in skyline_system_reader_roles %}
  - {{ skyline_system_reader_role }}
{% endfor %}
  system_user_domain: {{ default_user_domain_name }}
  system_user_name: skyline
  system_user_password: {{ skyline_keystone_password }}