From a7b793238ac17a37423030dfcfb09fd479e4bcdd Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 11 May 2025 16:53:34 +1000 Subject: [PATCH] fix: exclude docker0 interfaces (#282) - docker0 is the same on many hosts Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/282 --- site/profiles/manifests/dns/base.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/profiles/manifests/dns/base.pp b/site/profiles/manifests/dns/base.pp index 8d10a85..a25ba08 100644 --- a/site/profiles/manifests/dns/base.pp +++ b/site/profiles/manifests/dns/base.pp @@ -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 {