我们可以在本地运行chef cookbook (chef-solo或chef-zero),如下所示
chef-client -z --runlist 'recipe[cookbookname::recipename]'或
chef-client --local-mode C:\chefrepo\cookbooks\example\recipes\default.rb但是,如何通过将食谱保存在远程服务器上来在本地模式下运行CHEF客户端?像这样的东西?
chef-client --local-mode \\10.10.1.1\cookbooks\example\recipe请澄清。
发布于 2017-11-16 21:32:35
您可以使用--config-option chef_repo_path=whatever来控制存储库的位置(默认情况下,对于chef-solo,它是/var/chef,对于本地模式,它是. )。也就是说,可能不是吗?在用于生产文件部署的网络文件系统的路径下,存在着许多痛苦和痛苦,以及无法解释的中断。如果你想要一个集中的存储系统,那就是Chef Server的真正用途。
https://stackoverflow.com/questions/47321675
复制相似问题