-
-
Notifications
You must be signed in to change notification settings - Fork 136
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 passing hostnames to $dhcp::host::ip #227
Open
dwest-galois
wants to merge
10
commits into
voxpupuli:master
Choose a base branch
from
dwest-galois:dwest/dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a4093b3
Removing IP validation in order to get dns lookups to work
dwest-galois fa70ca1
Adding a max-lease-time option to the pool scope
dwest-galois e411433
setting max_lease_time as optional if undef
dwest-galois 7f7155e
Matches a valid host which could be a valid ipv4, ipv6 or fqdn
dwest-galois edf6dc5
Merge pull request #1 from dwest-galois/dwest/dev
dwest-galois aa0eabf
Adding a max-lease-time parameter to the pool scope. Allow `fqdn` as…
dwest-galois 435f15d
Merge branch 'dwest/dev' of github.com:dwest-galois/puppet-dhcp into …
dwest-galois c86b5d8
Merge branch 'dwest/dev'
dwest-galois 26034cd
Merge branch 'master' of https://github.com/voxpupuli/puppet-dhcp int…
dwest-galois 4061b78
Merge pull request #2 from dwest-galois/dwest/dev
dwest-galois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
Optional[Integer] $mtu = undef, | ||
String $domain_name = '', | ||
$ignore_unknown = undef, | ||
Optional[Integer] $max_lease_time = undef, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this parameter isn't related to changing the above datatype, right? In that case, can you please submit it as a new pull request? |
||
) { | ||
include dhcp::params | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
The naming of the parameter must also be changed in my opinion. From a user point of view still having to specify ip parameter when I can also sent FQDN towards it is a bit confusing. This does however causes some backwards compatability issue's. My suggestion would be to implement a new parameter called $host which is of type stdlib::host make a check, which checks if either $ip or $host is set. If $ip is set raise a deprication warning that $ip will be removed in the next version.
What do others think of this?
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.
@zyronix agreed, don't forget to update the documentation!
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.
I agree that as a user this would confuse me and a rename is in order.
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.
I apologize for taking so long to respond. I agree that the
$ip
parameter should be changed to something like$host
. I originally left it as-is since it would probably break a lot of usersdhcp::host:
configuration. I can provide some unit tests once I get those setup. Due to time constraints, it might take me until next week.