allow dhcp::host to override default- and max-lease-time #215
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This can be used where there's a need to have individual hosts vary from
those set for the subnet or globally.
Signed-off-by: John Florian jflorian@doubledog.org
Pull Request (PR) description
I have use cases where I want certain hosts to have shorter DHCP lease times than those I prefer for global defaults. The ISC DHCP daemon allows overriding the
max-lease-time
anddefault-lease-time
parameters within a host record, now this module can too. Both of these settings are entirely optional. If you don't define them, the global (i.e.,dhcpd
class) defaults are used as before and there's no difference in thedhcpd.hosts
file.Ideally, this would be extended to
dhcp::pool
as well, because IIRC that too is possible, but I don't have that need.This Pull Request (PR) fixes the following issues
none created