Skip to content

ElaoInfra/ansible-role-supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Supervisor

This role will assume the setup of Supervisor

It's part of the ELAO Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install elao.supervisor,2.0

Using ansible galaxy requirements file:

- src:     elao.supervisor
  version: 2.0

Ansible 1 (no longer maintained)

Using ansible galaxy cli:

ansible-galaxy install elao.supervisor,1.0

Using ansible galaxy requirements file:

- src:     elao.supervisor
  version: 1.0

Role Handlers

Name Type Description
supervisor restart Service Restart supervisor service

Role Variables

Name Default Type Description
elao_supervisor_config {} Array Config
elao_supervisor_configs [] Array Configs

Configuration example

elao_supervisor_config:
  loglevel: info

Enable http server

elao_supervisor_configs:
  - file:     inet_http_server.conf
    template: configs/inet_http_server_default.conf.j2
    config:
      port:     "*:9001"

Program

elao_supervisor_configs:
  - file:     foo.conf
    template: configs/program_default.conf.j2
    config:
      name: foo
      command: "bar"

Example playbook

- hosts: servers
  roles:
     - { role: elao.supervisor }

Licence

MIT

Author information

ELAO (http://www.elao.com/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published