Skip to content

Commit c45a78a

Browse files
committed
Install and configure Apptainer and Nextflow
1 parent 1bbbf31 commit c45a78a

File tree

8 files changed

+47
-4
lines changed

8 files changed

+47
-4
lines changed

ansible/extras.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@
2828
name: cuda
2929
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'install.yml' }}"
3030

31+
- name: Setup Apptainer
32+
hosts: apptainer
33+
gather_facts: yes
34+
tags: apptainer
35+
tasks:
36+
- name: Install and configure Apptainer
37+
include_role:
38+
name: azimuth_cloud.image_utils.apptainer
39+
tasks_from: "{{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
40+
41+
- name: Setup Apptainer
42+
hosts: nextflow
43+
gather_facts: yes
44+
tags: nextflow
45+
tasks:
46+
- name: Install and configure Nextflow
47+
include_role:
48+
name: azimuth_cloud.image_utils.nextflow
49+
tasks_from: "{{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
50+
3151
- name: Persist hostkeys across rebuilds
3252
# Must be after filesystems.yml (for storage)
3353
# and before portal.yml (where OOD login node hostkeys are scanned)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cluster_image": {
3-
"RL8": "openhpc-RL8-250130-1126-8f2a7703",
4-
"RL9": "openhpc-RL9-250130-1127-8f2a7703"
3+
"RL8": "openhpc-RL8-250204-1352-8d071ba8",
4+
"RL9": "openhpc-RL9-250204-1432-8d071ba8"
55
}
66
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
3+
# Mounting /tmp by default can break assumptions made
4+
# by some containers used in nf-core workflows.
5+
apptainer_config_overrides:
6+
- directive: "mount tmp"
7+
value: "no"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
nextflow_skel_config: |
4+
process.executor = 'slurm'

environments/common/inventory/group_vars/all/openhpc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ openhpc_packages_default:
2525
- ohpc-gnu12-openmpi4-perf-tools # for hpctests
2626
- openblas-gnu12-ohpc # for hpctests (HPL)
2727
# EPEL packages:
28-
- apptainer
2928
- podman-compose
3029
openhpc_packages_extra: []
3130
openhpc_packages: "{{ openhpc_packages_default + openhpc_packages_extra }}"

environments/common/inventory/groups

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,9 @@ extra_packages
165165

166166
[pulp]
167167
# Add builder to this group to enable automatically syncing of pulp during image build
168+
169+
[apptainer]
170+
# Hosts to install and configure Apptainer on
171+
172+
[nextflow]
173+
# Hosts to install and configure Nextflow on

environments/common/layouts/everything

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,10 @@ control
111111
[extra_packages:children]
112112
# Hosts to install specified additional packages on
113113
builder
114+
115+
[apptainer:children]
116+
login
117+
compute
118+
119+
[nextflow:children]
120+
login

requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ collections:
4545
version: 0.4.0
4646
- name: https://github.com/azimuth-cloud/ansible-collection-image-utils
4747
type: git
48-
version: 0.4.0
48+
version: apptainer
4949
# stackhpc.pulp has pulp.squeezer as dependency, any version, but latest
5050
# requires newer ansible than can install
5151
- name: pulp.squeezer

0 commit comments

Comments
 (0)