Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a top-lever dir init/modules/EESSI containing a symlink to the 2023.06 modulefile #198

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion roles/create_cvmfs_content_structure/tasks/do_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@

- name: Apply changes to CVMFS repository, if there are any
block:
- name: "Create directories"
ansible.builtin.file:
path: "/cvmfs/{{ cvmfs_repo }}/{{ item.name }}"
state: directory
mode: "{{ item.mode }}"
with_items: "{{ directories }}"
register: create_directories

- name: "Create symlinks"
ansible.builtin.file:
path: "/cvmfs/{{ cvmfs_repo }}/{{ item }}"
Expand Down Expand Up @@ -41,7 +49,7 @@

rescue:
- name: Abort transaction
ansible.builtin.command: "cvmfs_server abort {{ cvmfs_repo }}"
ansible.builtin.command: "cvmfs_server abort -f {{ cvmfs_repo }}"
when: cvmfs_start_transaction and cvmfs_abort_transaction_on_failures

- name: Exit because of failure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Specifications of files and symlinks for the software.eessi.io CVMFS repository.
# Paths for files and symlinks should be relative to the root of the repository.
---
directories:
- name: init/modules/EESSI
mode: '755'

files:
- name: .cvmfsdirtab
dest: ''
Expand All @@ -12,3 +16,4 @@ files:

symlinks:
host_injections: '$(EESSI_HOST_INJECTIONS:-/opt/eessi)'
init/modules/EESSI/2023.06.lua: /cvmfs/software.eessi.io/versions/2023.06/init/modules/EESSI/2023.06.lua
Loading