我正试图在刀/ Ruby环境中执行bash脚本。例如: cookbook_file "test.sh" do
path "/tmp/test.sh"
mode "755"
action :create
end
bash "execute test.sh on #{nodeName}" do
code <<-EOH
sh test.sh arg
在Windows中无法将cookbook上载到托管的主厨服务器。我Knife.rd文件: # See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :inf
因此,我通过几种方式(使用刀或通过我的节点上的客户 - 主厨参数进行引导)设置了我的EC2主厨节点,并且每次尝试访问通过刀SSH节点我得到以下错误: WARNING: Failed to connect to *node's FQDN* -- SocketError: getaddrinfo: nodename nor servname provided, or not known
我用刀子S