Last active
June 19, 2018 01:59
-
-
Save davidroberts63/3e0a05579e883476fac6 to your computer and use it in GitHub Desktop.
Automate Octopus Deploy Server Install and Configuration
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
$commandArgs = "/i Octopus-Server.msi /quiet INSTALLLOCATION=C:\OctopusServer /lv Octopus-Server-Install-Log.txt" | |
Start-Process "msiexec" $commandArgs -Wait -Verb RunAs |
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
$ErrorActionPreference = "Stop" | |
$OctopusMsi = "Octopus-Server.msi" | |
$InstallPath = "C:\OctopusDeploy" | |
$Server = $InstallPath + "\Octopus.Server.exe" | |
Write-Host "Installing Octopus Deploy server to $InstallPath" | |
$commandArgs = "/i $OctopusMsi /quiet INSTALLLOCATION=$InstallPath /lv Octopus-Server-Install-Log.txt" | |
Start-Process "msiexec" $commandArgs -Wait -Verb RunAs | |
Write-Host "Configuring Octopus Deploy server" | |
Start-Process $Server 'create-instance --instance="OctopusServer" --config="C:\OctopusStorage\OctopusServer\OctopusServer.config"' -Wait -Verb RunAs | |
Start-Process $Server 'configure --instance="OctopusServer" --home="C:\OctopusStorage" --storageMode="Embedded" --upgradeCheck="True" --upgradeCheckWithStatistics="True" --webAuthenticationMode="Domain" --webForceSSL="True" --webListenPrefixes="http://localhost:80/" --storageListenPort="10931"' -Wait -Verb RunAs | |
Start-Process $Server 'service --instance="OctopusServer" --stop' -Wait -Verb RunAs | |
Start-Process $Server 'admin --instance="OctopusServer" --username="[YOUR-ADMIN-USERNAME]" --wait="5000"' -Wait -Verb RunAs | |
Start-Process $Server 'license --instance="OctopusServer" --licenseBase64="[YOUR-LICENSE-HERE]" --wait="5000"' -Wait -Verb RunAs | |
Start-Process $Server 'service --instance="OctopusServer" --install --reconfigure --start' -Wait -Verb RunAs | |
Write-Host "Installation and configuration complete" -ForegroundColor Green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does the --wait="5000" syntax for the admin and license do?