External IPAM authority: NetBox driver, ownership, reconcile
Every address Rollcall hands out is registered in the configured authority first; addresses others hold there are skipped. Rollcall's records carry the tag `rollcall` and the machine ID in the `rollcall_machine` custom field; only those are changed or deleted. Releases trigger a reconcile that also runs periodically. dns_name per address feeds the site's DNS sync. Delegated prefixes can be listed and imported as subnets. `rollcall ipam`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c8465c235a
commit
2706fd65e7
14 files changed
+1068
-6
No files matched your search
@@ -603,6 +603,7 @@ func (a *App) afterJob(ctx context.Context, m *Machine, j *Job, state, errMsg st
|
||||
_ = a.store.AddEvent(ctx, m.ID, "deployed", fmt.Sprintf("job=%s os=%s/%s disk=%s", j.ID, sp.OS, sp.Version, sp.Disk))
|
||||
case state == "done" && j.Kind == "release":
|
||||
_ = a.store.SetReleased(ctx, m.ID)
|
||||
a.kickIPAM()
|
||||
m, _ = a.store.Get(ctx, m.ID)
|
||||
_ = a.writePXE(m)
|
||||
_ = a.store.AddEvent(ctx, m.ID, "released", fmt.Sprintf("job=%s disk=%s wipe=%s", j.ID, sp.Disk, sp.Wipe))
|
||||
|
||||
Reference in new issue
Block a user