lmod

pdk
Lmod Puppet module

Trey Dockendorf

treydock

7,169 downloads

2,956 latest version

5.0 quality score

Version information

  • 1.3.0 (latest)
  • 1.2.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0
released May 10th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x
  • Puppet >= 5.0.0 < 7.0.0
  • RedHat
    ,
    CentOS
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu

Start using this module

Documentation

treydock/lmod — version 1.3.0 May 10th 2019

puppet-lmod

Puppet Forge Build 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

The default parameter values are suitable for compute nodes using Lmod.

class { 'lmod': }

This is an example of how to configure package building nodes to use Lmod.

class { 'lmod':
  manage_build_packages => true,
}

To customize the avail layout (since Lmod 5.7.5)

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

To install Lmod from existing package repositories

class { 'lmod':
  lmod_package_from_repo => true,
}

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':
  lmod_package_from_repo => true,
  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 6, 7
  • Ubuntu 14.04, 16.04

Development

Testing

Testing requires the following dependencies:

  • rake
  • bundler

Install gem dependencies

bundle install

Run unit tests

bundle exec rake test

If you have Vagrant >= 1.2.0 installed you can run system tests

bundle exec rake beaker

TODO