webitup/puke — Issue #5: Keystore
Author: etabard
Created: 2012-01-27 17:29:32+00:00
State: open
Labels: feature

As dmp42 said ([#2](https://github.com/webitup/puke/issues/2)):

> keystore.register(target='somehost', user='toto', key='somekey.pri')
> keystore.register(target='somehost', user='ettasoeur', key='someotherkey.pri')
>
> sh('do what you have to do', user='toto', target='somehost')
>
> I'm not sure we want anything but ssh (telnet is a nogo IMHO), but at least we pave the way - hide the underlying protocol, which doesn't quite make sense to "show" as API, and provide a uniform API to manage credentials. If we were to have other protocols, then we could go:
>
> keystore.register(target='ssh://somehost', user='toto', key='somekey.pri')
> sh('do what you have to do', user='toto', target='ssh://somehost')