Fix weave on RHEL deployment

Reduce retry delay checking weave
Always load br_netfilter module
This commit is contained in:
Matthew Mosesohn 2017-03-17 18:17:47 +03:00
parent 25bff851dd
commit e1faeb0f6c
2 changed files with 6 additions and 1 deletions

View file

@ -28,7 +28,7 @@
return_content: yes return_content: yes
register: weave_status register: weave_status
retries: 180 retries: 180
delay: 10 delay: 5
until: "{{ weave_status.status == 200 and until: "{{ weave_status.status == 200 and
'Status: ready' in weave_status.content }}" 'Status: ready' in weave_status.content }}"
when: inventory_hostname == groups['kube-master'][0] when: inventory_hostname == groups['kube-master'][0]

View file

@ -1,6 +1,11 @@
--- ---
- include: pre-upgrade.yml - include: pre-upgrade.yml
- name: Weave | enable br_netfilter module
modprobe:
name: br_netfilter
state: present
- name: Weave | Copy cni plugins from hyperkube - name: Weave | Copy cni plugins from hyperkube
command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/" command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
register: cni_task_result register: cni_task_result