22.16.201. salt.modules.svn

Subversion SCM

salt.modules.svn.add(cwd, targets, user=None, username=None, password=None, *opts)

Add files to be tracked by the Subversion working-copy checkout

cwd
The path to the Subversion repository
targets : None
files and directories to pass to the command as arguments
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.add /path/to/repo /path/to/new/file
salt.modules.svn.checkout(cwd, remote, target=None, user=None, username=None, password=None, *opts)

Download a working copy of the remote Subversion repository directory or file

cwd
The path to the Subversion repository
remote : None
URL to checkout
target : None
The name to give the file or directory working copy Default: svn uses the remote basename
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.checkout /path/to/repo svn://remote/repo
salt.modules.svn.commit(cwd, targets=None, msg=None, user=None, username=None, password=None, *opts)

Commit the current directory, files, or directories to the remote Subversion repository

cwd
The path to the Subversion repository
targets : None
files and directories to pass to the command as arguments Default: svn uses '.'
msg : None
Message to attach to the commit log
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.commit /path/to/repo
salt.modules.svn.diff(cwd, targets=None, user=None, username=None, password=None, *opts)

Return the diff of the current directory, files, or directories from the remote Subversion repository

cwd
The path to the Subversion repository
targets : None
files and directories to pass to the command as arguments Default: svn uses '.'
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.diff /path/to/repo
salt.modules.svn.export(cwd, remote, target=None, user=None, username=None, password=None, revision='HEAD', *opts)

Create an unversioned copy of a tree.

cwd
The path to the Subversion repository
remote : None
URL and path to file or directory checkout
target : None
The name to give the file or directory working copy Default: svn uses the remote basename
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.export /path/to/repo svn://remote/repo
salt.modules.svn.info(cwd, targets=None, user=None, username=None, password=None, fmt='str')

Display the Subversion information from the checkout.

cwd
The path to the Subversion repository
targets : None
files, directories, and URLs to pass to the command as arguments svn uses '.' by default
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

fmt : str
How to fmt the output from info. (str, xml, list, dict)

CLI Example:

salt '*' svn.info /path/to/svn/repo
salt.modules.svn.remove(cwd, targets, msg=None, user=None, username=None, password=None, *opts)

Remove files and directories from the Subversion repository

cwd
The path to the Subversion repository
targets : None
files, directories, and URLs to pass to the command as arguments
msg : None
Message to attach to the commit log
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.remove /path/to/repo /path/to/repo/remove
salt.modules.svn.status(cwd, targets=None, user=None, username=None, password=None, *opts)

Display the status of the current directory, files, or directories in the Subversion repository

cwd
The path to the Subversion repository
targets : None
files, directories, and URLs to pass to the command as arguments Default: svn uses '.'
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

CLI Example:

salt '*' svn.status /path/to/repo
salt.modules.svn.switch(cwd, remote, target=None, user=None, username=None, password=None, *opts)

New in version 2014.1.0.

Switch a working copy of a remote Subversion repository directory

cwd
The path to the Subversion repository
remote : None
URL to switch
target : None
The name to give the file or directory working copy Default: svn uses the remote basename
user : None
Run svn as a user other than what the minion runs as
username : None
Connect to the Subversion server as another user
password : None
Connect to the Subversion server with this password

CLI Example:

salt '*' svn.switch /path/to/repo svn://remote/repo
salt.modules.svn.update(cwd, targets=None, user=None, username=None, password=None, *opts)

Update the current directory, files, or directories from the remote Subversion repository

cwd
The path to the Subversion repository
targets : None
files and directories to pass to the command as arguments Default: svn uses '.'
user : None
Run svn as a user other than what the minion runs as
password : None

Connect to the Subversion server with this password

New in version 0.17.0.

username : None
Connect to the Subversion server as another user

CLI Example:

salt '*' svn.update /path/to/repo

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

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.200. salt.modules.supervisord

Next topic

22.16.202. salt.modules.swift

SaltStack News

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