salt.states.svn#
Manage SVN repositories#
Manage repository checkouts via the svn vcs system. Note that subversion must
be installed for these states to be available, so svn states should include a
requisite to a pkg.installed state for the package which provides subversion
(subversion in most cases). Example:
subversion:
pkg.installed
http://unladen-swallow.googlecode.com/svn/trunk/:
svn.latest:
- target: /tmp/swallow
- salt.states.svn.dirty(name, target, user=None, username=None, password=None, ignore_unversioned=False)#
Determine if the working directory has been changed.
- salt.states.svn.export(name, target=None, rev=None, user=None, username=None, password=None, force=False, overwrite=False, externals=True, trust=False, trust_failures=None)#
Export a file or directory from an SVN repository
- name
Address and path to the file or directory to be exported.
- target
Name of the target directory where the checkout will put the working directory
- revNone
The name revision number to checkout. Enable "force" if the directory already exists.
- userNone
Name of the user performing repository management operations
- usernameNone
The user to access the name repository with. The svn default is the current user
- password
Connect to the Subversion server with this password
New in version 0.17.0.
- forceFalse
Continue if conflicts are encountered
- overwriteFalse
Overwrite existing target
- externalsTrue
Change to False to not checkout or update externals
- trustFalse
Automatically trust the remote server. SVN's --trust-server-cert
- trust_failuresNone
Comma-separated list of certificate trust failures, that shall be ignored. This can be used if trust=True is not sufficient. The specified string is passed to SVN's --trust-server-cert-failures option as-is.
New in version 2019.2.0.
- salt.states.svn.latest(name, target=None, rev=None, user=None, username=None, password=None, force=False, externals=True, trust=False, trust_failures=None)#
Checkout or update the working directory to the latest revision from the remote repository.
- name
Address of the name repository as passed to "svn checkout"
- target
Name of the target directory where the checkout will put the working directory
- revNone
The name revision number to checkout. Enable "force" if the directory already exists.
- userNone
Name of the user performing repository management operations
- usernameNone
The user to access the name repository with. The svn default is the current user
- password
Connect to the Subversion server with this password
New in version 0.17.0.
- forceFalse
Continue if conflicts are encountered
- externalsTrue
Change to False to not checkout or update externals
- trustFalse
Automatically trust the remote server. SVN's --trust-server-cert
- trust_failuresNone
Comma-separated list of certificate trust failures, that shall be ignored. This can be used if trust=True is not sufficient. The specified string is passed to SVN's --trust-server-cert-failures option as-is.
New in version 2019.2.0.