Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Last active February 23, 2016 14:29
Show Gist options
  • Save Dalmirog-zz/50ccb75939a9cd2cbe7e to your computer and use it in GitHub Desktop.
Save Dalmirog-zz/50ccb75939a9cd2cbe7e to your computer and use it in GitHub Desktop.
Discovering and adding Tentacles

From the web portal you'll normally do:

  1. Click on "Add new Deployment Target" on the Environments page.

  2. Hit the "Discover" button to automatically populate the Tentacle Thumbprint by giving the Tentacle FQDN/IP and Port.

  3. Fill the Tentacle name, environments, roles and then click "Save".

To do the same from the API you'll need to

  1. GET the discover api endpoint as shown on the code example below:

http://[YourOctopus]/api/machines/discover?host=NY-Tentacle2&port=10933&type=TentaclePassive

To get a better understanding of where does each value com from, see the screenshot attached to the email/ticket

Here's a fully working powershell example for this: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Targets/DiscoverTentacle.ps1

  1. Using the information of the previous step, fill the config variables on the below Powershell script and run it.

https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Targets/RegisterTentacle.ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment