Skip to content
Snippets Groups Projects
Commit 4b70c3d7 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Support arbitrarily named Docker drivers"

parents 7bec3fe3 c6425d08
No related branches found
No related tags found
No related merge requests found
---
# 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.
......
---
- 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 }}"
......
......@@ -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 %}
......
......@@ -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.
......
---
features:
- |
Adds support for arbitrary Docker storage drivers, configured via
``docker_storage_driver``. Previously only ``devicemapper`` and ``overlay``
were supported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment