Skip to content

Commit

Permalink
package: add "package_provider" option
Browse files Browse the repository at this point in the history
It allows to override a provider for "package resource", for example:
node.default['consul']['options']['package_provider'] = Chef::Provider::Package::Dpkg
  • Loading branch information
legal90 committed Jan 17, 2017
1 parent 7a58f10 commit ada40f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/consul_installation_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def action_create
notifying_block do
package res_options[:package_name] do
source res_options[:package_source]
provider res_options[:package_provider]
version res_options[:version]
action :upgrade
end
Expand All @@ -51,6 +52,7 @@ def action_remove
notifying_block do
package res_options[:package_name] do
source res_options[:package_source]
provider res_options[:package_provider]
version res_options[:version]
action :remove
end
Expand Down

0 comments on commit ada40f3

Please sign in to comment.