Skip to content

Commit e39cefa

Browse files
committed
Install and configure Apptainer and Nextflow
1 parent 34b39fe commit e39cefa

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
@@ -48,6 +48,26 @@
4848
name: cuda
4949
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'install.yml' }}"
5050

51+
- name: Setup Apptainer
52+
hosts: apptainer
53+
gather_facts: yes
54+
tags: apptainer
55+
tasks:
56+
- name: Install and configure Apptainer
57+
include_role:
58+
name: azimuth_cloud.image_utils.apptainer
59+
tasks_from: "{{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
60+
61+
- name: Setup Apptainer
62+
hosts: nextflow
63+
gather_facts: yes
64+
tags: nextflow
65+
tasks:
66+
- name: Install and configure Nextflow
67+
include_role:
68+
name: azimuth_cloud.image_utils.nextflow
69+
tasks_from: "{{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
70+
5171
- name: Persist hostkeys across rebuilds
5272
# Must be after filesystems.yml (for storage)
5373
# 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-250514-1502-5a923b2c",
4-
"RL9": "openhpc-RL9-250514-1502-5a923b2c"
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
@@ -38,7 +38,6 @@ openhpc_packages_default:
3838
- ohpc-gnu12-openmpi4-perf-tools # for hpctests
3939
- openblas-gnu12-ohpc # for hpctests (HPL)
4040
# EPEL packages:
41-
- apptainer
4241
- podman-compose
4342
openhpc_packages_extra: []
4443
openhpc_packages: "{{ (openhpc_packages_default + openhpc_packages_extra) | select | list }}"

environments/common/inventory/groups

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

183183
[gateway]
184184
# Add builder to this group to install gateway ansible-init playbook into image
185+
186+
[apptainer]
187+
# Hosts to install and configure Apptainer on
188+
189+
[nextflow]
190+
# 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
@@ -125,3 +125,10 @@ builder
125125
[gateway:children]
126126
# Add builder to this group to install gateway ansible-init playbook into image
127127
builder
128+
129+
[apptainer:children]
130+
login
131+
compute
132+
133+
[nextflow:children]
134+
login

requirements.yml

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

0 commit comments

Comments
 (0)