Created
September 19, 2017 17:07
-
-
Save sazaro/c98ded3eb07600d536d4f512a0c9e3a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt -G 'os:windows' pkg.refresh_db | |
windows10minion: | |
Passed invalid arguments to pkg.refresh_db: 'bool' object has no attribute '__getitem__' | |
Fetches metadata files and calls :py:func:`pkg.genrepo | |
<salt.modules.win_pkg.genrepo>` to compile updated repository metadata. | |
Kwargs: | |
saltenv (str): Salt environment. Default: ``base`` | |
verbose (bool): | |
Return verbose data structure which includes 'success_list', a list | |
of all sls files and the package names contained within. Default | |
'False' | |
failhard (bool): | |
If ``True``, an error will be raised if any repo SLS files failed to | |
process. If ``False``, no error will be raised, and a dictionary | |
containing the full results will be returned. | |
Returns: | |
dict: A dictionary containing the results of the database refresh. | |
.. Warning:: | |
When calling this command from a state using `module.run` be sure to | |
pass `failhard: False`. Otherwise the state will report failure if it | |
encounters a bad software definition file. | |
CLI Example: | |
.. code-block:: bash | |
salt '*' pkg.refresh_db | |
salt '*' pkg.refresh_db saltenv=base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Output of salt-run fileserver.file_list | |
- win/repo-ng/remote_map.txt | |
- win/repo-ng/salt-winrepo-ng/.git/FETCH_HEAD | |
- win/repo-ng/salt-winrepo-ng/.git/HEAD | |
- win/repo-ng/salt-winrepo-ng/.git/config | |
- win/repo-ng/salt-winrepo-ng/.git/description | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/applypatch-msg.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/commit-msg.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/post-update.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/pre-applypatch.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/pre-commit.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/pre-push.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/pre-rebase.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/pre-receive.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/prepare-commit-msg.sample | |
- win/repo-ng/salt-winrepo-ng/.git/hooks/update.sample | |
- win/repo-ng/salt-winrepo-ng/.git/index | |
- win/repo-ng/salt-winrepo-ng/.git/info/exclude | |
- win/repo-ng/salt-winrepo-ng/.git/logs/HEAD | |
- win/repo-ng/salt-winrepo-ng/.git/logs/refs/remotes/origin/master | |
- win/repo-ng/salt-winrepo-ng/.git/logs/refs/remotes/origin/needs_a_smarter_downloader | |
- win/repo-ng/salt-winrepo-ng/.git/logs/refs/remotes/origin/travis-ci_cron_daily | |
- win/repo-ng/salt-winrepo-ng/.git/objects/pack/pack-92088c452273f4c94bc431dec516cbf072c0723b.idx | |
- win/repo-ng/salt-winrepo-ng/.git/objects/pack/pack-92088c452273f4c94bc431dec516cbf072c0723b.pack | |
- win/repo-ng/salt-winrepo-ng/.git/refs/remotes/origin/master | |
- win/repo-ng/salt-winrepo-ng/.git/refs/remotes/origin/needs_a_smarter_downloader | |
- win/repo-ng/salt-winrepo-ng/.git/refs/remotes/origin/travis-ci_cron_daily | |
- win/repo-ng/salt-winrepo-ng/.travis.yml | |
- win/repo-ng/salt-winrepo-ng/.travis/requirements.txt | |
- win/repo-ng/salt-winrepo-ng/.travis/tests.py | |
- win/repo-ng/salt-winrepo-ng/7zip.sls | |
- win/repo-ng/salt-winrepo-ng/LICENSE | |
- win/repo-ng/salt-winrepo-ng/README.md | |
- win/repo-ng/salt-winrepo-ng/activeperl_x64.sls | |
- win/repo-ng/salt-winrepo-ng/activeperl_x86.sls | |
- win/repo-ng/salt-winrepo-ng/adobeair.sls | |
- win/repo-ng/salt-winrepo-ng/adobereader-dc-classic.sls | |
- win/repo-ng/salt-winrepo-ng/adobereader-xi.sls | |
- win/repo-ng/salt-winrepo-ng/adobereader.sls | |
- win/repo-ng/salt-winrepo-ng/adobeshockwaveplayer.sls | |
- win/repo-ng/salt-winrepo-ng/adv-ip-scanner.sls | |
- win/repo-ng/salt-winrepo-ng/adv-port-scanner.sls | |
- win/repo-ng/salt-winrepo-ng/advancedlogging.sls | |
- win/repo-ng/salt-winrepo-ng/applicationrequestrouting.sls | |
- win/repo-ng/salt-winrepo-ng/aspnet-mvc1.sls | |
- win/repo-ng/salt-winrepo-ng/atom-msi.sls | |
- win/repo-ng/salt-winrepo-ng/atom.sls | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface: 0.0.0.0 | |
auto_accept: True | |
file_roots: | |
base: | |
- /srv/states | |
pillar_roots: | |
base: | |
- /srv/pillar | |
winrepo_dir_ng: /srv/states/win/repo-ng |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment