mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Add docs for file:// in gitfs
This commit is contained in:
parent
25047a078b
commit
cbd6492950
@ -303,6 +303,8 @@
|
||||
# and the first repo to have the file will return it.
|
||||
# When using the git backend branches and tags are translated into salt
|
||||
# environments.
|
||||
# Note: file:// repos will be treated as a remote, so refs you want used must
|
||||
# exist in that repo as *local* refs.
|
||||
|
||||
|
||||
##### Pillar settings #####
|
||||
|
@ -71,7 +71,7 @@ Assuming that the ``gitfs_remotes`` option specifies three remotes:
|
||||
gitfs_remotes:
|
||||
- git://github.com/example/first.git
|
||||
- git://github.com/example/second.git
|
||||
- git://github.com/example/third.git
|
||||
- file:///root/third
|
||||
|
||||
.. note::
|
||||
|
||||
@ -79,6 +79,13 @@ Assuming that the ``gitfs_remotes`` option specifies three remotes:
|
||||
gitfs backend. This example should not be read as a recommended way to lay
|
||||
out files and git repos.
|
||||
|
||||
.. note::
|
||||
|
||||
The file:// prefix denotes a git repository in a local directory. However,
|
||||
it will still use the given file:// URL as a remote, rather than copying
|
||||
the git repo to the salt cache. This means that any refs you want
|
||||
accessible must exist as *local* refs in the specified repo.
|
||||
|
||||
Assume that each repository contains some files:
|
||||
|
||||
first.git:
|
||||
@ -91,10 +98,10 @@ second.git:
|
||||
edit/dev_vimrc
|
||||
haproxy/init.sls
|
||||
|
||||
third.git:
|
||||
third:
|
||||
haproxy/haproxy.conf
|
||||
edit/dev_vimrc
|
||||
|
||||
|
||||
The repositories will be searched for files by the master in the order in which
|
||||
they are defined in the configuration, Therefore the remote
|
||||
`git://github.com/example/first.git` will be searched first, if the requested
|
||||
|
Loading…
Reference in New Issue
Block a user