Skip to content

Commit

Permalink
Install patched version of iRODS 4.2.12 library
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Feb 19, 2024
1 parent 5ee5159 commit 26e0fa4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/irods_runtime/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
# copyright Utrecht University

irods_service_account: irods
7 changes: 7 additions & 0 deletions roles/irods_runtime/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# copyright Utrecht University

- name: Restart iRODS
ansible.builtin.service:
name: irods
state: restarted
20 changes: 20 additions & 0 deletions roles/irods_runtime/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,23 @@
ansible.builtin.package:
name: irods-runtime-4.2.12-1
state: present


- name: Determine current checksum of irods_server library
ansible.builtin.command: "sha256sum /usr/lib/libirods_server.so.4.2.12"
register: libirods_server_checksum
changed_when: false


- name: Install local patch for iRODS 4.2.12
ansible.builtin.get_url:
url: https://yoda.uu.nl/irods-patches/libirods_server.so.4.2.12
dest: /usr/lib/libirods_server.so.4.2.12
checksum: sha256:11bb77ff1f17faac1052b891cf6d75a0f55a55814a4ecbad53e1469aca96c1d2
owner: '{{ irods_service_account }}'
group: '{{ irods_service_account }}'
mode: '0644'
force: true
backup: true
notify: Restart iRODS
when: libirods_server_checksum.stdout.split()[0] != '11bb77ff1f17faac1052b891cf6d75a0f55a55814a4ecbad53e1469aca96c1d2'

0 comments on commit 26e0fa4

Please sign in to comment.