charm-cinder/templates/parts/backends
Samuel Walladge 7f97a6d30e Add support to configure scheduler_default_filters
Add new config option: `scheduler-default-filters`.
This is unset by default, so cinder retains the default value for
scheduler_default_filters.

Closes-Bug: #1956727
Change-Id: I9777bf8fe5ddbb69689db60c2790e8a4be57e1ab
2022-01-25 11:04:40 +10:30

52 lines
1.3 KiB
Plaintext

{% if sections and 'DEFAULT' in sections -%}
{% for key, value in sections['DEFAULT'] -%}
{{ key }} = {{ value }}
{% endfor %}
{%- endif %}
{% if scheduler_default_filters -%}
scheduler_default_filters = {{ scheduler_default_filters }}
{% endif -%}
{% if backends -%}
enabled_backends = {{ backends }}
{%- endif %}
{% if default_volume_type -%}
default_volume_type = {{ default_volume_type }}
{%- endif %}
[backend_defaults]
{% if image_volume_cache_enabled %}
image_volume_cache_enabled = True
image_volume_cache_max_size_gb = {{ image_volume_cache_max_size_gb }}
image_volume_cache_max_count = {{ image_volume_cache_max_count }}
{%- endif %}
{% for section in sections -%}
{% if section != 'DEFAULT' -%}
[{{ section }}]
{% for key, value in sections[section] -%}
{{ key }} = {{ value }}
{% endfor %}
{% endif %}
{%- endfor %}
{% if sectional_default_config -%}
{% if volume_driver -%}
[LVM]
volumes_dir = {{ volumes_dir }}
volume_name_template = {{ volume_name_template }}
volume_group = {{ volume_group }}
volume_driver = {{ volume_driver }}
volume_backend_name = {{ volume_backend_name }}
{% endif -%}
{% if rbd_pool -%}
[CEPH]
rbd_pool = {{ rbd_pool }}
host = {{ host }}
rbd_user = {{ rbd_user }}
volume_driver = {{ ceph_volume_driver }}
rbd_ceph_conf = {{ rbd_ceph_conf }}
{% endif %}
{% endif %}