Skip to content

Instantly share code, notes, and snippets.

@max-arnold
Created September 22, 2020 07:40
Show Gist options
  • Save max-arnold/627b3861853abff3f61dbf59e53ebcde to your computer and use it in GitHub Desktop.
Save max-arnold/627b3861853abff3f61dbf59e53ebcde to your computer and use it in GitHub Desktop.
Salt Jinja tester CLI function
# https://twitter.com/SaltTips/status/1308079610555494403
function sj() {
if [ $# -lt 2 ]; then echo "Usage: sj MINION 'Jinja string'"; return 1; fi
sudo salt "$1" slsutil.renderer default_renderer=jinja string="$2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment