saltstack/salt — pull request #12009 by scoates (2014-04-15 16:57:44+00:00)
Title: Allow multiple identities for git

Sometimes, multiple private keys must be tried in order to get git
clone/pull/rebase to play nicely with a ssh connection. This patch
allows for this by allowing identities to be a list (but casting if it's
not).

A good example of this is when using private repositories that contain
submodules. GitHub does not allow the use of one key on multiple
repositories.

One small drawback is that there's not really a way to specify this
directly to git with the way the helper function works, so it just tries
them all until it succeeds.

Here's a demo repository for states, including links to protected
repositories, and their keys:
https://github.com/scoates/salt-multi-identity-git-states