Skip to content

module for installing the latest supervisord in AWS Linux / CentOS / Ubuntu

Notifications You must be signed in to change notification settings

centriascolocation/puppet-supervisor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-supervisor

This puppet module automates installation/management of supervisord and programs that it will control.

NOTE: This will install supervisord v3.x.x + superlance plugins. There are no RPM packages, as of the time of writing, for new versions of supervisord so this modulle installs it using python's pip.

Tested on CentOS 6.4, Ubuntu 12.04 and AWS Linux.

Versioning

This module adheres to Semantic Versioning 2.0.0-rc.2.

TODOs

  • eventlisteners

Parameters

See supervisord manual on list of valid values here.

Usage

supervisor::program { 'node-app':
  ensure      => present,
  enable      => true,
  command     => '/usr/bin/node /home/ec2-user/modules/app.js',
  directory   => '/home/ec2-user/modules/',
  environment => 'NODE_ENV=testing',
  user        => 'ec2-user',
  group       => 'ec2-user',
  logdir_mode => '0770',
}
# enable crashmail
supervisor::program { 'node-app':
  ensure      => present,
  enable      => true,
  command     => '/usr/bin/node /home/ec2-user/modules/app.js',
  directory   => '/home/ec2-user/modules/',
  environment => 'NODE_ENV=testing',
  user        => 'ec2-user',
  group       => 'ec2-user',
  logdir_mode => '0770',
  crashmail   => [
     $processname     = 'app' ,
     $subject_header  = 'My Project Name',
     $mail_address    = 'myemail@example.com' ]
}

Dependencies

  • for RHEL based distros, this requires the EPEL repo.

Inspiration

This module was inspired by this work. It doesn't support CentOS and AWS Linux so I had to modify it a bit.

About

module for installing the latest supervisord in AWS Linux / CentOS / Ubuntu

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 36.7%
  • Puppet 32.3%
  • HTML 31.0%