-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix issue where package provider override isn't working when specifying a package_source #18
Fix issue where package provider override isn't working when specifying a package_source #18
Conversation
…e provider is used. also get to 100% test coverage
Is this still required, given your last comment chef/chef#3487? |
Hey @jtimberman - Lamont chimed in with a much nicer implementation using I updated this PR to use I guess ultimately it comes down to how you feel about promoting the |
return Chef::Provider::Package::Rpm if node['platform_family'] == 'rhel' | ||
def local_package_resource | ||
return :dpkg_package if node['platform_family'] == 'debian' | ||
return :rpm_package if node['platform_family'] == 'rhel' |
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.
should probably return :package
here by default, or else raise if you don't want to try to guess that.
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.
good point, done
The declare_resource bits LGTM 👍 |
@@ -1,5 +1,5 @@ | |||
name 'chef-server-ingredient' | |||
version '0.3.2' | |||
version '0.3.3' |
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.
Let's not increment versions in PR's 🍰
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.
sorry about that! fixed.
This reverts commit 0dca70a.
Fix issue where package provider override isn't working when specifying a package_source
Per the comments in chef/chef#3487 - passing a provider to the package resource is unreliable and causing problems for our customers that need to specify a
package_source
This PR also adds tests for the
test::local
recipe and gets up to 100% test coverage 😄cc: @jtimberman