How to split configuration into multiple files
This guide shows you how to include module configuration into your recipe from an external file. This is useful if you’re building multiple images or your recipe file is just getting cluttered.
- Create a new YAML file for your module(s) inside the
recipes/
directory. - Add your module configuration into the file.
- The file can configure just one module like this:
- Or it can configure multiple modules by declaring them under
modules:
:
- Import your module configuration file in your recipe with
from-file:
.- Example: