厨师食谱上传

Chef Cookbook upload

我正在尝试将特定的食谱从我的本地计算机上传到我的厨师组织,但我收到以下错误:

pwd:  /c/Users/z068688/sharaj_repo/sensu_cookbooks/cookbooks

$ knife upload certs_tgt -c C:/Users/z068688/.chef/knife_flex_plm.rb
ERROR: Attempt to use relative path 'certs_tgt' when current directory is outside the repository path.
ERROR: Current working directory is 'C:/Users/z068688/sharaj_repo/sensu_cookbooks/cookbooks'.

将食谱上传到 Chef-server 时使用 -o 参数。

knife cookbook upload cookbook_name -o /c/Users/z068688/sharaj_repo/sensu_cookbooks/cookbooks