Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans for remote/dynamic configuration backend #4

Open
jarus opened this issue Dec 7, 2022 · 5 comments
Open

Plans for remote/dynamic configuration backend #4

jarus opened this issue Dec 7, 2022 · 5 comments

Comments

@jarus
Copy link

jarus commented Dec 7, 2022

Hi,

This is an interesting project. Have you plans to support other configuration backends beside the yaml file? For example, asking a remote HTTP server every N seconds for a new config to retrieve new reservations?

Best regards,
Christoph

@leshow
Copy link
Collaborator

leshow commented Dec 7, 2022

Not at the moment, but since leases are not stored in memory, it wouldn't take much to have a script that downloaded a new config and restarted the dora process, run on a timer.

dora will accept configuration in equivalent JSON format also FYI.

@Jackbennett
Copy link

Would you be open to a PR on this or is it out of scope? (depending on quality of course XD)

@leshow
Copy link
Collaborator

leshow commented Oct 27, 2023

Can you give some more detail on what you're looking for? If it's a script that takes some URL, and polls for changes, then restarts dora I'm sure something along those lines can be found on google fairly easily.

@Jackbennett
Copy link

I was interested in the lease & reservations list more than config, that's easy enough to reload, but since static addresses are in the config I suspect that's where reload-questions come from.

I was looking into if ip-manager would behave if something else updated sqlite tables. There's so many tools to replicate sqlite it would be nice to use them to manage day-to-day leases and whitelist reservations. I think you could easily have concurrent servers running then if you trusted sqlite to avoid collisions by adding some transaction handling.

@leshow
Copy link
Collaborator

leshow commented Nov 3, 2023

I was looking into if ip-manager would behave if something else updated sqlite tables.

I have not explicitly tested this, but I think it should. You may want to disable cache_threshold though since it keeps some leases in temporarily memory if you're going to modify the leases table from elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants