Add section-placement

The placement config may be useful among more than one charm as
more services start to use the placement service. This patch adds
a single source of placement sectional config.

Change-Id: Id99e750f7b43dd0c893790eaa6fb79f7ce064f12
Related-Bug: 1850691
This commit is contained in:
Corey Bryant 2019-10-30 19:56:42 +00:00
parent 34af2ff514
commit c44ae96eff
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[placement]
{% if identity_credentials.auth_host -%}
auth_url = {{ identity_credentials.auth_protocol }}://{{ identity_credentials.auth_host }}:{{ identity_credentials.auth_port }}
auth_type = password
project_domain_name = {{ identity_credentials.credentials_project_domain_name }}
user_domain_name = {{ identity_credentials.credentials_user_domain_name }}
project_name = services
username = {{ identity_credentials.credentials_username }}
password = {{ identity_credentials.credentials_password }}
{% endif -%}
{% if options.region -%}
os_region_name = {{ options.region }}
{% endif -%}
randomize_allocation_candidates = true