salt.fileserver.svnfs

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:
  • subversion
  • pysvn

Changed in version 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)

Return a list of all directories on the 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)

Return a file hash, the hash type is set in the master config file

salt.fileserver.svnfs.file_list(load)

Return a list of all files on the file server in a specified environment

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)

Return a chunk from a file based on the data received

salt.fileserver.svnfs.update()

Execute an svn update on all of the repos