Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

octopus-deploy (31) Versions 0.13.3

Handles installing Octopus Deploy Server &| Tentacle

Policyfile
Berkshelf
Knife
cookbook 'octopus-deploy', '~> 0.13.3', :supermarket
cookbook 'octopus-deploy', '~> 0.13.3'
knife supermarket install octopus-deploy
knife supermarket download octopus-deploy
README
Dependencies
Changelog
Quality 17%

Octopus Deploy Cookbook <img align="right" src="https://i.octopus.com/blog/201605-logo-text-blueblacktransparent-400_rgb-TTE8.png" />

Cookbook Converge Build Status Code Climate Chef cookbook GitHub license

This cookbook is used for installing the Octopus Deploy server and Tentacle on Microsoft Windows machines.
<br />

**NOTE: This cookbook is managed by Cvent and not by the Octopus Deploy team.

NOTICE: Pre-Release

This is pre release and there will be major changes to this before its final release. The recipes for installation and configuration will be switched into resources so people can use the library easier. Once this is found stable it will be released as version 1.0.0, until this point lock down to any minor version that you use.

Resource/Provider

octopus_deploy_server

Actions

  • :install: Install a version of Octopus Deploy server
  • :configure: Install a version of Octopus Deploy server and configure it
  • :remove: Uninstall a version of the Octopus Deploy Server if it is installed

Attribute Parameters

  • :instance: Name attribute. The Octopus Deploy Server instance name (used for configuring the instance not install)
  • :version: Required. The version of Octopus Deploy Server to install
  • :checksum: The SHA256 checksum of the Octopus Deploy Server msi file to verify download
  • :home_path: The Octopus Deploy Server home directory (Defaults to C:\Octopus)
  • :install_url: The url for the installer to download.
  • :config_path: The Octopus Deploy Server config file path (Defaults to C:\Octopus\OctopusServer.config)
  • :connection_string: The Octopus Deploy Server connection string to the MSSQL Server instance. Required for :configure action.
  • :master_key: The Octopus Deploy Server master key for encryption, leave blank to generate one at creation
  • :node_name: The Octopus Deploy Server Node Name, will default to chef node name
  • :create_database: Whether Octopus Deploy Server should create the database with the connection string provided (Defaults to false)
  • :admin_user: A default admin user for Octopus Deploy Server to create. Requires machine to be joined to active directory, and admin_user must be an AD user
  • :license: The raw license key for Octopus Deploy Server to use
  • :start_service: Whether to start the Octopus Deploy Server service after creation of the instance (Defaults to True)

Example

Install version 3.17.1 of Octopus Deploy Server

octopus_deploy_server 'OctopusServer' do
  action :install
  version '3.17.1'
  checksum '<SHA256-checksum>'
end

This cookbook does not setup the database. You will need a preexisting SQLEXPRESS/MSSQL database instance

octopus_database = "OctopusDeploy"

octopus_deploy_server 'OctopusServer' do
  action [:install, :configure]
  version '3.17.1'
  checksum'cee5ef29d6e517d197687c50a041be47a3bd56a65010051ddc53dc0c515d39e5'
  connection_string "Data Source=(local)\\SQLEXPRESS;Initial Catalog=#{octopus_database};Integrated Security=True"
  node_name node.name
  create_database true
  license '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  start_service true
end

octopus_deploy_tentacle

Actions

  • :install: Install a version of Octopus Deploy Tentacle (Default)
  • :configure: Configure an instance of the octopus Deploy Tentacle
  • :register: Register Tentacle with Octopus Deploy Server
  • :remove: Remove an instance of the Octopus Deploy Tentacle
  • :uninstall: Uninstall a version of the Octopus Deploy Tentacle if it is installed

