chef-infra - 厨师无法上传
问题描述
我正在学习厨师的基础知识。
基本上我在 Windows 环境中所做的是我在桌面上创建了一个名为 chef
在这个目录中,我有一个名为cookbooks 的文件夹、我的knife.rb 和我的pem 密钥。
在我的食谱中,我做了一个 git clone。
现在在我的目录(C:\Users\adrlee\Desktop\chef)中,我做了一把刀上传食谱 learn_chef_iis。
但是,它给了我一个
错误:在您的菜谱路径中找不到菜谱 learn_chef_iis,跳过它
我的红宝石文件如下:
# 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 "leexhhadrian"
client_key "#{current_dir}/leexhhadrian.pem"
chef_server_url "https://api.chef.io/organizations/chefexampleadrian"
cookbook_path ["#{current_dir}/../cookbooks"]
我究竟做错了什么?
解决方案
Knife.rb 和 pem 文件应该放在它们自己的子文件夹中,Desktop/chef/.chef/
推荐阅读
- android - 将 png 转换为可绘制,然后是颜色过滤器,然后是位图 - 不工作
- c - Unix系统编程:获取要传递给getaddrinfo的网络标识符
- javascript - 这两种连接用法有什么区别?
- javascript - 从firebase函数调用json文件
- php - PHP cURL POST 数据集
- javascript - Graphql - 从生成的 JSON 文件创建模式
- sql - 触发器禁止向表的列插入负数
- shell - 变量中的命令不与文件名中的空白一起运行
- c# - 在 xamarin android 中播放受密码保护的 mp3 歌曲
- scala - scala 未来 firstcompletedof 的超时