mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #25840 from jfindlay/winrepo_master
add note to winrepo state docs about required grain
This commit is contained in:
commit
423d528b73
@ -1,6 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Manage Windows Package Repository
|
||||
|
||||
.. note::
|
||||
|
||||
This state only loads on minions that have the ``roles: salt-master`` grain
|
||||
set.
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
@ -30,8 +35,14 @@ def 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
|
||||
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,
|
||||
|
||||
.. note::
|
||||
|
||||
This state only loads on minions that have the ``roles: salt-master``
|
||||
grain set.
|
||||
|
||||
Example:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user