Skip to content

Instantly share code, notes, and snippets.

@The-Loeki
The-Loeki / sssh.sh
Created March 23, 2017 22:40
Shell Script for Standalone Salt SSH
#!/bin/bash
# * Set up a temp directory with some stuff in it
# * Preconfigure Salt SSH to run standalone from that temp space
# * Create a roster with minion_ids ($1) and IP's ($2)
# * Run Salt-SSH to Highstate (or $@) the roster
set -x
cd $(dirname $0)
SALT_DIR=${SALT_DIR:-/srv/salt}