fix: exclude docker0 interfaces

- docker0 is the same on many hosts
This commit is contained in:
Ben Vincent 2025-05-11 16:52:52 +10:00
parent 87a6c73578
commit 2845e4968f

View File

@ -46,8 +46,8 @@ class profiles::dns::base (
# export dns records for client # export dns records for client
$facts['networking']['interfaces'].each | $interface, $data | { $facts['networking']['interfaces'].each | $interface, $data | {
# exclude those without ipv4 address, lo and anycast addresses # exclude those without ipv4 address, lo, docker0 and anycast addresses
if $data['ip'] and $interface != 'lo' and $interface !~ /^anycast[0-9]$/ { if $data['ip'] and $interface != 'lo' and $interface != 'docker0' and $interface !~ /^anycast[0-9]$/ {
# use defaults for the primary_interface # use defaults for the primary_interface
if $interface == $primary_interface { if $interface == $primary_interface {