remove DEVS from storage config if no pv defined

This commit is contained in:
Robert Kaussow 2018-12-13 18:56:21 +01:00
parent 9c7d801eea
commit aa54d73564

View File

@ -1,6 +1,9 @@
#jinja2: lstrip_blocks: True
# {{ ansible_managed }} # {{ ansible_managed }}
STORAGE_DRIVER=overlay2 STORAGE_DRIVER=overlay2
{% if dockerengine_storage_pvs is defined %}
DEVS={{ dockerengine_storage_pvs }} DEVS={{ dockerengine_storage_pvs }}
{% endif %}
CONTAINER_ROOT_LV_NAME={{ dockerengine_storage_lv }} CONTAINER_ROOT_LV_NAME={{ dockerengine_storage_lv }}
CONTAINER_ROOT_LV_SIZE={{ dockerengine_storage_size }} CONTAINER_ROOT_LV_SIZE={{ dockerengine_storage_size }}
CONTAINER_ROOT_LV_MOUNT_PATH={{ dockerengine_base_dir }} CONTAINER_ROOT_LV_MOUNT_PATH={{ dockerengine_base_dir }}