Skip to content

Commit

Permalink
Split x ish server (#40)
Browse files Browse the repository at this point in the history
* xISHServer artifacts removed. Initial commit

* no message
  • Loading branch information
Sarafian authored Dec 20, 2016
1 parent 43c4674 commit 82e19c0
Show file tree
Hide file tree
Showing 54 changed files with 44 additions and 1,974 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## pre-release v0.5

- Removed **xISHServer** module from this repository and moved to [ISHServer](https://github.com/Sarafian/ISHServer).
- Fixed some issues with the `Restart-Server.ps1` and `Test-Server.ps1` scripts.

## pre-release v0.4

- All source code has header based on SDL's open source policy.
Expand Down
6 changes: 3 additions & 3 deletions Examples/Clean-ISH.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ $cleanBlock= {
$ishDeployProgramDataPath=Join-Path "C:\ProgramData" "ISHDeploy.$ishVersion"
Write-Debug "ishDeployProgramDataPath=$ishDeployProgramDataPath"

$ishServerProgramDataPath=Join-Path "C:\ProgramData" "xISHServer.$ishServerVersion"
$ishServerProgramDataPath=Join-Path "C:\ProgramData" "ISHServer.$ishServerVersion"
Write-Debug "ishServerProgramDataPath=$ishServerProgramDataPath"

$ishDeployModuleName="ISHDeploy.$ishVersion"
Write-Debug "ishDeployModuleName=$ishDeployModuleName"
$ishServerModuleName="xISHServer.$ishServerVersion"
$ishServerModuleName="ISHServer.$ishServerVersion"
Write-Debug "ishServerModuleName=$ishServerModuleName"
$ishAutomationModuleName="xISHServer.$ishServerVersion"
$ishAutomationModuleName="ISHServer.$ishServerVersion"
Write-Debug "ishServerModuleName=$ishServerModuleName"

Uninstall-Module $ishDeployModuleName -Force
Expand Down
2 changes: 1 addition & 1 deletion Examples/ISHDeploy/Set-ISHSTSWindows.ImplicitRemoting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ try
if($Computer)
{
$ishServerVersion=($ISHVersion -split "\.")[0]
$ishServerModuleName="xISHServer.$ishServerVersion"
$ishServerModuleName="ISHServer.$ishServerVersion"
$ishDelpoyModuleName="ISHDeploy.$ISHVersion"
$remote=Add-ModuleFromRemote -ComputerName $Computer -Credential $Credential -Name @($ishServerModuleName,$ishDelpoyModuleName)
}
Expand Down
32 changes: 12 additions & 20 deletions Examples/Initialize-ISHServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,9 @@ $osUserCredential=Get-ISHBootstrapperContextValue -ValuePath "OSUserCredentialEx
$ishVersion=Get-ISHBootstrapperContextValue -ValuePath "ISHVersion"
$ishServerVersion=($ishVersion -split "\.")[0]

if(-not $computerName)
{
Write-Warning "xISHServer will be imported from the repository"
Remove-Module -Name xISHServer.12 -ErrorAction SilentlyContinue
Remove-Module -Name xISHServer.13 -ErrorAction SilentlyContinue
Import-Module "$sourcePath\Modules\xISHServer\xISHServer.$ishServerVersion.psm1"
}

$installOracle=Get-ISHBootstrapperContextValue -ValuePath "InstallOracle" -DefaultValue $false
$installMSXML=(($ishVersion -eq "12.0.0") -or ($ishVersion -eq "12.0.1"))
$isSupported=& $scriptsPaths\xISHServer\Test-SupportedServer.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion
$isSupported=& $scriptsPaths\ISHServer\Test-SupportedServer.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion
if(-not $isSupported)
{
return
Expand All @@ -73,14 +65,14 @@ if($ftp)
if($unc)
{
$prerequisitesSourcePath=$unc.ISHServerFolder
& $scriptsPaths\xISHServer\Upload-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -PrerequisitesSourcePath $prerequisitesSourcePath -ISHServerVersion $ishServerVersion
& $scriptsPaths\ISHServer\Upload-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -PrerequisitesSourcePath $prerequisitesSourcePath -ISHServerVersion $ishServerVersion
}
if($ftp)
{
& $scriptsPaths\xISHServer\Get-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FTPHost $ftpHost -FTPCredential $ftpCredential -FTPFolder $ftpISHServerFolder
& $scriptsPaths\ISHServer\Get-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FTPHost $ftpHost -FTPCredential $ftpCredential -FTPFolder $ftpISHServerFolder
}

& $scriptsPaths\xISHServer\Install-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -InstallOracle:$installOracle -InstallMSXML4:$installMSXML
& $scriptsPaths\ISHServer\Install-ISHServerPrerequisites.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -InstallOracle:$installOracle -InstallMSXML4:$installMSXML

if($computerName)
{
Expand All @@ -90,24 +82,24 @@ if($computerName)
if($useFQDNWithCredSSP)
{
$fqdn=[System.Net.Dns]::GetHostByName($computerName)| FL HostName | Out-String | %{ "{0}" -f $_.Split(':')[1].Trim() };
& $scriptsPaths\xISHServer\Initialize-ISHServerOSUser.ps1 -Computer $fqdn -Credential $credential -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName) -CredSSP
& $scriptsPaths\ISHServer\Initialize-ISHServerOSUser.ps1 -Computer $fqdn -Credential $credential -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName) -CredSSP
}
else
{
$sessionOptionsWithCredSSP=Get-ISHBootstrapperContextValue -ValuePath "SessionOptionsWithCredSSPExpression" -Invoke
& $scriptsPaths\xISHServer\Initialize-ISHServerOSUser.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -SessionOptions $sessionOptionsWithCredSSP -OSUser ($osUserCredential.UserName) -CredSSP
& $scriptsPaths\ISHServer\Initialize-ISHServerOSUser.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -SessionOptions $sessionOptionsWithCredSSP -OSUser ($osUserCredential.UserName) -CredSSP
}
}
else
{
& $scriptsPaths\xISHServer\Initialize-ISHServerOSUser.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName)
& $scriptsPaths\ISHServer\Initialize-ISHServerOSUser.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName)
}
& $scriptsPaths\xISHServer\Initialize-ISHServerOSUserRegion.ps1 -Computer $computerName -OSUserCredential $osUserCredential -ISHServerVersion $ishServerVersion
& $scriptsPaths\ISHServer\Initialize-ISHServerOSUserRegion.ps1 -Computer $computerName -OSUserCredential $osUserCredential -ISHServerVersion $ishServerVersion
}
else
{
& $scriptsPaths\xISHServer\Initialize-ISHServerOSUser.ps1 -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName)
Write-Warning "Cannot execute $scriptsPaths\xISHServer\Initialize-ISHServerOSUserRegion.ps1 locally."
& $scriptsPaths\ISHServer\Initialize-ISHServerOSUser.ps1 -ISHServerVersion $ishServerVersion -OSUser ($osUserCredential.UserName)
Write-Warning "Cannot execute $scriptsPaths\ISHServer\Initialize-ISHServerOSUserRegion.ps1 locally."
}

