Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[orangelight] Add sidekiq #5712

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions group_vars/orangelight/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,4 @@ rails_app_vars:
value: "{{ vault_ol_libanswers_client_secret }}"
sneakers_worker_name: orangelight-sneakers
sneakers_workers: EventHandler
sidekiq_worker_name: sidekiq
17 changes: 14 additions & 3 deletions playbooks/orangelight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@
- ../group_vars/orangelight/{{ runtime_env | default('staging') }}_solr.yml
- ../group_vars/orangelight/vault.yml
roles:
- role: deploy_user
- role: bind9
- role: ruby_s
- role: passenger
- role: postgresql
- role: nodejs
- role: sidekiq_worker
when: "'indexer' in inventory_hostname"
- role: rails_app
- role: sneakers_worker
- role: redis
- role: extra_path
- role: mailcatcher
- role: roles/postgresql
- role: roles/orangelight
- role: roles/datadog
- role: orangelight
- role: datadog
when: runtime_env | default('staging') == "production"

post_tasks:
Expand Down
1 change: 1 addition & 0 deletions roles/deploy_user/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
run_once: true
tags: update_keys
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!



- name: deploy_user | create the .ssh directory
ansible.builtin.file:
path: "/home/{{ deploy_user }}/.ssh/"
Expand Down
9 changes: 2 additions & 7 deletions roles/orangelight/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ galaxy_info:

license: MIT

min_ansible_version: 2.2
min_ansible_version: '2.2'

platforms:
- name: Ubuntu
versions:
- 18.04
dependencies:
- role: 'redis'
- role: 'sneakers_worker'
- role: 'extra_path'
- role: 'rails_app'
- jammy
11 changes: 11 additions & 0 deletions roles/orangelight/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
apt:
update_cache: true
cache_valid_time: 600
roles:
- role: deploy_user
- role: bind9
- role: ruby_s
- role: passenger
- role: postgresql
- role: nodejs
- role: rails_app
- role: sneakers_worker
- role: redis
- role: extra_path
tasks:
- name: "Include orangelight"
include_role:
Expand Down
Loading