feat: exclude anycast0 addresses

- exclude managing anycast interfaces on per-node basis
- update all hosts with anycast loopback0 to anycast0
This commit is contained in:
2025-05-11 16:13:10 +10:00
parent 19bc2002ee
commit 1726fa3702
12 changed files with 24 additions and 24 deletions
+2 -2
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, and lo
if $data['ip'] and $interface != 'lo' {
# exclude those without ipv4 address, lo and anycast addresses
if $data['ip'] and $interface != 'lo' and $interface !~ /^anycast[0-9]$/ {
# use defaults for the primary_interface
if $interface == $primary_interface {