...
 
Commits (4)
......@@ -62,8 +62,8 @@ all:
vlan_2_address: 192.168.2.57/24
vlan_13_address: 193.48.225.3/24
vlan_20_address: 10.20.254.57/16
vlan_66_address: 10.66.0.254/24
vlan_68_address: 10.68.254.254/16
vlan_66_address: 10.66.0.57/24
vlan_68_address: 10.68.254.57/16
vlan_69_address: 10.69.3.57/24
keepalived_state: MASTER
keepalived_virtual_router_id: 1
......@@ -74,8 +74,8 @@ all:
vlan_2_address: 192.168.2.54/24
vlan_13_address: 193.48.225.2/24
vlan_20_address: 10.20.254.54/16
vlan_66_address: 10.66.0.253/24
vlan_68_address: 10.68.254.253/16
vlan_66_address: 10.66.0.54/24
vlan_68_address: 10.68.254.54/16
vlan_69_address: 10.69.3.54/24
keepalived_state: BACKUP
keepalived_virtual_router_id: 2
......
......@@ -2,6 +2,8 @@ failover peer "dhcp-failover" {
{% if primary %}
primary;
split 255;
{% else %}
secondary;
{% endif %}
mclt 3600;
address {{ address }};
......
---
- name: Update apt
apt:
update_cache: yes
- name: Enable backports
lineinfile:
line: deb http://ftp.debian.org/debian stretch-backports main
path: /etc/apt/sources.list
notify: Update apt
- name: Install nftables
apt:
name: nftables
default_release: stretch-backports
- name: Install git
apt:
name: git
......
......@@ -14,7 +14,7 @@ vrrp_instance VI_ROUT {
state {{ keepalived_state }}
priority {{ keepalived_priority }}
interface bond0.7
interface bond0.2
virtual_router_id {{ keepalived_virtual_router_id }}
advert_int 2
......@@ -27,16 +27,16 @@ vrrp_instance VI_ROUT {
virtual_ipaddress {
10.7.0.253/24 brd 10.7.0.255 dev bond0.7 scope global
10.69.0.253/20 brd 10.69.15.255 dev bond0.69 scope global
10.20.0.253/16 dev bond0.20 scope global
10.68.0.253/24 dev bond0.68 scope global
10.66.0.253/24 dev bond0.66 scope global
192.168.2.2/24 dev bond0.2 scope global
193.48.225.4/24 dev bond0.13 scope global
10.7.0.254/24 brd 10.7.0.255 dev eno1 scope global
10.69.9.254/20 brd 10.69.15.255 dev bond0.69 scope global
10.20.254.254/16 dev bond0.20 scope global
10.68.254.254/16 dev bond0.68 scope global
10.66.0.254/24 dev bond0.66 scope global
192.168.2.1/24 dev bond0.2 scope global
193.48.225.254/24 dev bond0.13 scope global
}
virtual_routes {
src 193.48.225.4 to 0.0.0.0/0 via 192.168.2.254 dev bond0.2
src 193.48.225.254 to 0.0.0.0/0 via 192.168.2.254 dev bond0.2
}
}