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

gocd_agent (23) Versions 1.1.7

Install and configure a ThoughtWorks Go CD (GoCD) Agent/Client

Policyfile
Berkshelf
Knife
cookbook 'gocd_agent', '= 1.1.7', :supermarket
cookbook 'gocd_agent', '= 1.1.7'
knife supermarket install gocd_agent
knife supermarket download gocd_agent
README
Dependencies
Changelog
Quality 100%

gocd_agent GitHub Latest Release Build Status Chef Cookbook

A Chef Cookbook to install and configure a ThoughtWorks Go CD (GoCD) Agent/Client.

Supported Platforms

Verified

  • RHEL: Amazon Linux

Unverified

  • RHEL: RedHat, CentOS, Scientific, Oracle, Fedora, etc.
  • Debian: Debian, Ubuntu, LinuxMint, etc.
  • MacOS X: MacOS X, MacOS X Server, etc.
  • Windows: Windows, MinGW32, MSWin, etc.
  • Solaris: Solaris, Solaris2, OpenSolaris, OmniOS, SmartOS, etc.

Requirements

Other Cookbooks

  • java - GoCD Agents require that OpenJDK/Java 7 is installed.

packages

  • unzip - In some logic branches, the unzip utility method will be used to decompress an archive file.

Attributes

Primary

# The Basics
default[:gocd_agent][:name]    = 'go-agent'
default[:gocd_agent][:version] = '15.2.0'
default[:gocd_agent][:release] = '2248'

# Configure communication with the GoCD Server
default[:gocd_agent][:gocd_server][:host] = '127.0.0.1'
default[:gocd_agent][:gocd_server][:port] = 8153

# Auto-register new GoCD Agents with the GoCD Server?
default[:gocd_agent][:auto_register][:key]          = nil
default[:gocd_agent][:auto_register][:resources]    = []
default[:gocd_agent][:auto_register][:environments] = []
# Requires GoCD 15.2.0 or higher
default[:gocd_agent][:auto_register][:hostname]     = node[:hostname]

Secondary

There are many other attributes specified for this cookbook. To see them in full, review the code: attributes/default.rb

Usage

Include the gocd_agent default recipe to install a GoCD Agent/Client on your system based on the default installation method:

include_recipe 'gocd_agent'

Synonyms: gocd_agent::default, gocd_agent::install

Directed Install Methods

Package

Install the GoCD Agent from official packages [but without using repos]:

# Not necessary to set because it's the default, when available on a platform
node[:gocd_agent][:install_method] = 'package'
include_recipe 'gocd_agent'

# OR:

include_recipe 'gocd_agent::install_from_package'

Binary

Install the GoCD Agent from official prebuilt binaries:

# Not necessary to set because it's the default, when available on a platform
node[:gocd_agent][:install_method] = 'binary'
include_recipe 'gocd_agent'

# OR:

include_recipe 'gocd_agent::install_from_binary'

Source

Install the GoCD Agent from the released source archive:

# Not necessary to set because it's the default, when nothing else is available on a platform
node[:gocd_agent][:install_method] = 'source'
include_recipe 'gocd_agent'

# OR:

include_recipe 'gocd_agent::install_from_source'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Run the unit tests (bundle exec rake spec)
  5. Run test kitchen (bundle exec kitchen test)
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License

Copyright (c) 2015, James M. Greene (MIT License)

Dependent cookbooks

java ~> 1.31.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

gocd_agent CHANGELOG

This file is used to list changes made in each version of the gocd_agent cookbook.

1.1.7

  • Added support for setting the HOME environment variable on Linux via new attribute node['gocd_agent']['home'].

1.1.6

  • Added support for prepending to the PATH environment variable via new attribute node['gocd_agent']['path'].

1.1.5

  • Fixed some instances of using non-existent String method 'trim' instead of 'strip'.

1.1.4

  • Drop the newer :login attribute from use of Mixlib::ShellOut... too modern for OpsWorks's Chef 11.10's "mixlib-shellout-1.3"!

1.1.3

  • Added better internal testing for Travis CI with knife cookbook test

1.1.2

  • Switched from using backtick-escaped line scripts to Mixlib::ShellOut

1.1.1

  • Added default value searches for node['gocd_agent']['java_home'].

1.1.0

  • Added new attribute to allow prereqs to NOT be forcibly installed.

1.0.12

  • Modified template for 'autoregister.properties' file to remove excess whitespace.

1.0.11

  • Adding attribute nodes for setting work_dir and java_home on Linux.

1.0.10

  • Fixed another attribute reference issue during Chef Compile phase vs. Converge phase, this time in the service resource.

1.0.9

  • Removed unnecessary version attribute from package installer resource.

1.0.8

  • Fixed issue with node['gocd_agent']['installation_source'] being empty for installers due to their attributes being evaluated during the Chef Compile phase instead of the Converge phase by using lazy attribute evaluation where needed.
  • Removed debugging code.

1.0.7

  • Syntax error fix. Sorry!

1.0.6

  • MOAR DEBUGGING!

1.0.5

  • Added some debugging code into a private recipe for analysis.

1.0.4

  • Shuffled some attribute definitions around to get the correct values propagated.

1.0.3

  • Added a link to the java cookbook dependency

1.0.2

  • Initial release of the gocd_agent cookbook!

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

1.1.7 passed this metric