dsccommunity / SharePointDsc

The SharePointDsc PowerShell module provides DSC resources that can be used to deploy and manage a SharePoint farm
MIT License
245 stars 107 forks source link

SPSearchServiceApp: Added logic and parameter to provision default search topology #1401

Open petepuu opened 2 years ago

petepuu commented 2 years ago

Pull Request (PR) description

Added optional ProvisionDefaultTopology (boolean) parameter to control should the SPSearchServiceApp provision deafult search topology. Use 'ProvisionDefaultTopology = $true' parameter to provision default search topology. When this parameter is defined and value is TRUE then topology is created as below:

  1. First we check are there any servers having Search or ApplicationWithSearch role. If there are then all search components are provisioned to all these servers

  2. If no Search or ApplicationWithSearch role servers exist then we check are there servers having Custom role. If yes then all search server components are provisioned to one (1) server having Custom role

  3. If no servers exist having roles defined in 1 and 2 then we check is this SingleServer or SingleServerFarm deployment and if yes the all search server components are provisioned to that single server

If you do not want to provision default topology then you need to define search topology using the SPSearchTopology resource!

This Pull Request (PR) fixes the following issues

None

Task list


This change is Reviewable