tam7t / droplan

Manage iptable rules for the private interface on DigitalOcean droplets
MIT License
69 stars 12 forks source link

run continuously #16

Open tam7t opened 8 years ago

tam7t commented 8 years ago

I think it would be nicer to run droplan as a daemon process that continuously ran so that it could better splay out requests to the digitalocean api and more gracefully handle throttling.

FDIM commented 8 years ago

Together with this you could also listen on certain port on public interface for http requests (with some shared secret) that when invoked would trigger an update (so that each server would reach out to DO).

Secondly, when starting the daemon, since you already have list of droplets you can make the above request and have everything up-to-date with no cron :)

Removing a droplet would be a special case though.