-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
FYI: you can use the Lmod from EPEL and only put the config stuff in a repo. Example on https://github.com/vub-hpc/Lmod-config
And some quattor:
unique template common/lmodvub/config;
include 'metaconfig/lmod/config';
prefix "/software/components/metaconfig/services/{/etc/lmodrc.lua}/contents";
"prop" = dict();
"scDescript/0" = dict(
"timestamp", '/apps/brussel/" .. (os.getenv("VSC_OS_LOCAL") or "") .. "/" .. os.getenv("VSC_ARCH_LOCAL") .. ' +
'(os.getenv("VSC_ARCH_SUFFIX") or "") .. "/cacheDir/system.txt',
"dir", '/apps/brussel/" .. (os.getenv("VSC_OS_LOCAL") or "").. "/" .. os.getenv("VSC_ARCH_LOCAL") .. ' +
' (os.getenv("VSC_ARCH_SUFFIX") or "") .. "/cacheDir',
);
# cache for CentOS-7 legacy-software
"scDescript/1" = dict(
"timestamp", '/apps/brussel/CO7/" .. os.getenv("VSC_ARCH_LOCAL") .. ' +
'(os.getenv("VSC_ARCH_SUFFIX") or "") .. "/cacheDir/system.txt',
"dir", '/apps/brussel/CO7/" .. os.getenv("VSC_ARCH_LOCAL") .. ' +
' (os.getenv("VSC_ARCH_SUFFIX") or "") .. "/cacheDir',
);
prefix "/software/components/metaconfig/services";
# TODO: add proper schema support
'{/etc/lmod/lmod_config.lua}' = create('metaconfig/generic/multiline');
'{/etc/lmod/lmod_config.lua}/mode' = 0644;
'{/etc/lmod/lmod_config.lua}/contents' = list(
'require("strict")',
'local cosmic = require("Cosmic"):singleton()',
'cosmic:assign("LMOD_ADMIN_FILE", "/etc/lmod/admin.list")',
'cosmic:assign("LMOD_AUTO_SWAP", "no")',
'cosmic:assign("LMOD_CACHED_LOADS", "yes")',
'cosmic:assign("LMOD_CASE_INDEPENDENT_SORTING", "yes")',
'cosmic:assign("LMOD_DISABLE_SAME_NAME_AUTOSWAP", "yes")',
'cosmic:assign("LMOD_EXTENDED_DEFAULT", "no")',
'cosmic:assign("LMOD_PACKAGE_PATH", "/etc/lmod")',
'cosmic:assign("LMOD_PIN_VERSIONS", "yes")',
'cosmic:assign("LMOD_REDIRECT", "yes")',
'cosmic:assign("LMOD_SHORT_TIME", 86400)',
'cosmic:assign("LMOD_SITE_MSG_FILE", "/etc/lmod/lang.lua")',
'cosmic:assign("LMOD_SITE_NAME", "VUB_HPC")',
);
Metadata
Metadata
Assignees
Labels
No labels