Skip to content

cwells/puppet-module-supervisor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppet module for configuring the 'supervisor' daemon control utility. Currently tested on CentOS 6.

This fork installs using pip rather than system packages, since CentOS supervisor packages are hopelessly out-of-date. I've also added some support for supervisor extensions (specifically superlance/httpok, but can easily be extended).

Install into <module_path>/supervisor

Example usage:

include supervisor

supervisor::service { 'http-app':
  ensure          => present,
  enable          => true,
  user            => 'http-user',
  directory       => '/var/www/http-app',
  numprocs        => 4,
  numprocs_start  => 8000,
  command         => "/var/www/http-app/app.py --host 127.0.0.1 --port %(process_num)s",
  redirect_stderr => true,
  stdout_logfile  => "/var/log/supervivor/http-app-%(process_num)s.log",
  stderr_logfile  => "/var/log/supervisor/http-app-%(process_num)s.error.log"
}

supervisor::plugins::httpok { 'http-app':
  url      => 'http://127.0.0.1',
  port     => 8000,
  code     => '200',
  numprocs => 4
}

Running tests:

$ bundle install --path=.gems
$ bundle exec rake spec

About

Puppet module for configuring the supervisor daemon tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 60.8%
  • HTML 17.7%
  • Ruby 14.7%
  • Shell 6.7%
  • Pascal 0.1%