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