alexhuang91
alexhuang91

Reputation: 91

Chef Difference between package and include_recipe

What is the difference between package and include_recipe?

For example,

package 'git'

include_recipe 'git'

When would I include a recipe as opposed to declare a package dependency?

Upvotes: 2

Views: 323

Answers (1)

coderanger
coderanger

Reputation: 54211

package 'git' installs a package called git using the system packaging system (apt-get install git, yum install git, etc).

include_recipe 'git' executes the default recipe in the git cookbook (git/recipes/default.rb).

Upvotes: 1

Related Questions