6450060e90d689787f60973b5059de4a2e7eae36
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / keystone.yaml
1     keystone:
2       charm: "./{{ ubuntu.release }}/keystone"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         "": *oam-space
7         public: *public-space
8         admin: *admin-space
9         internal: *internal-space
10         shared-db: *internal-space
11 {% endif %}
12       options:
13         openstack-origin: *openstack-origin
14 {% if os.git_repo.origin_git %}
15         openstack-origin-git: "{{ os.git_repo.branch }}"
16 {% endif %}
17         region: *openstack-region
18         admin-role: {{ os.admin.role }}
19         keystone-admin-role: {{ os.admin.role }}
20         preferred-api-version: 3
21 {% if os.api.ssl %}
22         ssl_ca: *ssl_ca
23         ssl_cert: *ssl_cert
24         ssl_key: *ssl_key
25         #use-https: 'yes'
26         #https-service-endpoints: 'True'
27         os-public-hostname: *hostname_keystone_public
28         os-internal-hostname: *hostname_keystone_public
29         os-admin-hostname: *hostname_keystone_public
30 {% endif %}
31 {% if os.network.ipv6 %}
32         prefer-ipv6: {{ os.network.ipv6 }}
33 {% endif %}
34 {% if os.api.worker_multiplier %}
35         worker-multiplier: *worker-multiplier
36 {% endif %}
37         admin-password: {{ opnfv.admin_password | default(os.admin.password) }}
38         admin-token: {{ os.admin.name }}
39 {% if os.ha.mode == 'ha' %}
40         vip: *keystone-vip
41 {% endif %}
42       to:
43 {% for unit_id in to_select() %}
44         - "lxd:nodes/{{ unit_id }}"
45 {% endfor %}