Skip to content

Commit

Permalink
debug 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Dec 2, 2024
1 parent ed03c09 commit afa8c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 91 deletions.
4 changes: 3 additions & 1 deletion ansible/idr-01-install-idr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

- import_playbook: idr-omero.yml

- import_playbook: idr-omero-readonly.yml

- import_playbook: idr-omero-web.yml

- import_playbook: idr-omero-readonly.yml



tags:
Expand Down
90 changes: 0 additions & 90 deletions ansible/idr-omero-readonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,96 +5,6 @@
# TODO: Consider putting some of this into a role

# OMERO read-write fileserver for OMERO read-only
- hosts: "{{ idr_environment | default('idr') }}-omeroreadwrite-hosts"

pre_tasks:
- name: Create idr-metadata directory
become: yes
file:
path: /data/idr-metadata
state: directory
mode: 0755
# Lock down the read-write node in the read-only cluster
- name: install nfs-utils
become: true
ansible.builtin.dnf:
update_cache: true
name: nfs-utils
state: present

- name: Display nfs-server status
command: systemctl enable --now nfs-server
register: command_output

- name: enable nfs
become: true
service:
enabled: true
name: nfs-server
state: started

- name: Display nfs-server status
command: ls -ld /data/OMERO
register: command_output1

- name: Display nfs-server status
command: ls -ld /data/BioFormatsCache
register: command_output2
- name: Display nfs-server status
command: ls -ld /data/idr-metadata
register: command_output3

- name: Display nfs-server status
command: exportfs -v
register: command_output4


- name: Print to console
debug:
msg:
- "{{command_output1.stdout}}"
- "{{command_output2.stdout}}"
- "{{command_output3.stdout}}"
- "{{command_output4.stdout}}"

- name: Display nfs-server status
command: exportfs -ra
register: command_output5
ignore_errors: true

- name: Print to console2
debug:
msg: "{{command_output5}}"

roles:
- role: ome.nfs_share
nfs_shares2:
/data/OMERwO:
- host: "*"
options: 'ro'
/data/BioFormwatsCache:
# TODO: Limit which hosts can write to this dir
- host: "*"
options: 'rw'
/data/idr-metadwata:
- host: "*"
options: 'ro'

# Include restart handlers
- role: ome.omero_common

tasks:
- name: OMERO.server prevent external access
become: yes
copy:
content: |
config set -- Ice.Default.Host 127.0.0.1
dest: /opt/omero/server/config/omero-localhostonly-config.omero
force: yes
mode: 0644
notify:
- restart omero-server



# Read-only OMERO.server config
Expand Down

0 comments on commit afa8c21

Please sign in to comment.