Chef 包和 include_recipe 之间的区别
Chef Difference between package and include_recipe
package
和include_recipe
有什么区别?
例如,
package 'git'
include_recipe 'git'
我什么时候包含配方而不是声明包依赖项?
package 'git'
使用系统打包系统(apt-get install git
、yum install git
等)安装名为 git
的包。
include_recipe 'git'
执行 git
食谱 (git/recipes/default.rb
) 中的默认配方。
package
和include_recipe
有什么区别?
例如,
package 'git'
include_recipe 'git'
我什么时候包含配方而不是声明包依赖项?
package 'git'
使用系统打包系统(apt-get install git
、yum install git
等)安装名为 git
的包。
include_recipe 'git'
执行 git
食谱 (git/recipes/default.rb
) 中的默认配方。