I've got a Chef cookbook from GitHub. It installs SQL Server 2012 Standard Edition. Our DBA has upgraded our database code to utilize features that can only be found on SQL Server 2012 Enterprise Edition. Since this cookbook is used to generate our test environments, we must now alter this cookbook to deploy SQL Server 2012 Enterprise.
Looking at the helper.rb file in the cookbook,
require 'chef/mixin/shell_out'
module SqlServer
class Helper
extend Chef::Mixin::ShellOut
def self.firewall_rule_enabled?(rule_name=nil)
cmd = shell_out("netsh advfirewall firewall show rule \"#{rule_name}\"")
cmd.stderr.empty? && (cmd.stdout =~ /Enabled:\s*Yes/i)
end
def self.sql_server_url(version, x86_64)
if x86_64
case version
when '2008R2'
'http://download.microsoft.com/download/D/1/8/D1869DEC-2638-4854-81B7-0F37455F35EA/SQLEXPR_x64_ENU.exe'
when '2012'
'http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x64/SQLEXPR_x64_ENU.exe'
end
else
case version
when '2008R2'
'http://download.microsoft.com/download/D/1/8/D1869DEC-2638-4854-81B7-0F37455F35EA/SQLEXPR32_x86_ENU.exe'
when '2012'
'http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x86/SQLEXPR_x86_ENU.exe'
end
end
end
it seems that it gets the install media from
When I look on MSDN (which we have access to) I don't see that the Enterprise Edition is available to download as a .EXE, only as an .ISO.
How can I alter this cookbook to deploy from an ISO instead of a EXE, assuming that I have full access to the ISO?