Created
October 10, 2018 04:28
-
-
Save BillCacy/5e0592bd249001229998228aa1967ce0 to your computer and use it in GitHub Desktop.
Mapping of Solr settings using user-defined values. This is used for local testing to simulate the process Octopus will use.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using module ".\BlueGreenSolrSettings.psm1" | |
Set-StrictMode -Version 2.0 | |
$ErrorActionPreference = "Stop" | |
<# | |
.SYNOPSIS | |
Creates a BlueGreenSolrSettings object with property values defined by the user | |
#> | |
function Get-LocalBlueGreenSolrSettings() | |
{ | |
$model = [BlueGreenSolrSettings]::new() | |
$model.Machine.Roles = @( "stc-solr-primary" ) | |
$model.Solr.InstallDir = "C:\solr\solr-6.2.1" | |
$model.Solr.Zookeepers = "10.2.3.22:2181,10.2.3.23:2181,10.2.3.18:2181" | |
$model.Solr.InstanceUrl = "http://localhost:8983/solr" | |
$model.Solr.ActiveRoleName = "stc-solr-primary" | |
$model.Solr.NonActiveRoleName = "non-active-stc-solr-primary" | |
$model.Solr.IndexConfigName = "sitecore_analytics_live_index" | |
return $model | |
} | |
Export-ModuleMember -Function Get-LocalBlueGreenSolrSettings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment