22.14.6. 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. This feature is managed by the fileserver_backend option in the salt master config.

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.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 of svn standard practices.

salt.fileserver.svnfs.init()

Return the list of svn remotes and their configuration information

salt.fileserver.svnfs.purge_cache()

Purge the fileserver cache

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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.2

Previous topic

22.14.5. salt.fileserver.s3fs

Next topic

22.15. Salt code and internals

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.