salt.runners.git_pillar

Runner module to directly manage the git external pillar

salt.runners.git_pillar.update(branch=None, repo=None)

2014.1.0 新版功能.

在 2015.8.4 版更改: This runner function now supports the new git_pillar configuration schema introduced in 2015.8.0. Additionally, the branch and repo can now be omitted to update all git_pillar remotes. The return data has also changed. For releases 2015.8.3 and earlier, there is no value returned. Starting with 2015.8.4, the return data is a dictionary. If using the old git_pillar configuration schema, then the dictionary values will be True if the update completed without error, and False if an error occurred. If using the new git_pillar configuration schema, the values will be True only if new commits were fetched, and False if there were errors or no new commits were fetched.

Update one or all configured git_pillar remotes.

命令行接口CLI 范例:

# Update specific branch and repo
salt-run git_pillar.update branch='branch' repo='https://foo.com/bar.git'
# Update all repos (2015.8.4 and later)
salt-run git_pillar.update
# Run with debug logging
salt-run git_pillar.update -l debug