Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions provision-contest/ansible/roles/keepalived/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
enabled: false
state: started

- name: Set kernel ARP parameters required by keepalived
sysctl:
name: "{{ item.key }}"
value: "{{ item.value }}"
sysctl_file: /etc/sysctl.d/30-keepalived.conf
state: present
loop:
- { key: "net.ipv4.conf.all.arp_ignore", value: "1" }
- { key: "net.ipv4.conf.all.arp_announce", value: "1" }
- { key: "net.ipv4.conf.all.arp_filter", value: "0" }
- { key: "net.ipv4.conf.vrrp/{{ CLUSTER_ID }}.arp_filter", value: "0" }
- { key: "net.ipv4.conf.vrrp/{{ CLUSTER_ID }}.accept_local", value: "1" }
- { key: "net.ipv4.conf.vrrp/{{ CLUSTER_ID }}.rp_filter", value: "0" }

- name: Install keepalived alert trigger code
copy:
src: alerting/
Expand Down