Add salt-git-ssh script to pass the ssh identity to the git command.

This commit is contained in:
Massimiliano Torromeo 2014-02-19 16:49:34 +01:00
parent 3cda06b63d
commit 4b620f0097
2 changed files with 7 additions and 0 deletions

6
scripts/salt-git-ssh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
OPTS="-oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no"
if [ ! -z "$GIT_IDENTITY" ]; then
OPTS="$OPTS -i $GIT_IDENTITY"
fi
exec ssh $OPTS "$@"

View File

@ -620,6 +620,7 @@ else:
SETUP_KWARGS['scripts'].extend([
'scripts/salt',
'scripts/salt-cloud',
'scripts/salt-git-ssh',
'scripts/salt-key',
'scripts/salt-master',
'scripts/salt-run',