salt.states.git

Interaction with Git repositories.

NOTE: This modules is under heavy development and the API is subject to change. It may be replaced with a generic VCS module if this proves viable.

https://github.com/saltstack/salt.git:
  git.latest:
    - rev: develop
    - target: /tmp/salt

Members

latest

salt.states.git.latest(name, rev=None, target=None, runas=None, force=None)

Make sure the repository is cloned to the given directory and is up to date

name
Address of the remote repository as passed to "git clone"
rev
The remote branch or revision to checkout after clone / before update
target
Name of the target directory where repository is about to be cloned
runas
Name of the user performing repository management operations
force
Force git to clone into pre-existing directories (deletes contnents)

Parent topic

Table Of Contents

Previous topic

salt.states.gem

Next topic

salt.states.group