mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
21bdb366e5
commit
f933e66a77
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue