SSH Octopus Tentacle Registration
The goal of this LWRP is to register an octopus tentacle connecting via SSH.
Always looking for help.
What it does
It registers a Linux agent with the Octopus Server via the API. To handle registration, the following occurs:
- Looks for a file that contains the Octopus machine id (stored in step #3)
- If file is found, it will not try to register machine (i.e. good for repeated chef runs)
- Registers machine with Octopus Server
- Stores resulting
Idfor use in step #1
Add to your metadata.rb and use whatever package manager to install.
register_ssh_octopus_tenacle 'sample-server' do server_url 'https://my.octopus.server.me' api_key 'Octopus API Key' ssh_account_id 'Account ID of SSH user being used to connect to the boxes' environments ['environments', 'to put this', 'box in'] roles ['roles this', 'box has'] dotnet_core_platform 'linux-x64' # or osx-x64, not required end
Testing this cookbook
rspec spec --col
- You should replace the values in the register recipe with those are specific to you