salt.states.winrepo

Manage Windows Package Repository

salt.states.winrepo.genrepo(name, force=False, allow_empty=False)

Refresh the winrepo.p file of the repository (salt-run winrepo.genrepo)

if force is True no checks will be made and the repository will be generated if allow_empty is True then the state will not return an error if there are 0 packages

Example:

winrepo:
  winrepo.genrepo