Chef cookbook for managing GoCD.
This cookbook install and configures ThoughtWorks GoCD server and agent. This cookbook is adapted from the other community GoCD cookbook to support running agents as custom user.
Either assign the relevent recipes (server or agent) directly to node's run list or use include_recipe
from wrapper recipes.
The agent recipe uses node['go_cd']['server_ip']
attribute to configure the GoCD server. By default this points to localhost. If you are using chef solo, use role or environment to override this value, if you are using chef search capabilties, you can use wrapper recipes as well to specify the GoCD server ip. Example:
node.default['go_cd']['server_ip'] = search(:node, 'name:gocd-server').first.ipaddress
include_recipe 'go_cd::agent'
This cookbook is used along side container and xml_file cookbooks to create Continuous Integration servers, capable of running unprivileged LXC containers as part of their build/test pipelines. An example can be found here (dogfood :-))
- Fork it ( https://github.com/GoatOS/go_cd/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request