diff options
Diffstat (limited to 'grid5000/steps/data/setup/puppet/modules/env/manifests/nfs/configure_module_path.pp')
-rw-r--r-- | grid5000/steps/data/setup/puppet/modules/env/manifests/nfs/configure_module_path.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/grid5000/steps/data/setup/puppet/modules/env/manifests/nfs/configure_module_path.pp b/grid5000/steps/data/setup/puppet/modules/env/manifests/nfs/configure_module_path.pp new file mode 100644 index 0000000..e1d0451 --- /dev/null +++ b/grid5000/steps/data/setup/puppet/modules/env/manifests/nfs/configure_module_path.pp @@ -0,0 +1,23 @@ +class env::nfs::configure_module_path () { + + # Configure module path (installed in g5k-metapackage) + case "$env::deb_arch" { + "amd64": { + $modulespath = "/grid5000/spack/share/spack/modules/linux-debian9-x86_64\n/grid5000/spack/share/spack/modules/linux-debian10-x86_64\n" + } + "ppc64el": { + $modulespath = "/grid5000/spack/share/spack/modules/linux-debian10-ppc64le\n" + } + default: { + $modulespath = "" + } + } + + file { + '/etc/lmod/modulespath': + ensure => file, + backup => '.puppet-bak', + content => $modulespath, + require => Env::Common::G5kpackages['g5k-meta-packages']; + } +} |