doc: gitfs_remotes provide additional ordering information

The user should be informed that a state in a file will overrule a state
in an directory for gitfs_remotes because the remotes are merged
together to one structure.

An extra example should illustrate that it.
This commit is contained in:
Thomas Merkel 2022-07-07 15:09:05 +02:00 committed by Daniel Wozniak
parent 21bdb366e5
commit f933e66a77

View file

@ -276,10 +276,12 @@ And each repository contains some files:
edit/vim.sls
edit/vimrc
nginx/init.sls
shell/init.sls
second.git:
edit/dev_vimrc
haproxy/init.sls
shell.sls
third:
haproxy/haproxy.conf
@ -296,6 +298,12 @@ is executed. For example:
* A request for the file :strong:`salt://haproxy/haproxy.conf` will be served from the
:strong:`file:///root/third` repo.
Also a requested state file overrules a directories with an `init.sls`-file.
For example:
* A request for :strong:`state.apply shell` will be served from the
:strong:`https://github.com/example/second.git` git repo.
.. note::
This example is purposefully contrived to illustrate the behavior of the