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

allow dhcp::host to override default- and max-lease-time #215

Merged
merged 1 commit into from
Mar 9, 2019

Conversation

jflorian
Copy link
Contributor

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 and default-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 the dhcpd.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

@alexjfisher
Copy link
Member

@jflorian Thanks! Could you look at the failing tests? (Whitespace differences? and rubocop warnings). Otherwise, looks good!

@jflorian
Copy link
Contributor Author

I'll have to take a look at the errors tomorrow. I got tired of waiting them to finish and have never written tests for Puppet code before just lots of Puppet code. So it was kind of a logical gamble that it should work. CI testing Puppet code has been on my learning list forever, but I never have the time. Sigh!!!

@jflorian jflorian force-pushed the host_lease_times branch 3 times, most recently from 596b608 to 5f9df10 Compare February 22, 2019 14:21
@bastelfreak bastelfreak added enhancement New feature or request needs-work not ready to merge just yet labels Mar 8, 2019
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>
@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Mar 9, 2019
@bastelfreak bastelfreak merged commit e6701a0 into voxpupuli:master Mar 9, 2019
@jflorian jflorian deleted the host_lease_times branch March 9, 2019 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants