blob: a0187e3d17cba97625867edca55d0f3ec7db2178 [file] [log] [blame]
{%- if controller is defined %}
{%- set _version = controller.get('version', false) %}
{%- elif volume is defined %}
{%- set _version = volume.get('version', false) %}
{%- endif %}
[{{ backend_name }}]
host={{ backend.get('host', grains.host) }}
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name={{ backend_name }}
{%- if backend.lvm_type is defined %}
lvm_type = {{ backend.lvm_type }}
{%- endif %}
{%- if _version in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata", "pike"] %}
iscsi_helper = {{ backend.get('iscsi_helper', 'tgtadm') }}
{%- else %}
target_helper = {{ backend.get('target_helper', backend.get('iscsi_helper', 'tgtadm')) }}
{%- endif %}
volume_group = {{ backend.volume_group }}