Requires .NET 3.5 to be installed before install will complete but does not check for it
Closed this issue · 2 comments
edmundcraske commented
The cookbook, when run against a clean Windows 2008 R2 install, requires .NET Framework 3.5 to be installed, but doesn't check for it.
The install of SQL Server then silently fails, and the cookbook errors on a non-existent registry key.
DamonStamper commented
This can be worked around by using https://github.com/chef-cookbooks/windows and the below code before running sql_server::server
windows_feature 'NET-Framework-Core' do
provider Chef::Provider::WindowsFeaturePowershell
action :install
end
Alternatively you could use Chef's native powershell_script resource to get-windowsfeature "NET-Framework-Core" and add-windowsfeature if it is not found.
tas50 commented
This has been fixed in the 5.2 release.