Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Dynamic File Roots #48132
Description of Issue/Question
In our current environment we are using a mixture of information coming out of a git repository and from a local salt file server. Historically all information was always taken from the saltenv base environment (as in the master branch of the git repository and files that were locally on disk configured as the base saltenv)
However, we are moving forward to a new versioning model for git - requiring us to pull information from specific tags/branches. Thus, e.g. we call a salt runner providing a saltenv as a parameter. We have adapted our master configuration to then pull only from a git branch/tag that is equal to the saltenv.
This, however, does not seem to work with the local file server. It seems that you are required to always specify specific saltenvs for file_roots in the master config.
The question is if something like env also exists for file_roots - enabling you to specify one path on a local file server for all saltenvs?
Please find below a sanitized master configuration showing the issue:
Steps to Reproduce Issue
I'd really like this too... I tried gitfs, but we have some use some formulas as git submodules and that didn't work (at least it didn't last time I checked).
If we could set a