chef powershell cookbook,如果 node['ms_dotnet']['v4']['version'] < '4.5' 失败,在哪里设置节点属性

chef powershell cookbook, fail if node['ms_dotnet']['v4']['version'] < '4.5', where to set the node attribute

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

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

我运行主厨客户因此:

$ 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 配方。

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

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

我听到的最佳回应是:

创建一个 wrapper cookbook 并在其中设置节点 属性。