Parameter encapsulation for Docker role
This commit is contained in:
parent
cf5db1d59c
commit
2014888acc
@ -3,3 +3,4 @@
|
||||
hosts: docker
|
||||
roles:
|
||||
- role: docker
|
||||
docker_daemon_mtu: "{{ external_net_name | net_mtu }}"
|
||||
|
@ -20,3 +20,6 @@ docker_storage_thinpool_autoextend_threshold: 80
|
||||
|
||||
# Percentage by which to extend thin-provisioned docker storage volumes.
|
||||
docker_storage_thinpool_autoextend_percent: 20
|
||||
|
||||
# MTU to pass through to containers not using net=host
|
||||
docker_daemon_mtu: 1500
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"storage-driver": "devicemapper",
|
||||
"mtu": {{ external_net_name | net_mtu }},
|
||||
"mtu": {{ docker_daemon_mtu }},
|
||||
"storage-opts": [
|
||||
"dm.thinpooldev=/dev/mapper/{{ docker_storage_volume_group | replace('-', '--') }}-{{ docker_storage_volume_thinpool | replace('-', '--') }}",
|
||||
"dm.use_deferred_removal=true",
|
||||
|
Loading…
x
Reference in New Issue
Block a user