[chef] knife download in chef10


Chronological Thread 
  • From: Dmitrii Golub < >
  • To: " " < >
  • Subject: [chef] knife download in chef10
  • Date: Wed, 21 Aug 2013 18:30:43 +0400

Hello
I'd like to migrate to chef 11 from chef 10 and for this I use several links:


However I don't fully understand why do we need separate knife.rb just for knife download.
And knife download suprise me with strange behaviour:

knife download -c ~/chef-10/knife.rb transfer/
ERROR: Must specify either chef_repo_path or cookbook_path in Chef config file

knife download / -c chef-10/knife.rb --chef-repo-path repo/ --repo-mode everything
/home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/knife-essentials-1.5.3/lib/chef_fs/knife.rb:66:in `block in configure_chef': undefined local variable or method `chef_repo_paths' for #<Chef::Knife::Download:0x0000000293e3e0> (NameError)
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/knife-essentials-1.5.3/lib/chef_fs/knife.rb:65:in `each'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/knife-essentials-1.5.3/lib/chef_fs/knife.rb:65:in `configure_chef'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/chef-10.16.2/lib/chef/knife.rb:167:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/gems/chef-10.16.2/bin/knife:25:in `<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/bin/knife:19:in `load'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/bin/knife:19:in `<main>'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/bin/ruby_noexec_wrapper:14:in `eval'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p194-perf/bin/ruby_noexec_wrapper:14:in `<main>'

With default knife.rb I receive no errors, however no files were downloaded in specified directory.

mkdir transfer
knife download transfer # no files in transfer folder.

Thanks in advance


  • [chef] knife download in chef10, Dmitrii Golub, 08/21/2013

Archive powered by MHonArc 2.6.16.

§