-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for docker-storage-setup on overlay
- Loading branch information
Kenny Woodson
committed
Dec 19, 2017
1 parent
7ab8e67
commit 9221cf1
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
roles/container_runtime/tasks/docker_storage_setup_overlay.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Setup the docker-storage for overlay | ||
template: | ||
src: docker_storage_setup.j2 | ||
dest: /etc/sysconfig/docker-storage-setup | ||
owner: root | ||
group: root | ||
mode: 0664 | ||
when: | ||
- container_runtime_docker_storage_driver == 'overlay2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Edit this file to override any configuration options specified in | ||
# /usr/lib/docker-storage-setup/docker-storage-setup. | ||
# | ||
# For more details refer to "man docker-storage-setup" | ||
DEVS={{ container_runtime_docker_storage_setup_device }} | ||
VG={{ docker_storage_setup_options.vg }} | ||
DATA_SIZE={{ docker_storage_setup_options.data_size }} | ||
STORAGE_DRIVER="{{ docker_storage_setup_options.storage_driver }}" | ||
CONTAINER_ROOT_LV_NAME="{{ docker_storage_setup_options.root_lv_name }}" | ||
CONTAINER_ROOT_LV_SIZE="{{ docker_storage_setup_options.root_lv_size }}" | ||
CONTAINER_ROOT_LV_MOUNT_PATH="{{ docker_storage_setup_options.root_lv_mount_path }}" | ||
EXTRA_STORAGE_OPTIONS="{{ docker_storage_extra_options | join(' ') }}" |