Merge pull request #2084 from riverzhang/devicemapper

Fix can not use devicemapper driver
This commit is contained in:
Chad Swenson 2018-01-31 20:52:22 -06:00 committed by GitHub
commit f7d52564aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,9 @@ docker_container_storage_setup_version: v0.6.0
docker_container_storage_setup_profile_name: kubespray docker_container_storage_setup_profile_name: kubespray
docker_container_storage_setup_storage_driver: devicemapper docker_container_storage_setup_storage_driver: devicemapper
docker_container_storage_setup_container_thinpool: docker-pool docker_container_storage_setup_container_thinpool: docker-pool
#It must be define a disk path for docker_container_storage_setup_devs.
#Otherwise docker-storage-setup will be executed incorrectly.
#docker_container_storage_setup_devs: /dev/vdb
docker_container_storage_setup_data_size: 40%FREE docker_container_storage_setup_data_size: 40%FREE
docker_container_storage_setup_min_data_size: 2G docker_container_storage_setup_min_data_size: 2G
docker_container_storage_setup_chunk_size: 512K docker_container_storage_setup_chunk_size: 512K

View file

@ -31,6 +31,12 @@
group: root group: root
mode: 0644 mode: 0644
#https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
- name: docker-storage-setup | install lvm2
yum:
name: lvm2
state: present
- name: docker-storage-setup | install and run container-storage-setup - name: docker-storage-setup | install and run container-storage-setup
become: yes become: yes
script: install_container_storage_setup.sh {{ docker_container_storage_setup_version }} {{ docker_container_storage_setup_profile_name }} script: install_container_storage_setup.sh {{ docker_container_storage_setup_version }} {{ docker_container_storage_setup_profile_name }}