~openstack-charmers-next/charms/xenial/swift-storage/trunk

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/openstack/templates/section-keystone-authtoken

  • Committer: Edward Hope-Morley
  • Date: 2016-03-24 11:11:58 UTC
  • Revision ID: edward.hope-morley@canonical.com-20160324111158-4whr78jd2v9yihw2
Add hardening support

Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks.
Also add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: If0d1e10b58ed506e0aca659f30120b8d5c96c04f

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% if auth_host -%}
2
 
{% if api_version == '3' -%}
3
2
[keystone_authtoken]
4
 
auth_url = {{ service_protocol }}://{{ service_host }}:{{ service_port }}
 
3
auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}
 
4
auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}
 
5
auth_plugin = password
 
6
project_domain_id = default
 
7
user_domain_id = default
5
8
project_name = {{ admin_tenant_name }}
6
9
username = {{ admin_user }}
7
10
password = {{ admin_password }}
8
 
project_domain_name = default
9
 
user_domain_name = default
10
 
auth_plugin = password
11
 
{% else -%}
12
 
[keystone_authtoken]
13
 
identity_uri = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/{{ auth_admin_prefix }}
14
 
auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/{{ service_admin_prefix }}
15
 
admin_tenant_name = {{ admin_tenant_name }}
16
 
admin_user = {{ admin_user }}
17
 
admin_password = {{ admin_password }}
18
11
signing_dir = {{ signing_dir }}
19
12
{% endif -%}
20
 
{% endif -%}