【问题标题】:chef powershell cookbook, fail if node['ms_dotnet']['v4']['version'] < '4.5', where to set the node attributechef powershell cookbook,如果node['ms_dotnet']['v4']['version'] <'4.5'失败,在哪里设置节点属性
【发布时间】:2016-02-02 06:12:52
【问题描述】:

我正在尝试使用主厨supermarket cookbook 安装powershell。

.NET 版本4.52 安装在节点上。

我就这样运行 chef-client:

$ chef-client –o "recipe[powershell::powershell4]"

失败是:

fail 'Attribute ms_dotnet.v4.version is not configured to install .NET4.5 as required for Powershell4' if node['ms_dotnet']['v4']['version'] < '4.5'

这个错误来自line 32 in the powershell4.rb recipe。

你认为我应该在哪里设置节点属性node['ms_dotnet']['v4']['version']

【问题讨论】:

    标签: windows chef-infra


    【解决方案1】:

    据我所知,食谱写得不正确。估计大多数人都在安装 PS5,但没有人注意到。

    【讨论】:

      【解决方案2】:

      我听到的最好的回答是:

      创建一个包装说明书并在其中设置节点属性。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-11-03
        • 2020-04-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多