As of March 30, support for using ssh config hosts has been merged with the itamae lead branch:
https://github.com/itamae-kitchen/itamae/pull/115
So, while you are using a recent copy of itamae, this functionality should be supported:
itamae ssh -h my_ssh_config cookbooks/user.rb
or
itamae ssh --host=my_ssh_config cookbooks/user.rb
You may also need to specify the key file on the command line using the -i option:
itamae ssh --host=my_ssh_config -i ~/.ssh/my_ssh_host.key cookbooks/user.rb
or with the IdentityFile line in your ssh configuration:
Host my_ssh_config HostName xxx.xxx.xxx.xxx User ironsand IdentityFile ~/.ssh/my_ssh_host.key
Scott A
source share