dolibarr/dev/vagrant/dolibarrdev/puphpet/puppet/modules/supervisord
2014-06-23 11:28:59 +02:00
..
lib/puppet/parser/functions Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
manifests Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
spec Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
templates Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
tests Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
.fixtures.yml Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
.nodeset.yml Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
.travis.yml Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
Changelog Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
Gemfile Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
Modulefile Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
Rakefile Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00
README.md Updated PuPHPet vagrant box to latest version 2014-06-23 11:28:59 +02:00

Puppet Supervisord

Build Status

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']
}

Development

If you have suggestions or improvements please file an issue or pull request, i'll try and sort them as quickly as possble.

If you submit a pull please try and include tests for the new functionality. The module is tested with Travis-CI.

Credits