Forge Home

lmod

Lmod Puppet module

11,181 downloads

57 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 5.0.0 (latest)
  • 4.0.0
  • 3.3.2
  • 3.3.1
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 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 Oct 22nd 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'treydock-lmod', '5.0.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 5.0.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 5.0.0 Oct 22nd 2024

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/