0

ナイフ エッセンシャルを使用して、Chef 11 サーバー内のすべてのオブジェクトを json ファイルにバックアップしようとしています。.chef/download.rb を含むディレクトリ「backup」を作成しました

transfer_repo = File.expand_path('..', File.dirname(__FILE__))
chef_server_url "https://localhost"
node_name 'chef-importer'
client_key "~/.chef/client.pem"
repo_mode 'everything'
versioned_cookbooks true
chef_repo_path transfer_repo
cookbook_path nil

「ナイフ ダウンロード」を使用しようとすると、次のエラーが表示されます。

# /usr/local/rvm/bin/chef_knife download -c .chef/download.rb /
ERROR: TypeError: can't convert nil into String

これは cookbook_path について不平を言っているので、その行を削除しようとしましたが、次のようになります。

ERROR: File chef is a directory while file chef is a regular file

シェフ11ですべてをダウンロードするためにknife-essentialsを使用する正しい方法は何ですか?

ありがとう

4

1 に答える 1

0

Ruby のバージョンを確認します。RVM と ruby​​ バージョン 1.9.2 を使用することをお勧めします。これはあなたを助けるはずです。

于 2013-07-18T19:37:13.640 に答える