-
Notifications
You must be signed in to change notification settings - Fork 49
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
Bump minimum stdlib version to be 4.25.0 #193
Conversation
* bump version-requirement for stdlib to 4.25.0 (needed for Stdlib::IP::*) * further enforce serveraddress in sql to be an ip-address and no subnet * remove unnecessary Optional[] for already defined valued
Added suggestions from #192 BTW: looking at the code there are some more Optionals with predefined values, maybe those can be cleaned up too, but I guess those are better in a separate PR. |
@nward This looks ok to me by eye but I have no way of testing it. Are you able to review & merge? I think we're getting to a stage where we should do a new release, so I want to get as many PRs merged as possible |
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.
Given that we have already merged #192, I think the only one we need to address is the minimum version of stdlib.
We need to do a big clean up of the Optionals and other type things - so I think we should do those all at once.
There is no problem with these changes being done here - but I think we should try keep PRs to one issue at a time.
manifests/module/detail.pp
Outdated
@@ -9,7 +9,7 @@ | |||
String $header = '%t', | |||
Optional[Freeradius::Boolean] $locking = undef, | |||
Optional[Freeradius::Boolean] $log_packet_header = undef, | |||
Optional[Array[String]] $suppress = [], | |||
Array[String] $suppress = [], |
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.
Array[String] $suppress = [], | |
Optional[Array[String]] $suppress = [], |
manifests/sql.pp
Outdated
@@ -2,7 +2,7 @@ | |||
define freeradius::sql ( | |||
Enum['mysql', 'mssql', 'oracle', 'postgresql'] $database, | |||
Freeradius::Password $password, | |||
Variant[Stdlib::Host, Stdlib::IP::Address] $server = 'localhost', | |||
Variant[Stdlib::Host, Stdlib::IP::Address::Nosubnet] $server = 'localhost', |
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.
Variant[Stdlib::Host, Stdlib::IP::Address::Nosubnet] $server = 'localhost', | |
Variant[Stdlib::Host, Stdlib::IP::Address] $server = 'localhost', |
(actually it turns out that this can just be Stdlib::Host - as Host already covers single IP addresses which is nice - but I don't think we should make that change in this PR)
bump version-requirement for stdlib to 4.25.0 (needed for Stdlib::IP::*)
further enforce serveraddress in sql to be an ip-address and no subnet
remove unnecessary Optional[] for already defined valued