【问题标题】:chef run_list remove all recipeschef run_list 删除所有食谱
【发布时间】:2016-08-09 01:28:06
【问题描述】:

有没有办法删除节点的 run_list 中的所有配方?

我有一个问题声明,我需要删除 run_list 中的所有内容,并在需要时在运行时添加它。

我可以单独删除每个节点,但我一次要处理很多节点。

【问题讨论】:

    标签: chef-infra knife


    【解决方案1】:

    查找 knife exectransform 助手。类似knife exec -E 'transform("*:*") {|n| n.run_list.reset! }

    【讨论】:

      猜你喜欢
      • 2020-06-29
      • 2014-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-24
      • 2015-02-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多