Fix Flannel network on CoreOS

Resolves: #748
This commit is contained in:
Genti Topija 2016-12-15 14:12:34 +01:00 committed by Spencer Smith
parent 09755774ac
commit d6d76e6aab

View file

@ -1,2 +1,6 @@
[Service] [Service]
{% if ansible_os_family == "CoreOS" %}
Environment="DOCKER_OPT_BIP=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
{% else %}
Environment="DOCKER_NETWORK_OPTIONS=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}" Environment="DOCKER_NETWORK_OPTIONS=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
{% endif %}