258a0d6ec7
Not all clouds will provide us with MTUs of 1500. Instead of assuming a 1500 - 50 byte MTU to accomodate for vxlan overhead we list all interface MTUs, filter by those that appear to be "real" interfaces (to avoid those we ourselves may have created), take the smallest one and subtract it by 50 to accomodate for vxlan overhead. You can still set an explicitl bridge_mtu value if necessary. Change-Id: If899a1bee3b4b69df8c2905a219b41e119d8f652
23 lines
615 B
YAML
23 lines
615 B
YAML
# Note (dmsimard)
|
|
# We explicitely declare a PATH environment variable because '/sbin' is not in
|
|
# PATH when using 'become: yes' on some distributions
|
|
- include: common.yaml
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
|
|
|
|
- include: switch.yaml
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
|
|
when: inventory_hostname in groups['switch']
|
|
static: no
|
|
|
|
- include: peer.yaml
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
|
|
when: inventory_hostname in groups['peers']
|
|
static: no
|
|
|
|
- name: Persist iptables rules
|
|
include_role:
|
|
name: persistent-firewall
|