lmod
: Manage Lmod
lmod::install
: Install Lmod package and dependencieslmod::install::source
: Install Lmod from sourcelmod::load
: Manage Lmod load config files
Manage Lmod
class { 'lmod':
install_method => 'package',
}
The following parameters are available in the lmod
class:
ensure
version
package_ensure
prefix
install_method
manage_epel
source_dir
source_with_flags
package_name
runtime_packages
build_packages
manage_alternatives
modulepath_root
modulepaths
set_lmod_package_path
lmod_package_path
set_default_module
default_module
avail_styles
lmod_admin_file
system_name
site_name
cached_loads
modules_bash_path
modules_bash_template
modules_bash_source
modules_csh_path
modules_csh_template
modules_csh_source
stdenv_bash_path
stdenv_bash_template
stdenv_bash_source
stdenv_csh_path
stdenv_csh_template
stdenv_csh_source
with_fish
modules_fish_path
modules_fish_template
modules_fish_source
stdenv_fish_path
stdenv_fish_template
stdenv_fish_source
Data type: Enum['present','absent']
The ensure parameter for this module. If set to 'absent', managed files are removed. If lmod_package_from_repo is true and ensure is 'absent', then the lmod package is also removed.
Default value: 'present'
Data type: String
Version of Lmod to install when installing from source
Default value: '8.4.26'
Data type: String
The ensure value for Lmod package. Only applies when lmod_package_from_repo is true.
Default value: 'present'
Data type: Stdlib::Absolutepath
The prefix used when lmod was compiled.
Default value: '/usr/share'
Data type: Enum['package','source','none']
How Lmod should be installed
Default value: 'package'
Data type: Boolean
Boolean that determines if EPEL should be mananged by this module for systems installing Lmod via yum.
Default value: true
Data type: Stdlib::Absolutepath
Directory to store Lmod source
Default value: '/usr/src'
Data type: Hash
Key/value pair of flags to turn into --with-= passed to configure when installing from source
Default value: {}
Data type: String
Lmod package name if lmod_package_from_repo is true.
Default value: 'Lmod'
Data type: Array
Lmod runtime package dependencies, only installed if lmod_package_from_repo is false
Default value: []
Data type: Array
Lmod runtime devel package dependencies, only installed if manage_build_packages is true
Default value: []
Data type: Boolean
Sets whether alternatives are managed by this module Only used for Debian and Ubuntu systems
Default value: true
Data type: Optional[Stdlib::Absolutepath]
The modulepath for your lmod installation. Default is 'UNSET'. If the value is 'UNSET' then the path $prefix/modulefiles is used.
Default value: undef
Data type: Array
An Array of modulepaths to be defined in the module.sh and module.csh.
Default value: ['$LMOD_sys', 'Core']
Data type: Boolean
Boolean that determines if the LMOD_PACKAGE_PATH environment variable should be set in modules.sh and modules.csh.
Default value: false
Data type: String
Value given to the LMOD_PACKAGE_PATH environment variable in modules.sh and modules.csh.
Default value: '$MODULEPATH_ROOT/Site'
Data type: Boolean
Boolean will disable the management of the files that define the default module.
Default value: false
Data type: String
The name of the default module to be loaded when users login. This will not be set if set_default_module is false.
Default value: 'StdEnv'
Data type: Array
An Array used to set the LMOD_AVAIL_STYLES environment variable. An empty Array prevents this environment variable from being set.
Default value: ['system']
Data type: Optional[Stdlib::Absolutepath]
Defines path used for LMOD_ADMIN_FILE.
Default value: undef
Data type: Optional[String]
Value used for LMOD_SYSTEM_NAME.
Default value: undef
Data type: Optional[String]
Value used for LMOD_SITE_NAME.
Default value: undef
Data type: Optional[Boolean]
Value used for LMOD_CACHED_LOADS.
Default value: undef
Data type: Stdlib::Absolutepath
Path to script to load bash modules environment
Default value: '/etc/profile.d/modules.sh'
Data type: String
Module bash load template
Default value: 'lmod/modules.sh.erb'
Data type: Optional[String]
Module bash load source
Default value: undef
Data type: Stdlib::Absolutepath
Path to script to load csh modules environment
Default value: '/etc/profile.d/modules.csh'
Data type: String
Module csh load template
Default value: 'lmod/modules.csh.erb'
Data type: Optional[String]
Module csh load source
Default value: undef
Data type: Stdlib::Absolutepath
Path to bash script that loads default modules
Default value: '/etc/profile.d/z00_StdEnv.sh'
Data type: String
Default module bash load template
Default value: 'lmod/z00_StdEnv.sh.erb'
Data type: Optional[String]
Default module bash load source
Default value: undef
Data type: Stdlib::Absolutepath
Path to csh script that loads default modules
Default value: '/etc/profile.d/z00_StdEnv.csh'
Data type: String
Default module csh load template
Default value: 'lmod/z00_StdEnv.csh.erb'
Data type: Optional[String]
Default module bash load source
Default value: undef
Data type: Boolean
Enable fish support
Default value: false
Data type: Stdlib::Absolutepath
Path to script to load fish modules environment
Default value: '/etc/fish/conf.d/modules.fish'
Data type: String
Module fish load template
Default value: 'lmod/modules.fish.erb'
Data type: Optional[String]
Module fish load source
Default value: undef
Data type: Stdlib::Absolutepath
Path to fish script that loads default modules
Default value: '/etc/fish/conf.d/z00_StdEnv.fish'
Data type: String
Default module fish load template
Default value: 'lmod/z00_StdEnv.fish.erb'
Data type: Optional[String]
Default module bash load source
Default value: undef