Merge "Add custom option for docker"

This commit is contained in:
Zuul 2018-05-31 11:15:40 +00:00 committed by Gerrit Code Review
commit 360f2b9464
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,8 @@ selinux_state: "permissive"
docker_storage_driver: ""
docker_custom_option: ""
docker_runtime_directory: ""
debian_pkg_install:

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 %}{% if docker_runtime_directory %} --graph {{ docker_runtime_directory }}{% 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 %}{% if docker_custom_option %} {{ docker_custom_option }}{% endif %}

View File

@ -0,0 +1,5 @@
---
features:
- |
Add custom option for docker daemon by configure the docker service. An operator
named "docker_custom_option" will be added.