Default provder


#1

How can I set this to default for the whole cookbook?

provider Chef::Provider::package::Yum

so I don’t have to put it in the recipe every time?


#2

Use yum_package instead of just package.

If the distro is CentOS or Redhat, yum is the default provider so you don’t need to define it.

On Oct 20, 2011, at 1:46 PM, djo@dave-n-georgi.com wrote:

How can I set this to default for the whole cookbook?

provider Chef::Provider::package::Yum

so I don’t have to put it in the recipe every time?