diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-12-19 11:02:28 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-12-19 16:22:37 -0500 |
commit | 5c6af565bfae851b493c8b4670d56f69016de3bb (patch) | |
tree | e6804ce02706bbd945f34e66e54d2ed1c274c616 /roles/container_runtime/defaults | |
parent | 7ab8e67bfc62e16466e3fd211fded63f16583403 (diff) | |
download | openshift-5c6af565bfae851b493c8b4670d56f69016de3bb.tar.gz openshift-5c6af565bfae851b493c8b4670d56f69016de3bb.tar.bz2 openshift-5c6af565bfae851b493c8b4670d56f69016de3bb.tar.xz openshift-5c6af565bfae851b493c8b4670d56f69016de3bb.zip |
Adding support for docker-storage-setup on overlay
Diffstat (limited to 'roles/container_runtime/defaults')
-rw-r--r-- | roles/container_runtime/defaults/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/container_runtime/defaults/main.yml b/roles/container_runtime/defaults/main.yml index dd185cb38..561edcaca 100644 --- a/roles/container_runtime/defaults/main.yml +++ b/roles/container_runtime/defaults/main.yml @@ -55,6 +55,20 @@ openshift_docker_is_node_or_master: "{{ True if inventory_hostname in (groups['o docker_alt_storage_path: /var/lib/containers/docker docker_default_storage_path: /var/lib/docker +docker_storage_path: "{{ docker_default_storage_path }}" +docker_storage_size: 40G +docker_storage_setup_options: + vg: docker_vg + data_size: 99%VG + storage_driver: overlay2 + root_lv_name: docker-root-lv + root_lv_size: 100%FREE + root_lv_mount_path: "{{ docker_storage_path }}" +docker_storage_extra_options: +- "--storage-opt overlay2.override_kernel_check=true" +- "--storage-opt overlay2.size={{ docker_storage_size }}" +- "--graph={{ docker_storage_path}}" + # Set local versions of facts that must be in json format for container-daemon.json # NOTE: When jinja2.9+ is used the container-daemon.json file can move to using tojson |