sous-chefs/sql_server

Requires .NET 3.5 to be installed before install will complete but does not check for it

Closed this issue · 2 comments

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.

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.