amritsingh.sidekiq-systemd
Ansible Role: Sidekiq Systemd
This Ansible role sets up Sidekiq and Clockwork as systemd services.
Installation
To install the role, run:
ansible-galaxy install amritsingh.sidekiq-systemd
Requirements
This role requires Ansible version 1.9 or higher.
Role Variables
Here are the variables you need to set up:
tmp_storage_dir: "/tmp" # Temporary storage for Sidekiq configuration backups
user_name: ubuntu # Username to use
app_path: /home/ubuntu/project # Path to your application
sidekiq_env: # Environment variables
RAILS_ENV: production # Rails environment setting
You must specify the path to the file containing the Sidekiq and Clockwork process configurations in the variable sidekiq_systemd_conf_file
like this:
sidekiq_systemd_conf_file: /home/ubuntu/project/config/sidekiq_systemd.yml
The content of this file should look like this:
---
config:
- service_name: sidekiq1
command: "bundle exec sidekiq -c 4 -q default -L log/sidekiq.log"
options:
- MemoryLimit=1200M
- service_name: sidekiq2
command: "bundle exec sidekiq -c 4 -q default -L log/sidekiq.log"
- service_name: clockwork
command: "bundle exec clockwork config/clock.rb >> log/clockwork.log 2>&1"
Dependencies
There are no dependencies.
Example Playbook
Here is an example playbook to use this role:
---
- hosts: all
vars:
user_name: ubuntu
app_path: /home/ubuntu/project
tmp_storage_dir: /home/ubuntu/
sidekiq_systemd_conf_file: /home/ubuntu/project/config/systemd_services.yml
roles:
- role: amritsingh.sidekiq-systemd
Informazioni sul progetto
An ansible role to setup sidekiq, clockwork etc. as systemd services.
Installa
ansible-galaxy install amritsingh.sidekiq-systemd
Licenza
Unknown
Download
78
Proprietario
Geek, Programmer, Hacker, Techie...