Merge "Add variable to configure storage options"
This commit is contained in:
commit
f6d1ea1ca7
@ -117,6 +117,20 @@ cloudkitty_output_backend: cloudkitty.backend.file.FileBackend
|
|||||||
cloudkitty_output_pipeline: osrf
|
cloudkitty_output_pipeline: osrf
|
||||||
cloudkitty_output_basepath: /var/cloudkitty/reports
|
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_host: "{{ openstack_db_setup_host | default('localhost') }}"
|
||||||
cloudkitty_db_setup_python_interpreter: >-
|
cloudkitty_db_setup_python_interpreter: >-
|
||||||
{{
|
{{
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added a variable ``cloudkitty_storage`` that allows to easily define
|
||||||
|
storage configuration options for Cloudkitty.
|
@ -88,5 +88,12 @@ backend = {{ cloudkitty_output_backend }}
|
|||||||
[state]
|
[state]
|
||||||
|
|
||||||
[storage]
|
[storage]
|
||||||
backend = sqlalchemy
|
backend = {{ cloudkitty_storage['backend'] }}
|
||||||
version = 1
|
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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user