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
Address and path to the file or directory to be exported.
Name of the target directory where the checkout will put the working directory
The name revision number to checkout. Enable "force" if the directory already exists.
Name of the user performing repository management operations
The user to access the name repository with. The svn default is the current user
Connect to the Subversion server with this password
New in version 0.17.0.
Continue if conflicts are encountered
Overwrite existing target
Change to False to not checkout or update externals
Automatically trust the remote server. SVN's --trust-server-cert
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.
Address of the name repository as passed to "svn checkout"
Name of the target directory where the checkout will put the working directory
The name revision number to checkout. Enable "force" if the directory already exists.
Name of the user performing repository management operations
The user to access the name repository with. The svn default is the current user
Connect to the Subversion server with this password
New in version 0.17.0.
Continue if conflicts are encountered
Change to False to not checkout or update externals
Automatically trust the remote server. SVN's --trust-server-cert
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.