Merge pull request #461 from kubespray/issue-369

Issue 369
This commit is contained in:
Smaine Kahlouch 2016-08-31 15:09:33 +02:00 committed by GitHub
commit 69f09e0f18
2 changed files with 13 additions and 5 deletions

View file

@ -42,12 +42,18 @@
mode: 0644
notify:
- restart docker
when: ansible_os_family != "CoreOS"
- name: Flannel | Create docker config symlink for CoreOS
file:
src: "/etc/default/docker"
dest: "/run/flannel_docker_opts.env"
state: link
- name: Flannel | Create docker service path for CoreOS
file: path=/etc/systemd/system/docker.service.d state=directory
when: ansible_os_family == "CoreOS"
- name: Flannel | Create docker dropin for CoreOS
template:
src: docker-systemd
dest: "/etc/systemd/system/docker.service.d/flannel-options.conf"
notify:
- restart docker
when: ansible_os_family == "CoreOS"
- meta: flush_handlers

View file

@ -0,0 +1,2 @@
[Service]
Environment="DOCKER_OPTS=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }} {% if docker_options is defined %}{{ docker_options }}{% endif %}"