Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Chef 中有一个配方,它使用execute命令连接到存储库并安装守护程序,然后配置并启动它。
execute
运行时apt-get install,它需要用户确认(Y/N 输入)在确定需要多少空间后才能继续。这如何在 Chef 中以编程方式完成?
apt-get install
只是传递--yes给apt-get install它,它不会以交互方式提示。Chef 还具有可以为您执行此操作的更高级别的包抽象库。
--yes
package 'foo' do action :install end