Version information
released Oct 15th 2013
Start using this module
Add this module to your Puppetfile:
mod 'ajcrowe-supervisord', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
ajcrowe/supervisord — version 0.1.0 Oct 15th 2013
puppet-supervisord
Puppet module to manage the supervisord process control system.
Functions available to configure
Examples
Configuring supervisord with defaults
Install supervisord with pip and install an init script if available
include supervisord
Install supervisord and pip
Install supervisord and install pip if not available.
class supervisord {
$install_pip => true,
}
This will download setuptool and install pip with easy_install.
You can pass a specific url with $setuptools_url = 'url'
Note: Only Debian and RedHat families have an init script currently.
Configure a program
supervisord::program { 'myprogram':
command => 'command --args',
priority => '100'
environment => {
HOME => '/home/myuser',
PATH => '/bin:/sbin:/usr/bin:/usr/sbin',
SECRET => 'mysecret'
}
}
You may also specify a variable for a hiera lookup to retreive your environment hash. This allows you to reuse existing environment variable hashes.
supervisord::program { 'myprogram':
command => 'command --args',
priority => '100'
env_var => 'my_common_envs'
}
Configure a group
supervisord::group { 'mygroup':
priority => 100,
program => ['program1', 'program2', 'program3']
}
ToDo
- eventlistener template and function
- fcgiprogram template and function
- Write spec tests for custom functions
Credits
- Debian init script sourced from the system package.
- RedHat/Centos init script sourced from https://github.com/Supervisor/initscripts
2013-10-15 - Version 0.1.0
Summary:
Completed basic module functionality for
- Install with pip
- Configure programs
- Configure groups
- Install init scripts for RedHat and Debian families
ToDo:
- Complete fgcipragram functions and templates
- Complete eventlistener functions and templates
- Write spec tests
Dependencies
- puppetlabs/concat (>= 1.0.0 <2.0.0)
- puppetlabs/stdlib (>= 4.1.0)