require 'chef/knife' require 'chef/knife/ssh' class Chef class Knife class Ssh def configure_attribute config[:override_attribute] = config[:attribute] || Chef::Config[:knife][:ssh_attribute] config[:attribute] = (Chef::Config[:knife][:ssh_attribute] || config[:attribute] || "private_ipaddress").strip end end end end