diff --git a/group_vars/orangelight/common.yml b/group_vars/orangelight/common.yml index ef37f5fa02..122b4869e1 100644 --- a/group_vars/orangelight/common.yml +++ b/group_vars/orangelight/common.yml @@ -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 diff --git a/playbooks/orangelight.yml b/playbooks/orangelight.yml index 1c812457df..6ff5b9f47c 100644 --- a/playbooks/orangelight.yml +++ b/playbooks/orangelight.yml @@ -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: diff --git a/roles/deploy_user/tasks/main.yml b/roles/deploy_user/tasks/main.yml index fe5a0c57b9..cf7e7fd29b 100644 --- a/roles/deploy_user/tasks/main.yml +++ b/roles/deploy_user/tasks/main.yml @@ -22,6 +22,7 @@ run_once: true tags: update_keys + - name: deploy_user | create the .ssh directory ansible.builtin.file: path: "/home/{{ deploy_user }}/.ssh/" diff --git a/roles/orangelight/meta/main.yml b/roles/orangelight/meta/main.yml index 65934c7261..358055576e 100644 --- a/roles/orangelight/meta/main.yml +++ b/roles/orangelight/meta/main.yml @@ -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 diff --git a/roles/orangelight/molecule/default/converge.yml b/roles/orangelight/molecule/default/converge.yml index d9a5cc91b7..da16c99dd7 100644 --- a/roles/orangelight/molecule/default/converge.yml +++ b/roles/orangelight/molecule/default/converge.yml @@ -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: