plathrop / puppet-module-supervisor

Puppet module for configuring the supervisor daemon tool.
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Enable installation of supervisor via pip #93

Closed pscadiz closed 8 years ago

pscadiz commented 8 years ago

The changes in this request enable installation supervisor via pip, since the distro packages for supervisor are outdated.

What happens is:

  1. Supervisor is installed via pip
  2. Service configuration files (systemd config for redhat and sysv script for debian) are placed using a template
  3. Supervisor is run through those configuration files

Main benefit is for later supervisor packages to be installed (since the latest versions come from pip)

Some requirements:

  1. If the supervisor::provider is set to 'pip', supervisor::pip_ensure must also be set to a valid ensure value (including version)

Some caveats:

  1. Setting the provider to pip after installing a distro package will permanently use pip after unsetting the provider. Since the default is just an ensure of the supervisor package (which is the same name for both pip and dist packages).