mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
'''
|
'''
|
||||||
Manage Windows Package Repository
|
Manage Windows Package Repository
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This state only loads on minions that have the ``roles: salt-master`` grain
|
||||||
|
set.
|
||||||
'''
|
'''
|
||||||
from __future__ import absolute_import
|
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)
|
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 ``force`` is ``True`` no checks will be made and the repository will be
|
||||||
if allow_empty is True then the state will not return an error if there are 0 packages
|
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:
|
Example:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user