====== Install Octopus Deploy Server ====== - [[win2012r2]] - [[sql2016]] (if not already done) - Create a [[windows:ad:managed_service_account]] for the Octopus service to use... - On the SQL 2016 Server, create a database named OctopusDeploy and add to the availability group. - Make sure to give the managed service account and the account installing Octopus permission to this database. - Download the Server installer from [[https://octopus.com/downloads]] and run the installer. - The installer will open the setup wizard, click Next.\\ {{:windows:install:octopus:octopus1.png?nolink}} - Accept the License Agreement and click Next.\\ {{:windows:install:octopus:octopus2.png?nolink}} - Select ''C:\Octopus'' for the Home directory and then Click "Next".\\ {{:windows:install:octopus:octopus3.png?nolink}} - Click Install to start the install.\\ {{:windows:install:octopus:octopus4.png?nolink}} - Click Finish... \\ {{:windows:install:octopus:octopus5.png?nolink}} - Octopus Manager will launch, Click on "Get started..."\\ {{:windows:install:octopus:octopus6.png?nolink}} - Either start a free trial or enter you existing license key, then click "Next"\\ {{:windows:install:octopus:octopus7.png?nolink}} - Select ''C:\Octopus'' for the Home Directory, then click "Next"\\ {{:windows:install:octopus:octopus8.png?nolink}} - Select "Use Local System Account" and click "Next"\\ {{:windows:install:octopus:octopus9.png?nolink}} - Enter the information for the SQL 2016 instances for the Octopus Database, then click "Next"\\ {{:windows:install:octopus:octopus10.png?nolink}} - For Web Portal, accept defaults and click "Next".\\ {{:windows:install:octopus:octopus11.png?nolink}} - For Authentication, select "Active Directory", then click "Next"\\ {{:windows:install:octopus:octopus12.png?nolink}} - Click the "Install"\\ {{:windows:install:octopus:octopus13.png?nolink}} - After the installation has finished, click "Finish".\\ {{:windows:install:octopus:octopus14.png?nolink}} - At this point, the service is stopped and we need to open the Windows Service Control Panel to add the service account created above.\\ {{:windows:install:octopus:servicelogon.png?nolink}} - We also need to give the service account permissions to the directory and the bindings: $account= New-Object System.Security.AccessControl.FileSystemAccessRule( ` "CONTOSO\svc-octopus$", ` "FullControl", ` "ContainerInherit,ObjectInherit", ` "None", ` "Allow") $acl = Get-Acl "C:\Octopus" $acl.SetAccessRule($account) Set-Acl "C:\Octopus" -AclObject $acl netsh http add urlacl url=http://+:80/ user=CONTOSO\svc-octopus$ netsh http add urlacl url=https://+:443/ user=CONTOSO\svc-octopus$ - Before starting the service, go back to the Octopus Manager and click "Change Bindings", then click "Add" in the web bindings wizard.\\ {{:windows:install:octopus:binding1.png?nolink}} - For host, type ''octopus.contoso.com'' and then click "OK" * If you have an SSL certificate, change the scheme to ''https'' - Click "Next" then "Apply" to enable changes. - See [[:devops:octopus:]] for information on configuring the server.