Skip to content

Commit

Permalink
Install and configure Apptainer and Nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bull committed Feb 4, 2025
1 parent 1bbbf31 commit 929c3ef
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 2 deletions.
18 changes: 18 additions & 0 deletions ansible/extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@
name: cuda
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'install.yml' }}"

- name: Setup Apptainer
hosts: apptainer
gather_facts: yes
tags: apptainer
tasks:
- name: Install and configure Apptainer
include_role:
name: azimuth_cloud.image_utils.apptainer

- name: Setup Apptainer
hosts: nextflow
gather_facts: yes
tags: nextflow
tasks:
- name: Install and configure Nextflow
include_role:
name: azimuth_cloud.image_utils.nextflow

- name: Persist hostkeys across rebuilds
# Must be after filesystems.yml (for storage)
# and before portal.yml (where OOD login node hostkeys are scanned)
Expand Down
9 changes: 9 additions & 0 deletions environments/common/inventory/group_vars/all/apptainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---

# Override the role default, which specifies a version string,
# and just rely on Pulp snapshots to keep this in order.
apptainer_rpm_package: "apptainer"

apptainer_config_overrides:
- directive: "mount tmp"
value: "no"
4 changes: 4 additions & 0 deletions environments/common/inventory/group_vars/all/nextflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

nextflow_skel_config: |
process.executor = 'slurm'
1 change: 0 additions & 1 deletion environments/common/inventory/group_vars/all/openhpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ openhpc_packages_default:
- ohpc-gnu12-openmpi4-perf-tools # for hpctests
- openblas-gnu12-ohpc # for hpctests (HPL)
# EPEL packages:
- apptainer
- podman-compose
openhpc_packages_extra: []
openhpc_packages: "{{ openhpc_packages_default + openhpc_packages_extra }}"
Expand Down
6 changes: 6 additions & 0 deletions environments/common/inventory/groups
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,9 @@ extra_packages

[pulp]
# Add builder to this group to enable automatically syncing of pulp during image build

[apptainer]
# Hosts to install and configure Apptainer on

[nextflow]
# Hosts to install and configure Nextflow on
7 changes: 7 additions & 0 deletions environments/common/layouts/everything
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ control
[extra_packages:children]
# Hosts to install specified additional packages on
builder

[apptainer:children]
login
compute

[nextflow:children]
login
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ collections:
version: 0.4.0
- name: https://github.com/azimuth-cloud/ansible-collection-image-utils
type: git
version: 0.4.0
version: apptainer
# stackhpc.pulp has pulp.squeezer as dependency, any version, but latest
# requires newer ansible than can install
- name: pulp.squeezer
Expand Down

0 comments on commit 929c3ef

Please sign in to comment.