rougail/docs/user_data/yaml.rst

72 lines
1.5 KiB
ReStructuredText
Raw Permalink Normal View History

2026-06-07 21:08:47 +02:00
Load user data from YAML file
=============================
Synopsis
-------------
2026-06-05 08:36:40 +02:00
.. note::
2026-06-07 21:08:47 +02:00
| Variable values can be defined in a list of YAML files.
2026-06-06 20:28:11 +02:00
| **Disabled**: if yaml is not set in "select for user data" (step.user_data).
2026-06-05 08:36:40 +02:00
2026-06-07 21:08:47 +02:00
Sample
------
2026-06-05 08:36:40 +02:00
2026-06-07 21:08:47 +02:00
Parameters
--------------
2026-06-05 08:36:40 +02:00
.. list-table::
* - Variable
- Description
* - **yaml.filename**
`UNIX filename <https://rougail.readthedocs.io/en/latest/variable.html#variables-types>`__ `multiple` `mandatory` `unique`
**Command line**:
-yf, --yaml.filename
**Environment variable**: ROUGAILCLI_YAML.FILENAME
- File or directory names where user data are stored.
If a directory is set, all files with "yml" ou "yaml" extension will be load with alphanum order.
**Validators**:
- this filename could be a relative path
- this file must exist
- 'file type allowed: "directory" and "file"'
* - **yaml.file_with_secrets**
`choice <https://rougail.readthedocs.io/en/latest/variable.html#variables-types>`__ `mandatory`
**Command line**:
--yaml.file_with_secrets
**Environment variable**: ROUGAILCLI_YAML.FILE_WITH_SECRETS
- File that may contain secrets.
By default, all files can contain secrets. It might be useful to define more precisely which files can contain these secrets.
**Choices**:
- all **← (default)**
- first
- last
- none