All Projects → Oefenweb → Ansible Supervisor

Oefenweb / Ansible Supervisor

Licence: mit
Ansible role to set up (the latest or a specific version of) supervisor in Debian-like systems

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Ansible Supervisor

Ansible Keepalived
Ansible role to set up keepalived in Debian-like systems
Stars: ✭ 21 (-34.37%)
Mutual labels:  ansible, ubuntu, debian
Switch Apt Mirror.ansible.role
switch apt mirror for Debian & Ubuntu with Ansible role.
Stars: ✭ 5 (-84.37%)
Mutual labels:  ansible, ubuntu, debian
Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (+350%)
Mutual labels:  ansible, ubuntu, debian
Mattermost Ansible
Ansible playbook to provide a turnkey solution for the Team Edition of Mattermost
Stars: ✭ 126 (+293.75%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+2540.63%)
Mutual labels:  ansible, ubuntu, debian
Pimp My Box
🌱 Automated seedbox install of rTorrent-PS and PyroScope CLI etc. via Ansible.
Stars: ✭ 127 (+296.88%)
Mutual labels:  ansible, ubuntu, debian
Ansipress
AnsiPress - Simple L(Linux) E(NGINX) M(MariaDB) P(PHP7) Shared Hosting Setup
Stars: ✭ 184 (+475%)
Mutual labels:  ansible, ubuntu, debian
Vagrant Box Templates
Stars: ✭ 100 (+212.5%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (+971.88%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+965.63%)
Mutual labels:  ansible, ubuntu, debian
Debops
DebOps - Your Debian-based data center in a box
Stars: ✭ 734 (+2193.75%)
Mutual labels:  ansible, ubuntu, debian
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+1446.88%)
Mutual labels:  ansible, ubuntu, debian
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (+281.25%)
Mutual labels:  ansible, ubuntu, debian
Plexguide.com
Welcome to https://PlexGuide.com ~ Rapidly deploy multiple-hasty Docker Containers through Ansible with local or Unlimited Google HD Space!
Stars: ✭ 1,631 (+4996.88%)
Mutual labels:  ansible, ubuntu, debian
Ansible Postfix
Ansible role to set up postfix in Debian-like systems
Stars: ✭ 102 (+218.75%)
Mutual labels:  ansible, ubuntu, debian
Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (+403.13%)
Mutual labels:  ansible, ubuntu, debian
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (+81.25%)
Mutual labels:  ansible, ubuntu, debian
Rocket.chat.ansible
Deploy Rocket.Chat with Ansible!
Stars: ✭ 80 (+150%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+487.5%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+1143.75%)
Mutual labels:  ansible, ubuntu, debian

supervisor

Build Status Ansible Galaxy

Set up the latest or a specific version of supervisor in Debian-like systems.

Requirements

  • python (will be installed)
  • pip (will not installed)

Variables

  • supervisor_python_version [default: 2]: Python version to use (install)

  • supervisor_version [default: latest]: Supervisor version to install (e.g. latest, 3.3.1)

  • supervisor_unix_http_server_file [default: /var/run/supervisor.sock]: A path to a UNIX domain socket (e.g. /tmp/supervisord.sock) on which supervisor will listen for HTTP/XML-RPC requests. supervisorctl uses XML-RPC to communicate with supervisord over this port

  • supervisor_unix_http_server_chmod [default: '0700']: Change the UNIX permission mode bits of the UNIX domain socket to this value at startup

  • supervisor_unix_http_server_chown [optional]: The user and group of supervisor_unix_http_server_file file. Use the following format: user:group

  • supervisor_unix_http_server_username [optional]: The username for authentication to the HTTP/XML-RPC server

  • supervisor_unix_http_server_password [optional]: The password for authentication to the HTTP/XML-RPC server. This can be a cleartext password, or can be specified as a SHA-1 hash if prefixed by the string {SHA}

  • supervisor_system_user [default: root]: Name of the user that should own the config file/directory

  • supervisor_system_group [default: root]: Name of the group that should own the config file/directory

  • supervisor_inet_http_server_enabled [default: false]: Whether or not to enable the HTTP server

  • supervisor_inet_http_server_port [default: 9001]: A TCP host:port value or (e.g. 127.0.0.1:9001) on which supervisor will listen for HTTP/XML-RPC requests. supervisorctl will use XML-RPC to communicate with supervisord over this port

  • supervisor_inet_http_server_username [default: admin]: The username required for authentication to this HTTP server Make sure to change!

  • supervisor_inet_http_server_password [default: '4ubA&Et=ASPe']: The password required for authentication to this HTTP server. This can be a cleartext password, or can be specified as a SHA-1 hash if prefixed by the string {SHA} Make sure to change!

  • supervisor_supervisord_nodaemon [default: false]: If true, supervisord will start in the foreground instead of daemonizing

  • supervisor_supervisord_logfile [default: /var/log/supervisor/supervisord.log]: The path to the activity log of the supervisord process

  • supervisor_supervisord_pidfile [default: /var/run/supervisord.pid]: The location in which supervisord keeps its pid file

  • supervisor_supervisord_childlogdir [default: /var/log/supervisor]: The directory used for AUTO child log files

  • supervisor_supervisord_environment [default: '']: A list of key/value pairs comma separated that will be placed in the environment (e.g. 'KEY1="VALUE1",KEY2="VALUE2"')

  • supervisor_supervisorctl_serverurl [default: "unix://{{ supervisor_unix_http_server_file }}"]: The URL that should be used to access the supervisord server, e.g. http://localhost:9001. For UNIX domain sockets, use unix:///absolute/path/to/file.sock

  • supervisor_include [default: '/etc/supervisor/conf.d/*.conf']: A (single) absolute file glob of files to include

  • supervisor_programs_present [default: {}, see templates/etc/supervisor/conf.d/program.conf.j2]: Program definitions

  • supervisor_programs_present.{n} [required]: Program name

  • supervisor_programs_present.{n}.command [required]: The command that will be run when this program is started

  • supervisor_programs_present.{n}.directory [optional]: A directory to which supervisord should temporarily chdir before exec’ing the child

  • supervisor_programs_present.{n}.environment [optional]: A list of key/value pairs comma separated that will be placed in the child process’ environment (e.g. 'KEY1="VALUE1",KEY2="VALUE2"')

  • supervisor_programs_present.{n}.autostart [optional, default true]: If true, this program will start automatically when supervisord is started

  • supervisor_programs_present.{n}.autorestart [optional, default unexpected]: Whether the process will be autorestarted (e.g. true, false)

  • supervisor_programs_present.{n}.startretries [optional]: The number of serial failure attempts that supervisord will allow when attempting to start the program before giving up

  • supervisor_programs_present.{n}.startsecs [optional]: The total number of seconds which the program needs to stay running after a startup to consider the start successful

  • supervisor_programs_present.{n}.stdout_logfile [optional]: Put process stdout output in this file

  • supervisor_programs_present.{n}.stdout_logfile_maxbytes [optional]: The maximum number of bytes that may be consumed by stdout_logfile before it is rotated

  • supervisor_programs_present.{n}.stderr_logfile [optional]: Put process stderr output in this file

  • supervisor_programs_present.{n}.stderr_logfile_maxbytes [optional]: The maximum number of bytes before logfile rotation for stderr_logfile

  • supervisor_programs_present.{n}.user [optional]: This UNIX user account will be used as the account which runs the program

  • supervisor_programs_present.{n}.numprocs [optional]: Supervisor will start as many instances of this program as named by numprocs

  • supervisor_programs_present.{n}.process_name [optional]: Process name, defaults to %(program_name)s-%(process_num)s when numprocs > 1

  • supervisor_programs_present.{n}.stopsignal [optional]: The signal used to kill the program when a stop is requested

  • supervisor_programs_present.{n}.stopwaitsecs [optional]: The number of seconds to wait for the OS to return a SIGCHILD to supervisord after the program has been sent a stopsignal

  • supervisor_programs_present.{n}.stopasgroup [optional, default false]: If true, the flag causes supervisor to send the stop signal to the whole process group and implies killasgroup is true

  • supervisor_programs_present.{n}.killasgroup [optional, default false]: If true, when resorting to send SIGKILL to the program to terminate it send it to its whole process group instead, taking care of its children as well

  • supervisor_programs_absent [default: {}]: Program definitions (to be removed)

  • supervisor_groups_present [default: {}, see templates/etc/supervisor/conf.d/group.conf.j2]: Group definitions

  • supervisor_groups_present.{n} [required]: Group name

  • supervisor_groups_present.{n}.programs [required]: List of programs

  • supervisor_groups_present.{n}.priority [optional]: A priority number

  • supervisor_groups_absent [default: {}]: Group definitions (to be removed)

Dependencies

None

Recommended

  • ansible-pip (see)

Example

---
- hosts: all
  roles:
    - supervisor
Adding two programs in one group
supervisor_programs_present:
  foo:
    command: 'sleep 10'
    directory: /tmp
    autostart: true
    autorestart: true
    startretries: 3
    stdout_logfile: /tmp/foo.out
    stdout_logfile_maxbytes: 0
    stderr_logfile: /tmp/foo.err
    stderr_logfile_maxbytes: 0
    user: vagrant
    numprocs: 8
    process_name: '%(program_name)s-%(process_num)s'
  bar:
    command: 'sleep 10'
    directory: /tmp
    autostart: true
    autorestart: true
    startretries: 3
    stdout_logfile: /tmp/bar.out
    stdout_logfile_maxbytes: 0
    stderr_logfile: /tmp/bar.err
    stderr_logfile_maxbytes: 0
    user: vboxadd

supervisor_groups_present:
  foo-and-bar:
    programs:
      - foo
      - bar
    priority: 10
Removing a group
supervisor_groups_absent:
  foo-and-bar: {}

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].