SharePointDsc icon indicating copy to clipboard operation
SharePointDsc copied to clipboard

SPSearchServiceApp: Added logic and parameter to provision default search topology

Open petepuu opened this issue 3 years ago • 0 comments

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

  • [x] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md. Entry should say what was changed and how that affects users (if applicable), and reference the issue being resolved (if applicable).
  • [x] Resource documentation added/updated in README.md.
  • [x] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based help.
  • [ ] Comment-based help added/updated.
  • [ ] Localization strings added/updated in all localization files as appropriate.
  • [ ] Examples appropriately added/updated.
  • [ ] Unit tests added/updated. See DSC Community Testing Guidelines.
  • [ ] Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
  • [ ] New/changed code adheres to DSC Community Style Guidelines.

This change is Reviewable

petepuu avatar Mar 22 '22 11:03 petepuu