Baseline modular DNS sync

This commit is contained in:
Lyncoln
2026-09-19 15:03:45 -04:00
commit 47850e3ce5
21 changed files with 957 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
def print_plan(plan):
if not plan:
print("Desired state contains no records.")
return
for item in plan:
h = item.desired.hostname
if item.action == "ADD":
print(f"{'ADD':<10} {h:<45} -> {item.desired.ip}")
elif item.action == "UPDATE":
print(f"{'UPDATE':<10} {h:<45} {item.current.ip} -> {item.desired.ip}")
elif item.action == "SKIP":
print(f"{'SKIP':<10} {h:<45} {item.reason}")
else:
print(f"{'UNCHANGED':<10} {h:<45} {item.desired.ip}")