Created
September 22, 2020 07:40
-
-
Save max-arnold/627b3861853abff3f61dbf59e53ebcde to your computer and use it in GitHub Desktop.
Salt Jinja tester CLI function
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
# 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