Forge Home

lmod

pdk
Lmod Puppet module

8,919 downloads

351 latest version

5.0 quality score

Version information

  • 3.1.0 (latest)
  • 3.0.1
  • 3.0.0
  • 2.0.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0 (deleted)
released Sep 23rd 2021
This version is compatible with:
  • Puppet Enterprise 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
  • Puppet >= 6.0.0 < 8.0.0
  • RedHat
    ,
    CentOS
    ,
    Debian
    ,
    Ubuntu

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'treydock-lmod', '3.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add treydock-lmod
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install treydock-lmod --version 3.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

treydock/lmod — version 3.1.0 Sep 23rd 2021

puppet-lmod

Puppet Forge CI Status

Overview

The lmod module handles the configuration of a system to use Lmod. Additional details regarding Lmod can be found at http://lmod.readthedocs.io/en/latest/index.html.

Usage

lmod

Install Lmod through package repositories:

class { 'lmod': }

This is an example install Lmod from source.

class { 'lmod':
  prefix            => '/apps',
  modulepath_root   => '/apps/modulefiles',
  version           => '8.4.26',
  install_method    => 'source',
  source_with_flags => {
    'spiderCacheDir' => '/apps/lmodcache/cacheDir',
    'updateSystemFn' => '/apps/lmodcache/system.txt',
  },
}

If you wish to manage the Lmod install outside Puppet:

class { 'lmod':
  prefix            => '/apps',
  modulepath_root   => '/apps/modulefiles',
  install_method    => 'none',
}

To customize the avail layout (since Lmod 5.7.5)

class { 'lmod':
  avail_styles => ['grouped', 'system'],
}

Below is an example that adds several paths to default MODULEPATH, sets a default module, sets LMOD_PACKAGE_PATH and sets LMOD_SYSTEM_NAME.

class { 'lmod':
  modulepaths            => ['$LMOD_sys', 'Core'],
  set_lmod_package_path  => true,
  set_default_module     => true,
  default_module         => 'mycluster',
}

Reference

http://treydock.github.io/puppet-lmod/

Compatibility

Tested using

  • CentOS/RedHat 7, 8
  • Ubuntu 18.04, 20.04
  • Debian 9, 10