Subversion Fileserver Backend
After enabling this backend, branches, and tags in a remote subversion
repository are exposed to salt as different environments. To enable this
backend, add svn
to the fileserver_backend
option in the
Master config file.
fileserver_backend:
- svn
This backend assumes a standard svn layout with directories for branches
,
tags
, and trunk
, at the repository root.
depends: |
|
---|
在 2014.7.0 版更改: The paths to the trunk, branches, and tags have been made configurable, via
the config options svnfs_trunk
,
svnfs_branches
, and svnfs_tags
.
svnfs_mountpoint
was also added. Finally, support for
per-remote configuration parameters was added. See the
documentation
for more information.
salt.fileserver.svnfs.
clear_cache
()¶Completely clear svnfs cache
salt.fileserver.svnfs.
clear_lock
(remote=None)¶Clear update.lk
remote
can either be a dictionary containing repo configuration
information, or a pattern. If the latter, then remotes for which the URL
matches the pattern will be locked.
salt.fileserver.svnfs.
dir_list
(load)¶返回一个在master所有目录的列表。
salt.fileserver.svnfs.
envs
(ignore_cache=False)¶Return a list of refs that can be used as environments
salt.fileserver.svnfs.
file_hash
(load, fnd)¶返回一个文件hash,hash类型在master配置文件中设置。
salt.fileserver.svnfs.
file_list
(load)¶在指定环境中返回文件服务器的所有文件列表
salt.fileserver.svnfs.
file_list_emptydirs
(load)¶Return a list of all empty directories on the master
salt.fileserver.svnfs.
find_file
(path, tgt_env='base', **kwargs)¶Find the first file to match the path and ref. This operates similarly to the roots file sever but with assumptions of the directory structure based on svn standard practices.
salt.fileserver.svnfs.
init
()¶Return the list of svn remotes and their configuration information
salt.fileserver.svnfs.
lock
(remote=None)¶Place an update.lk
remote
can either be a dictionary containing repo configuration
information, or a pattern. If the latter, then remotes for which the URL
matches the pattern will be locked.
salt.fileserver.svnfs.
serve_file
(load, fnd)¶从一个基于接收到的文件中返回数据块
salt.fileserver.svnfs.
update
()¶Execute an svn update on all of the repos