Last active
August 9, 2017 12:45
-
-
Save riezebosch/291d1307958222314c0e to your computer and use it in GitHub Desktop.
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
# Server | |
$server = "$env:ProgramFiles\Octopus Deploy\Octopus\Octopus.Server.exe" | |
. $server create-instance --instance "OctopusServer" --config "C:\Octopus\OctopusServer.config" | |
. $server configure --instance "OctopusServer" --home "C:\Octopus" --storageConnectionString "Data Source=(local)\SQLEXPRESS;Initial Catalog=Octopus;Integrated Security=True" --upgradeCheck "True" --upgradeCheckWithStatistics "True" --webAuthenticationMode "UsernamePassword" --webForceSSL "False" --webListenPrefixes "http://localhost:80/" --commsListenPort "10943" --serverNodeName "VAGRANT-2012-R2" | |
. $server database --instance "OctopusServer" --create --grant 'NT AUTHORITY\SYSTEM' | |
. $server service --instance "OctopusServer" --stop | |
. $server admin --instance "OctopusServer" --username 'administrator' --password 'Pa$$w0rd' | |
. $server license --instance "OctopusServer" --licenseBase64 "PExpY2Vuc2UgU2lnbmF0dXJlPSJqUXhzbExQelM1TmhmNml4YTZucGlvZ0QyVnNsSEZPeEs4Sk1YTWRMZEtjMnluRFlrQnBmNVl6SEhtNW1MQU9CUnVva0xtV0F3bFVFR281S3l4amw5UT09Ij4NCiAgPExpY2Vuc2VkVG8+SW5mbyBTdXBwb3J0IGIudi48L0xpY2Vuc2VkVG8+DQogIDxMaWNlbnNlS2V5PjU5NDQ1LTQxMjU2LTMxNDIzLTU4MDU0PC9MaWNlbnNlS2V5Pg0KICA8VmVyc2lvbj4yLjA8L1ZlcnNpb24+DQogIDxWYWxpZEZyb20+MjAxNS0xMS0wNjwvVmFsaWRGcm9tPg0KICA8VmFsaWRUbz4yMDE1LTEyLTIxPC9WYWxpZFRvPg0KICA8UHJvamVjdExpbWl0PlVubGltaXRlZDwvUHJvamVjdExpbWl0Pg0KICA8TWFjaGluZUxpbWl0PlVubGltaXRlZDwvTWFjaGluZUxpbWl0Pg0KICA8VXNlckxpbWl0PlVubGltaXRlZDwvVXNlckxpbWl0Pg0KPC9MaWNlbnNlPg==" | |
. $server service --instance "OctopusServer" --install --reconfigure --start | |
# Tentacle | |
$thumbprint = (. $server show-thumbprint --nologo)[1] | |
$tentacle = "$env:ProgramFiles\Octopus Deploy\Tentacle\Tentacle.exe" | |
. $tentacle create-instance --instance "Tentacle" --config "C:\Octopus\Tentacle.config" | |
. $tentacle new-certificate --instance "Tentacle" --if-blank | |
. $tentacle configure --instance "Tentacle" --reset-trust | |
. $tentacle configure --instance "Tentacle" --home "C:\Octopus" --app "C:\Octopus\Applications" --port "10933" --noListen "False" | |
. $tentacle configure --instance "Tentacle" --trust $thumbprint | |
. "netsh" advfirewall firewall add rule "name=Octopus Deploy Tentacle" dir=in action=allow protocol=TCP localport=10933 | |
. $tentacle service --instance "Tentacle" --install --start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment