Skip to content

Commit

Permalink
Merge pull request #430 from khaledk2/deploy_ms_image_region
Browse files Browse the repository at this point in the history
Deploy ms image region
  • Loading branch information
sbesson authored Sep 6, 2024
2 parents 0e02c6d + 59dbd88 commit 911bc8f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
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

0 comments on commit 911bc8f

Please sign in to comment.