Skip to content

Commit

Permalink
deploy ms-image-region
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Aug 14, 2024
1 parent e90627c commit a9884b0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ansible/idr-ms-image-region.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
become: true

tasks:
- name: get database host
set_fact:
database_server_url: >-
{{
hostvars[groups[idr_environment | default('idr') + '-database-hosts'][0]]
['ansible_' + (idr_net_iface | default('eth0'))]['ipv4']['address']
}}
- name: get database password
set_fact: >-
database_user_password: "{{ idr_secret_postgresql_password_ro | default('omero') }}"
roles:
- role: ome.omero_ms_image_region
omero_ms_image_region_update_nginx: true
omero_ms_image_region_db_url: {{ datab ase_server_url }}
omero_ms_image_region_db_name: idr
omero_ms_image_region_db_username: omeroreadonly
omero_ms_image_region_db_pass: {{ database_user_password }}
omero_data_dir: /data/OMERO
omero_ms_image_region_session_id: sessionid_{{ idr_environment | default('idr') }}
4 changes: 4 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
- src: ome.versioncontrol_utils
version: 1.1.0

# this should be updated after merging the PRs and publich the role
- name: ome.omero_ms_image_region
src: https://github.com/khaledk2/ansible-role-omero-ms-image-region/
version: new_ms_release

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

0 comments on commit a9884b0

Please sign in to comment.