Skip to content

Instantly share code, notes, and snippets.

@jolbax
Last active September 26, 2020 20:33
Show Gist options
  • Save jolbax/f9c976ef063e0a7c62987041c1d750e2 to your computer and use it in GitHub Desktop.
Save jolbax/f9c976ef063e0a7c62987041c1d750e2 to your computer and use it in GitHub Desktop.
This is a little collection of useful Salt commands #saltstack #cheatsheet
# 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