Merge "Add variable to configure storage options"

This commit is contained in:
Zuul
2024年06月04日 22:59:16 +00:00
committed by Gerrit Code Review

View File

@@ -117,6 +117,20 @@ cloudkitty_output_backend: cloudkitty.backend.file.FileBackend
cloudkitty_output_pipeline:osrf
cloudkitty_output_basepath:/var/cloudkitty/reports
# Please define a storage for CloudKitty data in as a nested dictionary.
# Keys `backend` and `version` are required. `config` contains extra
# configuration for the storage backend when applicable.
# For example:
# cloudkitty_storage:
# backend: opensearch
# version: 2
# config:
# host = http://localhost:9200
# index_name = cloudkitty
cloudkitty_storage:
backend:sqlalchemy
version:1
cloudkitty_db_setup_host:"{{ openstack_db_setup_host | default('localhost') }}"
cloudkitty_db_setup_python_interpreter:>-
{{

View File

@@ -0,0 +1,5 @@
---
features:
- |
Added a variable ``cloudkitty_storage`` that allows to easily define
storage configuration options for Cloudkitty.

View File

@@ -88,5 +88,12 @@ backend = {{ cloudkitty_output_backend }}
[state]
[storage]
backend = sqlalchemy
version = 1
backend = {{ cloudkitty_storage['backend'] }}
version = {{ cloudkitty_storage['version'] }}
{% if 'config' in cloudkitty_storage %}
[storage_{{ cloudkitty_storage['backend'] }}]
{% for item, value in cloudkitty_storage['config'].items() %}
{{ item }} = {{ value }}
{% endfor %}
{% endif %}
Reference in New Issue
openstack/openstack-ansible-os_cloudkitty
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.