2016-01-09 09:45:50 +00:00
|
|
|
# Deployed by Ansible
|
2016-02-13 10:17:20 +00:00
|
|
|
{% if ansible_service_mgr in ["sysvinit","upstart"] and kube_network_plugin == "flannel" and ansible_os_family == "Debian" %}
|
2016-05-25 16:56:45 +00:00
|
|
|
DOCKER_OPTS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
2016-01-30 15:01:04 +00:00
|
|
|
{% elif kube_network_plugin == "flannel" and ansible_os_family == "RedHat" %}
|
2016-05-25 16:56:45 +00:00
|
|
|
DOCKER_NETWORK_OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
2016-01-09 09:45:50 +00:00
|
|
|
{% elif kube_network_plugin == "flannel" %}
|
2016-05-25 16:56:45 +00:00
|
|
|
OPTIONS="--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"
|
2016-01-09 09:45:50 +00:00
|
|
|
{% endif %}
|