- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with go
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
The go module manages the life cycle of the continuous delivery platform Go provided by Thoughtworks. It aims for self containment and only focus on solving tasks surrounding the Go product with minimal external dependencies.
Thoughtworks Go is a continuous delivery platform used for build, packaging and orchestrating application deployments. Go uses a server component for the administration, presentation and scheduling part, and an agent component responsible for carrying out the work. The Go module manages these concerns within separate named spaced classes.
Go depends on JDK to be installed in order to run. This dependency must be managed outside of the Go module. See: http://www.thoughtworks.com/products/docs/go/current/help/system_requirements.html
In addition, the Go module depends on functions and resource types provided by the puppetlabs-stdlib module and the puppetlabs-concat module.
class { '::go::server':
manage_package_repo => true
}
class { '::go::agent':
manage_package_repo => true
} ->
::go::agent::instance { 'agent1':
path => '/opt/go',
go_server_host => 'localhost',
go_server_port => 8153
}
The Go module exposes the following classes
- go::agent
- go::server
It also exposes these defined types:
- go::agent::instance
- go::server::local_account
The exposed classes are contained using the anchor pattern provided via puppetlabs-stdlib, thus you should be able to form reliable dependencies on these classes as expect all of its resources to be realized.
See the code
Tested and used on Redhat and Ubuntu. See metadata.json for supported OS combinations.
- Install development dependencies
$ bundle install
- Make changes
- Run tests
$ bundle exec rake validate
$ bundle exec rake spec
- Commit to feature branch and create pull request