- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with reaktor
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
Install and configure reaktor
This module installs and configures reaktor (https://github.com/pzim/reaktor). It additonally creates upstart services (Ubuntu only) to run reaktor as a service.
- installs build-essential (Ubuntu only)
- installs reaktor using puppetlabs-ruby bundler
- puppetlabs-stdlib (https://github.com/puppetlabs/puppetlabs-stdlib/)
- puppetlabs-ruby (https://github.com/puppetlabs/puppetlabs-ruby)
- ruby::dev needs to be included.
class { 'reaktor':
config => {
REAKTOR_PUPPET_MASTERS_FILE => '/path/to/mastersfile.txt',
PUPPETFILE_GIT_URL => 'https://bath.to/puppetfile.git',
...
masters => [ 'someone@puppetmaster1', 'someone@puppetmaster2' ],
}Initialises and install reaktor.
Defines if the user which runs reaktor is created or not. Default: true.
Defines the user which runs reaktor. Default reaktor.
Defines the user's home directory which is also the directory where reaktor is installed to. Default: /opt/reaktor.
Defines the user's shell. Default: /usr/sbin/nologin.
Defines the user's UID. Default: 4500.
Defines it the group is created or not. Default true.
Defines the group. Default: reaktor.
Defines the group's GID. Default: 4500.
Defines if the service(s) to run reaktor are created or not. Default: true on Ubuntu, false on all other systems.
A String defining the service provider. Default: upstart on Ubuntu, not set on all other systems.
A string defining the init direcotry. Default: /etc/init on Ubunutu, not set on all other systems.
A string defining the directory where reaktor is installed. Default ${reaktor::homedir}/reaktor.
Defines the repository of the reaktor source code. Default: https://github.com/pzim/reaktor.git.
Defines the package name for the build essentials. Default: build-essential for Ubuntu, undef for all other systems.
A hash defining the configuration for reaktor. See the reaktor doc for more information (https://github.com/pzim/reaktor#environment-variables). In case the service runs as a (Ubuntu/upstart) service the environment variables are inserted into the service script.
Default:
´´´puppet
{
'RACK_ROOT' => $reaktor::dir,
'RESQUE_WORKER_USER' => $reaktor::user,
'RESQUE_WORKER_GROUP' =>
Rake config defining the address. Default: ${::fqdn}.
Rake config defining the port. Default: 4570.
Rake config defining the number of servers. Default: 1.
Rake config defining the maximum number of connections. Default: 1024.
Rake config defining the maximum number of persistent connections. Default: 512.
Rake config defining the timeout. Default: 30.
Rake config defining the environment. Default: production.
Rake config defining the PID. Default: tmp/pids/reaktor.pid.
Rake config defining the rake log output. Default: reaktor.log.
Rake config defining if reaktor runs as a daemon or not. Default: false on Ubuntu, true on all other systems.
Needs to be set to false on Ubuntu if reaktor should run as an (upstart) service.
Used to define if the masters file should be create/managed by the puppet module. Default: true.
Array containing the puppet masters. Default: [].
Hash containing the configs for the notifiers which will be linked to the available notifiers.
Default: { hipchat.rb => { ensure => 'present'} }.
Tested on Ubuntu 14.04