This module manages the apptainer installation and configuration of apptainer.conf.
RedHat and Debian based systems will by default install from an apptainer package
Install and configure apptainer.
include apptainerFor both package and source installs, it's best to define the desired version. This Puppet module supports both upgrades and downgrades of Apptainer.
apptainer::version: '1.4.4'The following Hiera example of building from source (default for Debian 10) with several additional options passed.
golang::version: '1.24.12'
apptainer::version: '1.4.4'
apptainer::install_method: source
apptainer::build_flags:
without-suid: true
mandir: /some/other/path
apptainer::build_env:
GOPATH=/some/other/path
apptainer::prefix: /opt/apptainer
apptainer::sysconfdir: /opt/apptainer/etc
apptainer::localstatedir: /opt/apptainer/varCompile and install a Apptainer plugin from the Apptainer source:
apptainer::plugins:
github.com/apptainer/apptainer/log-plugin:
source_dir: examples/plugins/log-pluginIf replacing Singularity with Apptainer, it's possible to have this module cleanup Singularity to avoid conflicts:
apptainer::remove_singularity: trueEnabling Singularity removal will result in the following actions:
- Remove /etc/singularity