【发布时间】:2016-02-17 12:08:55
【问题描述】:
在 Windows 中,无法将食谱上传到托管厨师服务器。我的 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 :info
log_location STDOUT
node_name "xxxxx"
client_key "#{current_dir}/xxxxx.pem"
validation_client_name "wis-validator"
validation_key "#{current_dir}/wis-validator.pem"
chef_server_url "https://api.chef.io/organizations/xxxx"
cookbook_path ["#{current_dir}/../cookbooks/"]
当我运行knife upload learn_chef_apache2 命令时,出现以下错误消息
错误:当前时尝试使用相对路径“learn_chef_apache2” 目录位于存储库路径之外。错误:当前工作 目录是'E:/Prasanna_POC/learn_chef'。
我正在从食谱文件夹所在的路径和 learn_chef_apache2 食谱所在的路径中运行刀上传命令
【问题讨论】:
-
你的 .chef 目录在哪里?
标签: chef-infra knife cookbook