Merge "Add a configuration about docker runtime directory"

This commit is contained in:
Zuul 2018-03-14 07:14:46 +00:00 committed by Gerrit Code Review
commit 7dc385577f
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,8 @@ selinux_state: "permissive"
docker_storage_driver: ""
docker_runtime_directory: ""
debian_pkg_install:
- "{{ 'docker-ce' if ansible_architecture == 'aarch64' else 'docker-engine=1.12.*' }}"
- git

View File

@ -1,4 +1,4 @@
[Service]
MountFlags=shared
ExecStart=
ExecStart=/usr/bin/{{ docker_binary_name|default("docker daemon", true) }}{% if docker_registry %} --insecure-registry {{ docker_registry }}{% endif %}{% if docker_storage_driver %} --storage-driver {{ docker_storage_driver }}{% endif %}
ExecStart=/usr/bin/{{ docker_binary_name|default("docker daemon", true) }}{% if docker_registry %} --insecure-registry {{ docker_registry }}{% endif %}{% if docker_storage_driver %} --storage-driver {{ docker_storage_driver }}{% endif %}{% if docker_runtime_directory %} --graph {{ docker_runtime_directory }}{% endif %}

View File

@ -0,0 +1,5 @@
---
features:
- |
Set docker runtime directory by configure the docker daemon.An operator
named "docker_runtime_directory" will be add.