Module to manage Windows software repo on a Standalone Minion
file_client: local
must be set in the minion config file.
For documentation on Salt's Windows Repo feature, see here.
salt.modules.win_repo.
genrepo
()¶Generate winrepo_cachefile based on sls files in the winrepo_dir
CLI 范例:
salt-call winrepo.genrepo
salt.modules.win_repo.
show_sls
(name, saltenv='base')¶2015.8.0 新版功能.
Display the rendered software definition from a specific sls file in the local winrepo cache. This will parse all Jinja. Run pkg.refresh_db to pull the latest software definitions from the master.
参数: |
|
---|---|
返回: | Returns a dictionary containing the rendered data structure |
返回类型: |
CLI 范例:
salt '*' winrepo.show_sls gvim
salt '*' winrepo.show_sls test.npp
salt.modules.win_repo.
update_git_repos
(clean=False)¶Checkout git repos containing Windows Software Package Definitions.
重要
This function requires Git for Windows to be installed in order to work. When installing, make sure to select an installation option which permits the git executable to be run from the Command Prompt.
Clean repo cachedirs which are not configured under
winrepo_remotes
.
警告
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.
2015.8.0 新版功能.
CLI 范例:
salt-call winrepo.update_git_repos