This change adds the missing region setting in service_credentials. In a shared keystone multi region setup, this setting is mandatory in order for ceilometer to properly find the services it relies upon from the same region it resides in. Without this setting, the ceilometer-upgrade action will fail (along with any other calls made to ceilometer) if the first endpoint returned by keystone is from a different region. Change-Id: Ie14df0f5fc7ee18072091dbdb3ada817615a6670 Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
80 lines
2.1 KiB
Plaintext
80 lines
2.1 KiB
Plaintext
# rocky
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# ceilometer configuration file maintained by Juju
|
|
# local changes may be overwritten.
|
|
###############################################################################
|
|
[DEFAULT]
|
|
debug = {{ debug }}
|
|
verbose = {{ verbose }}
|
|
use_syslog = {{ use_syslog }}
|
|
event_pipeline_cfg_file = /etc/ceilometer/event_pipeline.yaml
|
|
|
|
{% if gnocchi_url -%}
|
|
meter_dispatchers = gnocchi
|
|
event_dispatchers = gnocchi
|
|
{% elif db_host or db_mongo_servers -%}
|
|
meter_dispatchers = database
|
|
{%- endif %}
|
|
|
|
{% if transport_url -%}
|
|
transport_url = {{ transport_url }}
|
|
{%- endif %}
|
|
|
|
[notification]
|
|
workers = {{ workers }}
|
|
{% if messaging_urls -%}
|
|
{% for item in messaging_urls -%}
|
|
messaging_urls = {{ item }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
[polling]
|
|
batch_size = {{ polling_batch_size }}
|
|
|
|
{% if service_host -%}
|
|
[service_credentials]
|
|
auth_url = {{ service_protocol }}://{{ service_host }}:{{ service_port }}
|
|
project_name = {{ admin_tenant_name }}
|
|
username = {{ admin_user }}
|
|
password = {{ admin_password }}
|
|
region_name = {{ region }}
|
|
{% if api_version == "3" -%}
|
|
project_domain_name = {{ admin_domain_name }}
|
|
user_domain_name = {{ admin_domain_name }}
|
|
{% else -%}
|
|
project_domain_name = default
|
|
user_domain_name = default
|
|
{% endif -%}
|
|
auth_type = password
|
|
{% if use_internal_endpoints -%}
|
|
interface = internalURL
|
|
{%- endif %}
|
|
{% endif -%}
|
|
|
|
{% if db_host or db_mongo_servers -%}
|
|
[database]
|
|
{% if db_replset: -%}
|
|
connection = mongodb://{{ db_mongo_servers }}/{{ db_name }}?readPreference=primaryPreferred&replicaSet={{ db_replset }}
|
|
mongodb_replica_set = {{ db_replset }}
|
|
{% else -%}
|
|
connection = mongodb://{{ db_host }}:{{ db_port }}/{{ db_name }}
|
|
{% endif %}
|
|
metering_time_to_live = {{ metering_time_to_live }}
|
|
event_time_to_live = {{ event_time_to_live }}
|
|
{%- endif %}
|
|
|
|
[publisher]
|
|
telemetry_secret = {{ metering_secret }}
|
|
|
|
{% if gnocchi_url -%}
|
|
[dispatcher_gnocchi]
|
|
filter_service_activity = False
|
|
archive_policy = {{ archive_policy }}
|
|
url = {{ gnocchi_url }}
|
|
{%- endif %}
|
|
|
|
{% include "section-keystone-authtoken-mitaka" %}
|
|
|
|
{% include "section-oslo-messaging-rabbit-ocata" %}
|