Allow ceph clients to be enabled or disabled

Some clients, like the immutable object cache need
to be optional.

Change-Id: I5e78521a8530ef58bba5d17e96213391747e29bb
This commit is contained in:
Jonathan Rosser 2023-05-10 14:21:46 +01:00
parent fdd2aaa00b
commit f7cd0b0eda
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ ceph_client_filtered_clients: |-
(cinder_service_backup_driver is defined and
'ceph' in cinder_service_backup_driver))) %}
{% for client in comp.client %}
{% set _ = clients.append(client) %}
{% if client['enabled'] | default(true) | bool %}
{% set _ = clients.append(client) %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}