salt.runners.winrepo

Runner to manage Windows software repo

salt.runners.winrepo.genrepo(opts=None, fire_event=True)

Generate winrepo_cachefile based on sls files in the winrepo_dir

opts
Specify an alternate opts dict. Should not be used unless this function is imported into an execution module.
fire_event
: True
Fire an event on failure. Only supported on the master.

CLI Example:

salt-run winrepo.genrepo
salt.runners.winrepo.update_git_repos(opts=None, clean=False, masterless=False)

Checkout git repos containing Windows Software Package Definitions

opts
Specify an alternate opts dict. Should not be used unless this function is imported into an execution module.
clean
: False

Clean repo cachedirs which are not configured under winrepo_remotes.

Warning

This argument should not be set to True if a mix of git and non-git repo definitions are being used, as it will result in the non-git repo definitions being removed.

New in version 2015.8.0.

CLI Examples:

salt-run winrepo.update_git_repos
salt-run winrepo.update_git_repos clean=True