Merge "Support arbitrarily named Docker drivers"
This commit is contained in:
commit
4b70c3d7ce
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
# Name of the docker storage driver. Supported values include 'devicemapper'
|
# Name of the docker storage driver.
|
||||||
# and 'overlay'.
|
|
||||||
docker_storage_driver: devicemapper
|
docker_storage_driver: devicemapper
|
||||||
|
|
||||||
# Name of the docker storage LVM volume group.
|
# Name of the docker storage LVM volume group.
|
||||||
|
@ -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
|
- name: Set a fact about the virtualenv on the remote system
|
||||||
set_fact:
|
set_fact:
|
||||||
virtualenv: "{{ ansible_python_interpreter | dirname | dirname }}"
|
virtualenv: "{{ ansible_python_interpreter | dirname | dirname }}"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
],
|
],
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
"storage-driver": "{% if docker_storage_driver == 'devicemapper' %}devicemapper{% else %}overlay{% endif %}",
|
"storage-driver": "{{ docker_storage_driver }}",
|
||||||
{% if docker_daemon_mtu %}
|
{% if docker_daemon_mtu %}
|
||||||
"mtu": {{ docker_daemon_mtu }},
|
"mtu": {{ docker_daemon_mtu }},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# Docker configuration.
|
# Docker configuration.
|
||||||
|
|
||||||
# Name of the docker storage driver. Supported values include 'devicemapper'
|
# Name of the docker storage driver. Default is 'devicemapper'.
|
||||||
# and 'overlay'.
|
|
||||||
#docker_storage_driver:
|
#docker_storage_driver:
|
||||||
|
|
||||||
# Name of the docker storage LVM volume group.
|
# Name of the docker storage LVM volume group.
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds support for arbitrary Docker storage drivers, configured via
|
||||||
|
``docker_storage_driver``. Previously only ``devicemapper`` and ``overlay``
|
||||||
|
were supported.
|
Loading…
Reference in New Issue
Block a user