0
我想在我的centos/7节点上安装net-tools。厨师:在Centos 7中安装包
我看了一下相关的net-tools
厨师菜谱,没有什么特别的了解。
什么和如何安装最新的net-tools
程序包版本?
我想在我的centos/7节点上安装net-tools。厨师:在Centos 7中安装包
我看了一下相关的net-tools
厨师菜谱,没有什么特别的了解。
什么和如何安装最新的net-tools
程序包版本?
只需使用一个package
资源,如:
package 'net-tools' do
action :install
end
或者更好:
package 'net-tools'
如果你正在准备申请在几个操作系统的配方,你可以使用ohai attributes这样的:
case node['platform']
when 'centos'
package 'net-utils'
when 'other_os'
package 'other_package_name'
end
只需使用正常的package
资源?一些如此简单的东西不会成为社区食谱的理由。
请问,你能提供一个示例东西代码来测试它吗? – Jordi
您应该运行learn.chef.io上的基本厨师教程,因为这涵盖了编写食谱的过程。 – coderanger