Last active
September 26, 2020 20:33
-
-
Save jolbax/f9c976ef063e0a7c62987041c1d750e2 to your computer and use it in GitHub Desktop.
This is a little collection of useful Salt commands #saltstack #cheatsheet
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
# Refresh Git file server | |
salt-run fileserver.update backend=git | |
# Clear Git file server cache | |
salt-run fileserver.clear_cache backend=git | |
# Clear gitfs locks | |
salt-run cache.clear_git_lock gitfs type=update | |
# 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 | |
# Refresh pillar data | |
salt '*’ saltutil.refresh_pillar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment