chef / chef-apply

The ad-hoc execution tool for the Chef ecosystem.
https://www.chef.sh/
Apache License 2.0
14 stars 14 forks source link

Add support for specifying a different ssh configuration file #95

Open btm opened 5 years ago

btm commented 5 years ago

Describe the Enhancement:

Allow specifying a ssh configuration other than the default file

Describe the Need:

Allows the use of managed and/or templated ssh configuration files for a company that are maintained separate from the individual users ~/.ssh/config file.

Net::SSH::Config.for(host) allows passing a path to a non-default configuration file. A --ssh-config option could be added to specify that file and pass it in ssh_config_for_host.

https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/config.rb#L68 https://github.com/chef/chef-apply/blob/master/lib/chef_apply/target_host.rb#L277

afiune commented 5 years ago

Hi @btm - This is a viable enhancement that we will look into, thank you for opening the issue to track this work.

kmf commented 5 years ago

Watching.