-
Notifications
You must be signed in to change notification settings - Fork 32
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
Dhcp support #20
base: master
Are you sure you want to change the base?
Dhcp support #20
Conversation
Leases sync will fail gracefully if it doesn't exist or is empty (ie if dhcp server is disabled)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ohthehugemanatee, many thanks for contributing this PR! I really appreciate it.
It looks good overall, can you check my two comments/questions 🙂
@@ -32,7 +32,7 @@ | |||
|
|||
- name: Schedule sync with cron | |||
ansible.builtin.cron: | |||
hour: "2,14" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert those values to the originals please since the shorter sync interval is only needed for dhcp.
Maybe you can provide some example values, that you consider good, in the readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least in my experience the dns performance was impaired pretty easily, so I would like to keep the sync jobs to a minimum by default.
@@ -35,4 +43,29 @@ if [[ ! $(ip a | grep {{ sync_target }}) ]]; then | |||
sudo cp --preserve=timestamps $sync_dir/05-pihole-custom-cname.conf $pihole_dir/dnsmasq.d | |||
fi | |||
fi | |||
|
|||
RSYNC_WILDCARD=$(rsync -a --info=name -e "ssh $key $host_key_check" $target:$pihole_dir/dnsmasq.d/02-cluster.vert-wildcard.conf $sync_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to sync this file separately when you later on sync the whole dnsmasq.d directory?
Closes #19