-
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.
Merge pull request #6524 from kwoodson/docker_storage_setup_overlay
Adding support for docker-storage-setup on overlay
- Loading branch information
Showing
6 changed files
with
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- hosts: "{{ l_containerized_host_groups }}" | ||
vars: | ||
l_chg_temp: "{{ openshift_containerized_host_groups | default([]) }}" | ||
l_containerized_host_groups: "{{ (['oo_nodes_to_config'] | union(l_chg_temp)) | join(':') }}" | ||
# role: container_runtime is necessary here to bring role default variables | ||
# into the play scope. | ||
roles: | ||
- role: container_runtime | ||
tasks: | ||
- include_role: | ||
name: container_runtime | ||
tasks_from: docker_storage_setup_overlay.yml | ||
when: | ||
- container_runtime_docker_storage_type|default('') == "overlay2" | ||
- openshift_docker_is_node_or_master | bool |
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,6 @@ | ||
--- | ||
- import_playbook: ../init/main.yml | ||
vars: | ||
skip_verison: True | ||
|
||
- import_playbook: private/setup_storage.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
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_type == '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(' ') }}" |