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

Deploy ms image region #430

Merged
merged 7 commits into from
Sep 6, 2024
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
10 changes: 10 additions & 0 deletions ansible/group_vars/omeroreadonly-hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ idr_omero_web_user_dropdown: false
# Set this to 'ro' to mount /data/BioFormatsCache on read-only servers as
# read-only, default is 'rw'
# idr_bioformatscache_readwrite:

# MS variables

omero_ms_image_region_update_nginx: true
omero_ms_image_region_db_url: "{{ omero_db_host_ansible }}"
omero_ms_image_region_db_name: idr
omero_ms_image_region_db_username: omeroreadonly
omero_ms_image_region_db_pass: "{{ omero_server_dbpassword }}"
omero_data_dir: /data/OMERO
omero_ms_image_region_session_id: "sessionid_{{ idr_environment | default('idr') }}"
9 changes: 9 additions & 0 deletions ansible/idr-09-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@
- import_playbook: management-prometheus.yml
- import_playbook: management-grafana.yml
- import_playbook: management-fluentd.yml

- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
Tasks:
name: restart the ms service
become: true
ansible.builtin.service:
state: restarted
daemon_reload: true
name: omero-ms-image-region.service
12 changes: 12 additions & 0 deletions ansible/idr-omero-readonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,15 @@
path: "{{ omero_common_basedir }}/server/OMERO.server/lib/scripts/omero"
state: absent
notify: restart omero-server

# deploy ms
# This will modify the omero web nginx configuration file
# It should be executed after running idr-omero-web.yml
# as it is in idr-01-install-idr.yml
- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
become: true

roles:
- role: ome.omero_ms_image_region

environment: "{{ idr_ANSIBLE_ENVIRONMENT_VARIABLES | default({}) }}"
6 changes: 4 additions & 2 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# TODO: check ordering of these dependencies to ensure nested dependencies
# are managed by this file and not the role

- src: ome.analysis_tools
version: 1.1.0
- name: ome.analysis_tools
version: 1.1.1

- name: ome.anonymous_ftp
version: 0.2.1
Expand Down Expand Up @@ -123,6 +123,8 @@
- src: ome.versioncontrol_utils
version: 1.1.0

- name: ome.omero_ms_image_region
version: 1.0.0

######################################################################
# External IDR roles
Expand Down
Loading