我正在尝试将本地机器上的特定食谱上传到我的厨师组织,但我收到以下错误:
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'.
答案 0 :(得分:0)
将cookbook上传到Chef-server时使用-o
参数。
knife cookbook upload cookbook_name -o /c/Users/z068688/sharaj_repo/sensu_cookbooks/cookbooks