Merge pull request #56 from openstack-charmers/rejig-template-fragments
Rejig template parts
This commit is contained in:
commit
e6e421fa3d
@ -0,0 +1,3 @@
|
|||||||
|
{% if shared_db.database_host -%}
|
||||||
|
connection = {{ shared_db.database_type }}://{{ shared_db.database_user }}:{{ shared_db.database_password }}@{{ shared_db.database_host }}/{{ shared_db.database }}{% if shared_db.database_ssl_ca %}?ssl_ca={{ shared_db.database_ssl_ca }}{% if shared_db.database_ssl_cert %}&ssl_cert={{ shared_db.database_ssl_cert }}&ssl_key={{ shared_db.database_ssl_key }}{% endif %}{% endif %}
|
||||||
|
{% endif -%}
|
10
ops-sunbeam/shared_code/templates/parts/identity-connection
Normal file
10
ops-sunbeam/shared_code/templates/parts/identity-connection
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{% if identity_service.internal_host -%}
|
||||||
|
www_authenticate_uri = {{ identity_service.internal_protocol }}://{{ identity_service.internal_host }}:{{ identity_service.internal_port }}
|
||||||
|
auth_url = {{ identity_service.internal_protocol }}://{{ identity_service.internal_host }}:{{ identity_service.internal_port }}
|
||||||
|
auth_type = password
|
||||||
|
project_domain_name = {{ identity_service.service_domain_name }}
|
||||||
|
user_domain_name = {{ identity_service.service_domain_name }}
|
||||||
|
project_name = {{ identity_service.service_project_name }}
|
||||||
|
username = {{ identity_service.service_user_name }}
|
||||||
|
password = {{ identity_service.service_password }}
|
||||||
|
{% endif -%}
|
@ -1,7 +1,3 @@
|
|||||||
[database]
|
[database]
|
||||||
{% if shared_db.database_host -%}
|
{% include "parts/database-connection" %}
|
||||||
connection = {{ shared_db.database_type }}://{{ shared_db.database_user }}:{{ shared_db.database_password }}@{{ shared_db.database_host }}/{{ shared_db.database }}{% if shared_db.database_ssl_ca %}?ssl_ca={{ shared_db.database_ssl_ca }}{% if shared_db.database_ssl_cert %}&ssl_cert={{ shared_db.database_ssl_cert }}&ssl_key={{ shared_db.database_ssl_key }}{% endif %}{% endif %}
|
|
||||||
{% else -%}
|
|
||||||
connection = sqlite:////var/lib/cinder/cinder.db
|
|
||||||
{% endif -%}
|
|
||||||
connection_recycle_time = 200
|
connection_recycle_time = 200
|
||||||
|
@ -1,11 +1,2 @@
|
|||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
{% if identity_service.internal_host -%}
|
{% include "parts/identity-connection" %}
|
||||||
www_authenticate_uri = {{ identity_service.internal_protocol }}://{{ identity_service.internal_host }}:{{ identity_service.internal_port }}
|
|
||||||
auth_url = {{ identity_service.internal_protocol }}://{{ identity_service.internal_host }}:{{ identity_service.internal_port }}
|
|
||||||
auth_type = password
|
|
||||||
project_domain_name = {{ identity_service.service_domain_name }}
|
|
||||||
user_domain_name = {{ identity_service.service_domain_name }}
|
|
||||||
project_name = {{ identity_service.service_project_name }}
|
|
||||||
username = {{ identity_service.service_user_name }}
|
|
||||||
password = {{ identity_service.service_password }}
|
|
||||||
{% endif -%}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user