The PowerShell cookbook has a dependency on several other cookbooks, one of which is the ms_dotnet cookbook.
From what I have discovered when you try to run just a recipe that relies on an attribute defined from another cookbook, it will fail in this manner.
If you set this recipe inside a wrapper cookbook that should circumvent that.
From: johnny5isalive [mailto:firstname.lastname@example.org]
Sent: Friday, January 29, 2016 12:33 PM
To: Brian Whitacre BWhitacre@jackhenry.com
Subject: [chef] Powershell coobook, where to set dotnet node attribute?
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
I’m trying to use the chef supermarket cookbook to install powershell.
.NET version 4.52 is installed on the node.
I run chef-client thusly:
$ chef-client –o “recipe[powershell::powershell4]”
The failure is:
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’
This error is from line 32 in the powershell4.rb recipe.
Where do you suppose I’m supposed to set the node attribute node[‘ms_dotnet’][‘v4’][‘version’]?
Also posted StackOverflow where I’m also asking for advice. Thanks!
Can’t put the direct link because I’m a new user.