fix: exclude docker0 interfaces #282

Merged
unkinben merged 1 commits from neoloc/exclude_docker0 into develop 2025-05-11 16:53:35 +10:00

View File

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