-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Add support for specifying unsupported repo location. #612
Add support for specifying unsupported repo location. #612
Conversation
Er, zabbix::repo::unsupported_repo_location not path =) |
Switch to using undef instead of ''.
@bastelfreak I pushed up an update that includes the fixes you requested. Tests don't pass but they look like they may have been busted for quite some time. Could you please confirm that I didn't cause these? Otherwise, see anything else that needs a tweak? =) Thanks! |
manifests/repo.pp
Outdated
String[1] $zabbix_version = $zabbix::params::zabbix_version, | ||
Boolean $manage_repo = $zabbix::params::manage_repo, | ||
Boolean $manage_apt = $zabbix::params::manage_apt, | ||
Stdlib::HTTPUrl $repo_location = $zabbix::params::repo_location, |
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.
those types need to be optional
Stdlib::HTTPUrl $repo_location = $zabbix::params::repo_location, | |
Optional[Stdlib::HTTPUrl] $repo_location = $zabbix::params::repo_location, |
The tests are failing because the new code always requires a value for both variables. They need to be optional (sorry, I missed that during my last review). |
oh! my bad just a moment. |
I went ahead and make repo_location optional as well since it "really is" . |
Much better =) |
Thanks for the PR! |
Pull Request (PR) description
This fairly simply PR adds the ability to specify the "unsupported" repo path similar to how you can override the repo_path. (zabbix::repo::unsupported_repo_path is the new setting) I am using this a a temporary measure to get Zabbix running on some RHEL 8 agents before RHEL 8 is even available, but I imagine it could be useful to others who want to mirror the unsupported repo as well. At some level I figured, you can configure one, why not the other. =)
This Pull Request (PR) fixes the following issues
n/a