$webCertificate=Get-ISHBootstrapperContextValue -ValuePath "WebCertificate"
Expand Down Expand Up @@ -170,14 +162,14 @@ if($unc)
{
if($unc.AntennaHouseLicensePath)
{
& $scriptsPaths\xISHServer\Set-ISHAntennaHouseLicense.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FilePath $unc.AntennaHouseLicensePath
& $scriptsPaths\ISHServer\Set-ISHAntennaHouseLicense.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FilePath $unc.AntennaHouseLicensePath
}
}
if($ftp)
{
if($ftp.AntennaHouseLicensePath)
{
& $scriptsPaths\xISHServer\Set-ISHAntennaHouseLicense.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FTPHost $ftpHost -FTPCredential $ftpCredential -FTPPath $ftp.AntennaHouseLicensePath
& $scriptsPaths\ISHServer\Set-ISHAntennaHouseLicense.ps1 -Computer $computerName -Credential $credential -ISHServerVersion $ishServerVersion -FTPHost $ftpHost -FTPCredential $ftpCredential -FTPPath $ftp.AntennaHouseLicensePath
}
}

Expand Down
10 changes: 3 additions & 7 deletions Examples/Install-Module.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,17 @@ try
$ishVersion=Get-ISHBootstrapperContextValue -ValuePath "ISHVersion"
$ishServerVersion=($ishVersion -split "\.")[0]

$ishServerModuleName="xISHServer.$ishServerVersion"
$ishServerRepository=Get-ISHBootstrapperContextValue -ValuePath "ISHServerRepository" -DefaultValue PSGallery
$ishServerModuleName="ISHServer.$ishServerVersion"

$ishDeployRepository=Get-ISHBootstrapperContextValue -ValuePath "ISHDeployRepository" -DefaultValue PSGallery
$ishDeployModuleName="ISHDeploy.$ishVersion"

$scope=Get-ISHBootstrapperContextValue -ValuePath "InstallModuleScope" -DefaultValue "AllUsers"

& $scriptsPaths\PowerShellGet\Install-Module.ps1 -Computer $computerName -Credential $credential -ModuleName @("CertificatePS","PSFTP") -Repository PSGallery -Scope:$scope
& $scriptsPaths\PowerShellGet\Install-Module.ps1 -Computer $computerName -Credential $credential -ModuleName $ishServerModuleName -Repository $ishServerRepository -Scope:$scope
& $scriptsPaths\PowerShellGet\Install-Module.ps1 -Computer $computerName -Credential $credential -ModuleName $ishDeployModuleName -Repository $ishDeployRepository -Scope:$scope

if($computerName)
{
$ishServerRepository=Get-ISHBootstrapperContextValue -ValuePath "xISHServerRepository"
& $scriptsPaths\PowerShellGet\Install-Module.ps1 -Computer $computerName -Credential $credential -ModuleName $ishServerModuleName -Repository $ishServerRepository
}
}
finally
{
Expand Down
91 changes: 0 additions & 91 deletions Source/Modules/Publish-xISHServer.ps1

This file was deleted.

37 changes: 0 additions & 37 deletions Source/Modules/xISHServer/Get-ISHCOMPlus.ps1

This file was deleted.

37 changes: 0 additions & 37 deletions Source/Modules/xISHServer/Get-ISHNETInfo.ps1

This file was deleted.

30 changes: 0 additions & 30 deletions Source/Modules/xISHServer/Get-ISHOSInfo.ps1

This file was deleted.

Loading

0 comments on commit 82e19c0

Please sign in to comment.