Server Deployment¶
Chef¶
Important
You will need to install Chef client version 12.2.1 first - https://downloads.chef.io/chef-client/windows/.
Note
Minimum requirements are Windows Server 2012 R2, SQL Server 2014 and IIS 8
The following is a chef script. Its purpose is to help you quickly preconfigure the server where Coach will be deployed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # Cookbook Name:: coach_chef_web
# Recipe:: default
#
# Copyright (c) 2015 Qualtrak Solutions Ltd, All Rights Reserved.
powershell_script 'Install IIS' do
code 'Add-WindowsFeature Web-Server'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Server).Installed"
end
powershell_script 'Install NET-Framework-45-Core' do
code 'Add-WindowsFeature NET-Framework-45-Core'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name NET-Framework-45-Core).Installed"
end
powershell_script 'Install Web-Asp-Net45' do
code 'Add-WindowsFeature Web-Asp-Net45'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Asp-Net45).Installed"
end
powershell_script 'Install Web-WebSockets' do
code 'Add-WindowsFeature Web-WebSockets'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-WebSockets).Installed"
end
powershell_script 'Install NET-WCF-HTTP-Activation45' do
code 'Add-WindowsFeature NET-WCF-HTTP-Activation45'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name NET-WCF-HTTP-Activation45).Installed"
end
powershell_script 'Install Windows Auth' do
code 'Add-WindowsFeature Web-Windows-Auth'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Windows-Auth).Installed"
end
powershell_script 'Install IIS Mgmt Console' do
code 'Add-WindowsFeature Web-Mgmt-Console'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Mgmt-Console).Installed"
end
powershell_script 'Install IIS Mgmt Service' do
code 'Add-WindowsFeature Web-Mgmt-Service'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Mgmt-Service).Installed"
end
powershell_script 'Install IIS Application Initialization' do
code 'Add-WindowsFeature Web-AppInit'
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-AppInit).Installed"
end
service 'w3svc' do
action [:enable, :start]
end
|
Cut & paste the above code into a file called setup.rb
. Open a command console as Administrator
and enter:
1 | c:\chef-apply setup.rb
|
This will now install all the server features required to host Coach on this server.