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

ansible: create playbook to clean dnsmasq dhcp leases #54

Open
herzogf opened this issue Feb 10, 2020 · 0 comments
Open

ansible: create playbook to clean dnsmasq dhcp leases #54

herzogf opened this issue Feb 10, 2020 · 0 comments

Comments

@herzogf
Copy link
Owner

herzogf commented Feb 10, 2020

homek8s should provide ansible scripts to clear the dnsmasq dhcp leases completely or for individual nodes only (e.g. needed in local test environment when we don't want to provision the gateway all the time but re-use a running raspberry pi VM).

To clean all leases:

sudo systemctl stop dnsmasq
sudo rm -f /var/lib/misc/dnsmasq.leases
sudo systemctl start dnsmasq

For individual leases there's a package dnsmasq-utils which should do the trick:

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

1 participant