Attribute Parameters

  • :instance: Name attribute. The Octopus Deploy Tentacle instance name (used for configuring the instance not install)
  • :version: Required. The version of Octopus Deploy Tentacle to install
  • :checksum: The SHA256 checksum of the Octopus Deploy Tentacle msi file to verify download
  • :home_path: The Octopus Deploy Instance home directory (Defaults to C:\Octopus)
  • :config_path: The Octopus Deploy Instance config file path (Defaults to C:\Octopus\Tentacle.config)
  • :app_path: The Octopus Deploy Instance application directory (Defaults to C:\Octopus\Applications)
  • :trusted_cert: The Octopus Deploy Instance trusted Server cert
  • :port: The Octopus Deploy Instance port to listen on for listening Tentacle (Defaults to 10933)
  • :configure_firewall: Whether cookbook will open firewall on listen Tentacles (Defaults to false)
  • :polling: Whether this Octopus Deploy Instance is a polling Tentacle (Defaults to False)
  • :cert_file: Where to export the Octopus Deploy Instance cert (Defaults to C:\Octopus\tentacle_cert.txt)
  • :upgrades_enabled: Whether to upgrade or downgrade the Tentacle version if the windows installer version does not match what is provided in the resource. (Defaults to True)
  • :server: Url to Octopus Deploy Server (e.g https://octopus.example.com)
  • :api_key: Api Key used to register Tentacle to Octopus Server
  • :roles: Array of roles to apply to Tentacle when registering with Octopus Deploy Server (e.g ["web-server","app-server"])
  • :environment: Which environment or environments the Tentacle will become part of when registering with Octopus Deploy Server (Defaults to node.chef_environment). Accepts string or array.
  • :forced_registration: Whether the command should include --force to support overwriting tentacle references that already exist in Octopus Server
  • :tenants: Optional array of tenants to add to the Tentacle. Tenant must already exist on Octopus Deploy Server. Requires Octopus 3.4
  • :tenant_tags: Optional array of tenant tags to add to the Tentacle. Tags must already exist on Octopus Deploy Server. If tag is part of a tag group, include the group name followed by a slash <groupname>/<tag>. e.g ( Priority/VIP, Datacenter/US ).. Requires Octopus 3.4
  • :tentacle_name: Optional custom name for Tentacle. Defaults to the Chef node name
  • :service_user: Optional service user name. Defaults to Local System
  • :service_password: Password for service user
  • :public_dns: Optional DNS/IP value to use when registring with the octopus server. Defaults to node['fqdn']
  • :tenated_deployment_participation: Optional type of deployments allowed [:Untenanted, :Tenanted, :TenantedOrUntenanted] (requires tentacle 3.19.0 or newer)

Examples

Install version 3.2.24 of Octopus Deploy Tentacle

This will simply install the version of the Tentacle that is specified.

octopus_deploy_tentacle 'Tentacle' do
  action :install
  version '3.2.24'
  checksum '147f84241c912da1c8fceaa6bda6c9baf980a77e55e61537880238feb3b7000a'
end
Install version 3.2.24 of Octopus Deploy Tentacle and configure it

This will install the Tentacle and then configure the Tentacle on the machine to communicate with the Octopus Deploy server. It can also update firewall rules if enabled.

octopus_deploy_tentacle 'Tentacle' do
  action [:install, :configure]
  version '3.2.24'
  checksum '147f84241c912da1c8fceaa6bda6c9baf980a77e55e61537880238feb3b7000a'
  trusted_cert 'b5b7ea6537852fb5b7ea6537852f3428'
  # You can enable this resource to update firewall rules as well
  configure_firewall true
end
Register Listening Tentacle with the Octopus Deploy Server

This will check if the Tentacle is registered on the Octopus Deploy server and if it is not will register the Tentacle in the environment with the tags that are specified.

# You will first need to generate an api key
# In Octopus Deploy Server GUI click your Name -> Profile -> API keys
octopus_deploy_tentacle 'Tentacle' do
  action :register
  server 'https://octopus.example.com'
  api_key '12345678910'
  roles ['database']
  # You can set polling to true for a polling Tentacle setup
  # polling true
end

octopus_deploy_tools

Actions

  • :install: Install a version of Octopus Deploy tools (Default)

Attribute Parameters

  • :path: The Octopus Deploy tools directory (Defaults to C:\Octopus)
  • :source: Required. The url to download the tools from
  • :checksum: The SHA256 checksum of the Octopus Deploy tools zip file to verify download

Examples

Install version 4.5.1 of Octopus Deploy tools

This will simply install the version of the tools that is specified to the C:\fun folder

octopus_deploy_tools 'C:\fun' do
  action :install
  source 'https://download.octopusdeploy.com/octopus-tools/4.5.1/OctopusTools.4.5.1.zip'
  checksum 'd6794027d413764e7a892547fba9ed410bfa0a53425b178f628128d2b1aebb5f' # sha256 checksum
end

Assumptions

One major assumption of this cookbook is that you already have .net40 installed on your server. If you do not then you might need to do that before this cookbook. In addition, some of the resources in here require Chef version 12 in order to work.

Known Issues

This does not work with Octopus Deploy versions less than 3.2.3 because of a bug in exporting Tentacle certificates

Tentacle roles are only used the first time a Tentacle is registered with an Octopus Deploy Server. Updating Tentacle roles in cookbook will not update roles on Octopus Deploy Server.

Registering multiple Tentacles on the same machine is not supported.

Switching Tentacle modes between 'polling' & 'listening' is not currently supported.

License and Author

Copyright:: 2015, Cvent, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Please refer to the [license](LICENSE) file for more license information.

Dependent cookbooks

windows >= 0.0.0
windows_firewall ~> 3.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

v0.13.3 (2020-08-27)

Full Changelog

Implemented enhancements:

  • Support the force registration of tentacles #153 (JamieH89)

Fixed bugs:

  • Fix tentacle registration for newer tentacles by generating cert after instance creation #173 (NamanKumarCvent)

v0.13.2 (2019-04-09)

Full Changelog

Implemented enhancements:

Fixed bugs:

Merged pull requests:

  • Add contributing documentation for supermarket #138 (brentm5)
  • Add testing documentation for supermarket #137 (brentm5)

v0.13.1 (2018-03-06)

Full Changelog

Fixed bugs:

  • Fix an issue with registering tentacles with tenated_deployment_participation not specified #136 (brentm5)

Merged pull requests:

  • Correct readme database instructions #133 (spuder)

v0.13.0 (2018-03-05)

Full Changelog

Implemented enhancements:

  • Allow tentacle to run as untenanted #130 (spuder)
  • Make cookbook works for chef 13+ #125 (brentm5)
  • Bump chef_version in metadata to 12.6.0 #116 (spuder)
  • Adds chef_version requirement to metadata.rb #106 (spuder)

Fixed bugs:

  • Adds default node name for server resource #108 (spuder)
  • Validate connection_string in configure service resource #103 (spuder)

v0.12.0 (2017-05-25)

Full Changelog

Implemented enhancements:

  • Update the server resource to use the new style in resources #96 (brentm5)
  • Update tentacle resource to work with new resource declarations #94 (brentm5)
  • Update tools resource to work with new resource declarations #93 (brentm5)

v0.11.0 (2017-05-08)

Full Changelog

Implemented enhancements:

  • Use sensitive attribute for server resource instead of debug #89 (brentm5)

Fixed bugs:

  • Removes the Server resources delayed restart #83 (brentm5)

v0.10.1 (2017-04-13)

Full Changelog

Implemented enhancements:

  • This adds a debug parameter to the server resource #81 (brentm5)

v0.10.0 (2017-01-05)

Full Changelog

Implemented enhancements:

  • Add tools resource to allow installing of octopus deploy tools #77 (brentm5)

v0.9.0 (2016-11-10)

Full Changelog

Implemented enhancements:

  • Add attribute to allow public hostname to be specified on tentacle register #74 (Draftkings)
  • Update README with correct capitalization of Tentacle #73 (vanessalove)

v0.8.0 (2016-11-01)

Full Changelog

Implemented enhancements:

  • Add ability to run tentacle as a specific AD user #71 (gdavison)
  • Add attribute to allow tentacle name to be changed on register #70 (gdavison)

v0.7.0 (2016-10-04)

Full Changelog

Implemented enhancements:

  • Loosen up dependency version locking #68 (blairham)
  • Updates readme to clarify tenant tag grouping #67 (spuder)

v0.6.5 (2016-09-21)

Full Changelog

Implemented enhancements:

  • Allow multiple environments when registering tentacles #65 (gdavison)

v0.6.4 (2016-09-07)

Full Changelog

Implemented enhancements:

  • Adds tenant and tentanttag support #61 (spuder)

Fixed bugs:

  • Fix option_list methods handling of nils #60 (spuder)

v0.6.3 (2016-08-18)

Full Changelog

Fixed bugs:

  • Fix issue in notifying tentacle service restart on tentacle register #57 (spuder)
  • Restarts tentacle service when registering #56 (spuder)

v0.6.2 (2016-08-16)

Full Changelog

Fixed bugs:

  • Change tentacle install parameters to be more quiet #52 (brentm5)

v0.6.1 (2016-08-15)

Full Changelog

Implemented enhancements:

  • Add unit test to validate library assumptions #49 (brentm5)
  • Refactor registering tentacle resource #47 (brentm5)

v0.6.0 (2016-08-08)

Full Changelog

Implemented enhancements:

  • Set tentacle register environment default to be the chef environment #45 (spuder)
  • Add ability for the tentacle resource to setup firewall rule for listening tentacles #43 (spuder)
  • Add changelog generator and first changelog file #39 (brentm5)
  • Add ability to register tentacle with server through tentacle resource #33 (spuder)
  • Include optional master key attribute for configuring a server instance #25 (brentm5)

v0.5.1 (2016-04-04)

Full Changelog

Fixed bugs:

  • Fix issue with notifying service to restart when its disabled! #22 (brentm5)

* This Changelog was automatically generated by github_changelog_generator

Collaborator Number Metric
            

0.13.3 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.13.3 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.13.3 failed this metric

FC009: Resource attribute not recognised: octopus-deploy/resources/tentacle.rb:130
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.13.3 passed this metric

Testing File Metric
            

0.13.3 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.13.3 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