[openstack-dev] os-cloud-config support for custom .ssh configs
Lennart Regebro
lregebro at redhat.com
Tue Sep 15 17:44:45 UTC 2015
In bug https://bugzilla.redhat.com/show_bug.cgi?id=1252255 is about adding a possibility to have an .ssh directory that is not in ~/.ssh
Currently the blocker there is os-cloud-config, that just calls ssh, and ssh will look in the users homedirectory for .ssh/config no matter what.
To solve this we would need a way to add support for custom .ssh configs in os-cloud-config, specifically to the _perform_pki_initialization() method, so that you can specify a ssh config file, which otherwise will default to ~/.ssh/con fig.
Either we can always use ~/.ssh/config, but perform the user expansion in the Python code. That way it will pick up $HOME, and that means you can just set $HOME first. (There is a patch linked from the bug for python-tripleoclient to allow that).
Or we can pass in the path to the config file as a new paremeter.
In both cases the change is quite trivial.
Thoughts/opinions on this?
//Lennart
More information about the OpenStack-dev
mailing list