From a64145a3de9a4e862de6bf4613c84aa91ca8351b Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 11 Sep 2020 14:49:53 +0000 Subject: [PATCH] Add lan interface to nas hosts --- group_vars/nas.yml | 1 + host_vars/nas02.home.foo.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/group_vars/nas.yml b/group_vars/nas.yml index 06915b1..61922a5 100644 --- a/group_vars/nas.yml +++ b/group_vars/nas.yml @@ -8,3 +8,4 @@ datadisks: firewall_in: - {proto: tcp, port: 22, from: [172.20.20.0/22]} - {proto: tcp, port: 2049, from: [172.20.20.0/22]} + - {proto: tcp, port: 2049, from: [172.20.30.0/24]} diff --git a/host_vars/nas02.home.foo.sh b/host_vars/nas02.home.foo.sh index f9d6c36..7c2e941 100644 --- a/host_vars/nas02.home.foo.sh +++ b/host_vars/nas02.home.foo.sh @@ -4,3 +4,8 @@ network_interfaces: - device: eth0 vlan: 20 mac: 52:54:00:ac:dc:34 + - device: eth1 + vlan: 30 + ipaddr: 172.20.30.11 + netmask: 255.255.255.0 + proto: static