clean conditions into docker templates
This commit is contained in:
parent
722aacb633
commit
4a7d8c6fea
2 changed files with 3 additions and 10 deletions
|
@ -1,8 +1,2 @@
|
||||||
# Deployed by Ansible
|
# Deployed by Ansible
|
||||||
{% if ansible_service_mgr in ["sysvinit","upstart"] and kube_network_plugin == "flannel" and ansible_os_family == "Debian" %}
|
DOCKER_OPTS=""
|
||||||
DOCKER_OPTS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
|
||||||
{% elif kube_network_plugin == "flannel" and ansible_os_family == "RedHat" %}
|
|
||||||
DOCKER_NETWORK_OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
|
||||||
{% elif kube_network_plugin == "flannel" %}
|
|
||||||
OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Deployed by Ansible
|
# Deployed by Ansible
|
||||||
{% if (ansible_service_mgr in ["sysvinit","upstart"] and kube_network_plugin == "flannel" and ansible_os_family == "Debian") or
|
{% if (ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "Debian") or (ansible_os_family == "CoreOS") %}
|
||||||
(kube_network_plugin == "flannel" and ansible_os_family == "CoreOS") %}
|
|
||||||
DOCKER_OPTS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
DOCKER_OPTS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
||||||
{% elif kube_network_plugin == "flannel" %}
|
{% else %}
|
||||||
OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue