cookbook 'octopus_ssh_tentacle_registration', '~> 0.3.2'
octopus_ssh_tentacle_registration (9) Versions 0.3.2 Follow0
handle tentacle registration for linux ssh servers
cookbook 'octopus_ssh_tentacle_registration', '~> 0.3.2', :supermarket
knife supermarket install octopus_ssh_tentacle_registration
knife supermarket download octopus_ssh_tentacle_registration
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
Id
for use in step #1
Usage
Installation
Add to your metadata.rb and use whatever package manager to install.
depends 'octopus_ssh_tentacle_registration'
In recipe
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
rspec spec --col
Kitchen
- You should replace the values in the [register recipe](./test/cookbooks/octopus-tentacle-registration-test/recipes/register.rb) with those are specific to you
kitchen converge
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.3.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.2 failed this metric
FC092: Custom resources should not define actions: octopus_ssh_tentacle_registration/resources/registration.rb:5
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:8
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:9
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:10
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:11
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:12
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.2 failed this metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.2 failed this metric
FC092: Custom resources should not define actions: octopus_ssh_tentacle_registration/resources/registration.rb:5
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:8
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:9
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:10
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:11
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:12
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.2 failed this metric
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:8
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:9
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:10
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:11
FC115: Custom resource contains a name_property that is required: octopus_ssh_tentacle_registration/resources/registration.rb:12
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.2 passed this metric
Testing File Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.2 failed this metric
0.3.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number