This file contains hidden or 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
jq -s '.' hosts/* | gomplate -f ssh_config.tmpl -d server=stdin:///in.json > ~/.ssh/config.inc |
This file contains hidden or 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
#!/bin/sh | |
#Get the location of binary packages | |
export GIT=$(which git) #Location of git | |
export RSYNC=$(which rsync) #Location of rsync | |
export GIT_DIR=$(pwd) #Location of repository | |
export TMP="/tmp" | |
export TARFOLDER="${TMP}/git-deploy.$$" |