Supervisor Blueprint

Can be used as a provider to the application blueprint, or used standalone by adding program templates under a programs-available and enable them manually with the programs setting.

Fabric environment:

blueprints:
  - blues.supervisor

settings:
  supervisor:
    version: 3.1.3                 # Version of supervisor to install (Required)
    # programs:                    # List of programs/templates in `programs-available` folder to enable (Optional)
    #   - foo                      # Template name, with or without .conf extension
    #   - bar
    # auto_disable_programs: true  # Auto disable programs not specified in `programs` setting (Default: true)
reload

Reload supervisor or reload program(s), via SIGHUP

Parameters:program – The program to reload (all|exact|pattern). If not given,

the supervisor service will reload.

setup

Install Supervisor and enable/disable configured programs

configure

Enable/disable configured programs

enable

Enable program.

Parameters:
  • program – Program to enable
  • do_reload – Reload supervisor
Returns:

Got enabled?

disable

Disable program.

Parameters:
  • program – Program to disable
  • do_reload – Reload supervisor
Returns:

Got disabled?

ctl

Run supervisorctl :[command],[program]

Parameters:
  • command – The command to run
  • program – The program to run command against
status

Show program(s) status, shortcut to supervisorctl status

Parameters:program – Optional program to query status