From 19aa1cce347d72314f6c7f1a5f6b59238de1f810 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 1 Apr 2021 22:46:34 +0000 Subject: [PATCH] Add VIP and camnet interface to zm hosts --- group_vars/zm.yml | 10 ++++++++++ host_vars/zm02.home.foo.sh.yml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/group_vars/zm.yml b/group_vars/zm.yml index e14ccc2..689b2c5 100644 --- a/group_vars/zm.yml +++ b/group_vars/zm.yml @@ -2,7 +2,17 @@ datadisks: - 100 +network_vip_interfaces: + - device: eth1 + vhid: 26 + ipaddr: 172.20.26.1 + netmask: 255.255.0.0 + pass: "{{ vip26_pass }}" + firewall_in: - {proto: tcp, port: 22, from: [172.20.20.0/22]} - {proto: tcp, port: 443, from: [172.20.20.0/22]} - {proto: tcp, port: 4949, from: [172.20.20.0/22]} +firewall_raw: + - "-A INPUT -i eth1 -d 224.0.0.0/8 -j ACCEPT" + - "-A INPUT -i eth1 -p vrrp -j ACCEPT" diff --git a/host_vars/zm02.home.foo.sh.yml b/host_vars/zm02.home.foo.sh.yml index f8c846e..340464a 100644 --- a/host_vars/zm02.home.foo.sh.yml +++ b/host_vars/zm02.home.foo.sh.yml @@ -4,3 +4,10 @@ network_interfaces: - device: eth0 vlan: 20 mac: "52:54:00:ac:dc:4c" + nameservers: [] + - device: eth1 + vlan: 26 + ipaddr: 172.20.26.3 + netmask: 255.255.255.0 + proto: static + nameservers: [172.20.26.1, 172.20.26.3]