The configuration files¶
eb-local reads its settings from up to two TOML files, from EB_LOCAL_* variables, and from options.
eb-local config prints each setting in force and where its value came from, eb-local config --get KEY prints one resolved value, and eb-local profiles prints the profiles the files define.
Files¶
File |
Layer |
|---|---|
The site file: the first that exists of |
site |
|
user |
--config FILE, or EB_LOCAL_CONFIG=FILE without it, names a file to read in place of one of the two: in place of the site file when root or the owner of the program owns FILE, and in place of the user file when you do.
The other file is still read.
A FILE that does not exist, or that someone else owns, stops eb-local.
eb-local reads a file only when it is a regular file, not a symbolic link, not writable by group or others, and at most 1 MiB; a site file must belong to root or to the owner of the program, and a user file to you.
A file that fails any of these stops eb-local; none is skipped.
Run eb-local site check FILE to validate a staged site file as a site layer before installing it.
A file whose name does not end in .toml is a 1.x eb-local.conf: one key = value line per setting, with # starting a comment.
1.x key |
Setting |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layers¶
A setting takes its value from the last of these that sets it:
the built-in default;
the site file;
the profile in force, in the site file;
the user file;
the profile in force, in the user file;
an
EB_LOCAL_*variable, as Environment variables lists them;an option:
--project, or--buildenvfordev.
A secret, or an [eessi] variable, replaces only the one of the same name an earlier layer set.
Profiles¶
A profile is a table [profile.NAME] that holds any setting a file’s top level may, except default_profile and the site settings.
The profile in force is the one --profile names, else EB_LOCAL_PROFILE, else default_profile from the user file, else default_profile from the site file.
An empty EB_LOCAL_PROFILE or default_profile selects no profile; --profile needs a name.
A name that neither file defines is refused, with the names they do define:
eb-local: no profile 'huge' (defined: small, big)
Every profile in both files is checked when the files are read, the profile in force or not.
A user file with three profiles, of which mine is in force unless another is named:
# ~/.config/eb-local/config.toml
default_profile = "mine"
[profile.mine]
dev.modules = ["FFTW/3.3.10-GCC-15.2.0"]
[profile.group]
project = "/path/to/project/eessi"
[profile.gpu]
dev.modules = ["CUDA/13.3.0"]
eb-local profiles lists them, with the file that defines each:
mine user /home/alice/.config/eb-local/config.toml
group user /home/alice/.config/eb-local/config.toml
gpu user /home/alice/.config/eb-local/config.toml
eb-local --profile gpu config shows dev.modules from the gpu profile, and the line that set it:
dev.modules CUDA/13.3.0 [user profile gpu, /home/alice/.config/eb-local/config.toml:10]
Settings¶
A key is written in full at the top of a file, as dev.modules = [...], or without its table’s name under the table’s header, as modules = [...] under [dev].
The default is what eb-local config prints for a setting that nothing sets.
The site settings, storage.*, build.site_toolchains and build.node_types, may be set only in the site file, outside any profile.
Key |
Value |
Default |
Meaning |
|---|---|---|---|
|
a profile name |
The profile in force when neither |
|
|
a path; |
|
Where your installs go, and what |
|
a path |
|
A project directory, which replaces |
|
a module name |
|
The EESSI module. |
|
a module name |
|
The EESSI-extend module. |
|
a module name |
|
The build environment |
|
a module name, or |
|
The build environment for the CUDA compilers, when Lmod has it; otherwise, or when empty, the GCC one. |
|
a module name, or |
|
The build environment for |
|
a module name, or |
|
The build environment for |
|
a module name, or |
|
The build environment for NVHPC, when Lmod has it; otherwise |
|
an array of module names |
|
Modules |
|
a string |
|
The allocation a build started outside a Slurm job suggests, such as |
|
an array of |
|
Toolchains EESSI’s hooks accept besides foss and lfoss; EasyBuild gets them as |
|
a table of strings |
|
Each node type’s name, of letters, digits, |
|
an array of secret names |
|
The secrets a build gets; |
|
|
|
When |
|
an array of absolute paths |
|
Prefixes, besides the EESSI repository and the install prefix, that those checks treat as approved. Site setting. |
|
an integer from 0 to 8 |
|
How many tasks |
|
an array of |
|
Transports |
|
|
|
What |
|
an integer from 0 to 99999 |
|
The age, in whole days, past which |
|
an absolute path |
|
The nimvault program that reads |
|
an absolute path, or one starting |
|
The vault nimvault reads, passed as |
|
|
|
Select |
|
an absolute path |
|
The directory that holds the allocations’ node-local mounts. Site setting. |
|
a file name, with |
|
The name of each allocation’s mount below the root: |
|
a file system type |
|
The type each allocation’s mount must have. Site setting. |
|
an array of absolute paths |
|
Shared scratch file systems, where no prefix, sources or logs may be. Site setting. |
|
a table of |
|
Variables for the EESSI module and its EasyBuild hooks, which |
|
a table of names and sources |
|
Where each secret’s value comes from: |
A module name starts with a letter or digit, and holds letters, digits, ., _, +, - and single slashes, with no slash at the end and no part ...
An unknown key, a value of the wrong type, a key set twice and a value a setting does not take are each refused, naming the file and the line.
[eessi]¶
[eessi] takes EESSI_* names other than those eb-local sets itself: EESSI_USER_INSTALL, EESSI_PROJECT_INSTALL, EESSI_SITE_INSTALL, EESSI_CVMFS_INSTALL, EESSI_SITE_SOFTWARE_PREFIX, EESSI_SOFTWARE_SUBDIR_OVERRIDE, EESSI_ACCELERATOR_TARGET_OVERRIDE and EESSI_OVERRIDE_GPU_CHECK, and the EESSI_SITE_TOP_LEVEL_TOOLCHAINS_* ones build.site_toolchains sets.
Each value is one line of at most 4096 bytes.
eb-local config shows each value, so a credential belongs in [secrets] instead.
[secrets]¶
A secret’s name is the variable eb gets: letters, digits and _, not starting with a digit.
It may not be PATH, HOME, USER, SHELL, TMPDIR, MODULEPATH, PYTHONPATH, BASH_ENV, ENV, SHELLOPTS or BASHOPTS, nor start with LD_, EESSI_, EASYBUILD_, LMOD_, SLURM_, EB_LOCAL_ or BASH_FUNC_.
Source |
The value |
|---|---|
|
The variable VARIABLE in eb-local’s environment. |
|
The file PATH, an absolute path or one starting |
|
Deprecated, and removed in 4.0.0. What |
A build reads the value of each secret it gets, and of no other; eb-local config --check and eb-local doctor read every secret, and never show a value.
No value may be empty or hold a NUL byte; one from a file or from nimvault may be at most 64 KiB, and loses one newline at its end.
A build that does not get a secret from env:VARIABLE runs eb without VARIABLE too, unless VARIABLE is a name a secret may not set, such as PATH.
See also¶
The eb-local command, for
eb-local configandeb-local profiles.