module_file_support: update format for configuration (#27598)

This commit is contained in:
Maxim Belkin 2021-11-25 01:41:32 -06:00 committed by GitHub
parent 90b4f55001
commit 6e095a9741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,7 @@ of the installed software. For instance, in the snippet below:
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
# The keyword `all` selects every package # The keyword `all` selects every package
all: all:
@ -322,6 +323,7 @@ your system. If you write a configuration file like:
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
whitelist: ['gcc', 'llvm'] # Whitelist will have precedence over blacklist whitelist: ['gcc', 'llvm'] # Whitelist will have precedence over blacklist
blacklist: ['%gcc@4.4.7'] # Assuming gcc@4.4.7 is the system compiler blacklist: ['%gcc@4.4.7'] # Assuming gcc@4.4.7 is the system compiler
@ -349,6 +351,7 @@ shows how to set hash length in the module file names:
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
hash_length: 7 hash_length: 7
@ -360,6 +363,7 @@ For instance, the following config options,
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
all: all:
suffixes: suffixes:
@ -379,6 +383,7 @@ covered in :ref:`adding_projections_to_views`.
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
projections: projections:
all: '{name}/{version}-{compiler.name}-{compiler.version}-module' all: '{name}/{version}-{compiler.name}-{compiler.version}-module'
@ -403,6 +408,7 @@ that are already in the LMod hierarchy.
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
enable: enable:
- tcl - tcl
tcl: tcl:
@ -431,6 +437,7 @@ that are already in the LMod hierarchy.
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
enable: enable:
- lmod - lmod
lmod: lmod:
@ -591,6 +598,7 @@ do so by using the environment blacklist:
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
all: all:
filter: filter:
@ -614,6 +622,7 @@ activated using ``spack activate``:
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
tcl: tcl:
^python: ^python:
autoload: 'direct' autoload: 'direct'
@ -633,6 +642,7 @@ The allowed values for the ``autoload`` statement are either ``none``,
.. code-block:: yaml .. code-block:: yaml
modules: modules:
default:
lmod: lmod:
all: all:
autoload: 'direct' autoload: 'direct'