Skip to content

Commit 96ffcd2

Browse files
authored
Merge pull request #198 from bedroge/2023.06_modulefile_symlink
Add a top-lever dir `init/modules/EESSI` containing a symlink to the 2023.06 modulefile
2 parents e742d80 + ffeda5c commit 96ffcd2

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- hide EESSI/2025.06 module until software layer has enough installations in it
2+
hide_version("EESSI/2025.06")

roles/create_cvmfs_content_structure/tasks/do_repo.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010

1111
- name: Apply changes to CVMFS repository, if there are any
1212
block:
13+
- name: "Create directories"
14+
ansible.builtin.file:
15+
path: "/cvmfs/{{ cvmfs_repo }}/{{ item.name }}"
16+
state: directory
17+
mode: "{{ item.mode }}"
18+
with_items: "{{ directories }}"
19+
register: create_directories
20+
1321
- name: "Create symlinks"
1422
ansible.builtin.file:
1523
path: "/cvmfs/{{ cvmfs_repo }}/{{ item }}"
@@ -41,7 +49,7 @@
4149

4250
rescue:
4351
- name: Abort transaction
44-
ansible.builtin.command: "cvmfs_server abort {{ cvmfs_repo }}"
52+
ansible.builtin.command: "cvmfs_server abort -f {{ cvmfs_repo }}"
4553
when: cvmfs_start_transaction and cvmfs_abort_transaction_on_failures
4654

4755
- name: Exit because of failure

roles/create_cvmfs_content_structure/vars/software.eessi.io.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Specifications of files and symlinks for the software.eessi.io CVMFS repository.
22
# Paths for files and symlinks should be relative to the root of the repository.
33
---
4+
directories:
5+
- name: init/modules/EESSI
6+
mode: '755'
7+
48
files:
59
- name: .cvmfsdirtab
610
dest: ''
@@ -10,5 +14,11 @@ files:
1014
dest: ''
1115
mode: '644'
1216

17+
- name: EESSI-modulerc
18+
dest: 'init/modules/EESSI/.modulerc.lua'
19+
mode: '644'
20+
1321
symlinks:
1422
host_injections: '$(EESSI_HOST_INJECTIONS:-/opt/eessi)'
23+
init/modules/EESSI/2023.06.lua: /cvmfs/software.eessi.io/versions/2023.06/init/modules/EESSI/2023.06.lua
24+
init/modules/EESSI/2025.06.lua: /cvmfs/software.eessi.io/versions/2025.06/init/modules/EESSI/2025.06.lua

0 commit comments

Comments
 (0)