mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #10033 from gravyboat/develop
Updated file_roots doc to show an example using multiple environments.
This commit is contained in:
commit
85cbec910e
@ -51,6 +51,25 @@ will be returned. If the file is not found there, then
|
||||
This allows for directories to be overlaid and prioritized based on the order
|
||||
they are defined in the configuration.
|
||||
|
||||
It is also possible to have ``file_roots`` which supports multiple
|
||||
environments:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
file_roots:
|
||||
base:
|
||||
- /srv/salt/base
|
||||
dev:
|
||||
- /srv/salt/dev
|
||||
- /srv/salt/base
|
||||
prod:
|
||||
- /srv/salt/prod
|
||||
- /srv/salt/base
|
||||
|
||||
This example ensures that each environmentt will check the associated
|
||||
environment directory for files first. If a file is not found in the
|
||||
appropriate directory, the system will default to using the base directory.
|
||||
|
||||
Local File Server
|
||||
=================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user