Merge "Support arbitrarily named Docker drivers"

This commit is contained in:
Zuul 2019-05-15 13:42:53 +00:00 committed by Gerrit Code Review
commit 4b70c3d7ce
5 changed files with 9 additions and 12 deletions

View File

@ -1,6 +1,5 @@
---
# Name of the docker storage driver. Supported values include 'devicemapper'
# and 'overlay'.
# Name of the docker storage driver.
docker_storage_driver: devicemapper
# Name of the docker storage LVM volume group.

View File

@ -1,11 +1,4 @@
---
- name: Fail when the storage driver is invalid
fail:
msg: >
Storage driver {{ docker_storage_driver }} is invalid. Valid drivers
include 'devicemapper' and 'overlay'.
when: docker_storage_driver not in ['devicemapper', 'overlay']
- name: Set a fact about the virtualenv on the remote system
set_fact:
virtualenv: "{{ ansible_python_interpreter | dirname | dirname }}"

View File

@ -6,7 +6,7 @@
{%- endfor %}
],
{%- endif %}
"storage-driver": "{% if docker_storage_driver == 'devicemapper' %}devicemapper{% else %}overlay{% endif %}",
"storage-driver": "{{ docker_storage_driver }}",
{% if docker_daemon_mtu %}
"mtu": {{ docker_daemon_mtu }},
{% endif %}

View File

@ -2,8 +2,7 @@
###############################################################################
# Docker configuration.
# Name of the docker storage driver. Supported values include 'devicemapper'
# and 'overlay'.
# Name of the docker storage driver. Default is 'devicemapper'.
#docker_storage_driver:
# Name of the docker storage LVM volume group.

View File

@ -0,0 +1,6 @@
---
features:
- |
Adds support for arbitrary Docker storage drivers, configured via
``docker_storage_driver``. Previously only ``devicemapper`` and ``overlay``
were supported.