【问题标题】:Run chef cookook locally by keeping the cookbooks in remote server通过将食谱保存在远程服务器中,在本地运行厨师食谱
【发布时间】:2017-11-16 21:32:34
【问题描述】:

我们可以在本地运行厨师食谱(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

请澄清。

【问题讨论】:

    标签: chef-infra chef-recipe chef-solo


    【解决方案1】:

    您可以使用--config-option chef_repo_path=whatever 控制存储库的位置(默认情况下,/var/chef 用于chef-solo. 用于本地模式)。说了这么多,应该不会吧?在用于生产文件部署的网络文件系统的路径上,存在许多痛苦和折磨以及无法解释的中断。如果您想要一个集中式存储系统,这就是 Chef Server 的真正用途。

    【讨论】:

      猜你喜欢
      • 2013-08-21
      • 2019-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多