Closed pgporada closed 9 years ago
Additional information! If you have any sort of echo or put statement in your knife.rb file this can cause the The Berkshelf version at "/opt/chefdk/bin/berks" is invalid statement as well.
An example of a knife.rb that causes this issue would be
puts '=========== DHQ CHEF SERVER ============'
puts " Using knife configuration in #{dir} "
puts '========================================='
dir = File.expand_path(File.dirname(__FILE__))
log_level :info
log_location STDOUT
node_name 'phil'
client_key File.join(dir,'phil.pem')
validation_client_name 'chef-validator'
validation_key '/etc/chef-server/danlaqhq-validator.pem'
chef_server_url 'https://example.com/organizations/dhq'
syntax_check_cache_path File.join(dir,'syntax_check_cache')
cookbook_path File.join(dir,'cookbooks')
knife[:editor]="vim"
Upon removing the put statements, I can vagrant up successfully.
==> default: [2015-06-11T14:01:10+00:00] INFO: Forking chef instance to converge...
==> default: [2015-06-11T14:01:10+00:00] INFO: *** Chef 12.3.0 ***
==> default: [2015-06-11T14:01:10+00:00] INFO: Chef-client pid: 1700
==> default: [2015-06-11T14:01:11+00:00] INFO: Setting the run_list to ["recipe[danlaw-base::default]"] from CLI options
==> default: [2015-06-11T14:01:11+00:00] INFO: Run List is [recipe[danlaw-base::default]]
==> default: [2015-06-11T14:01:11+00:00] INFO: Run List expands to [danlaw-base::default]
==> default: [2015-06-11T14:01:11+00:00] INFO: Starting Chef Run for danlaw-base-berkshelf
==> default: [2015-06-11T14:01:11+00:00] INFO: Running start handlers
==> default: [2015-06-11T14:01:11+00:00] INFO: Start handlers complete.
==> default: [2015-06-11T14:01:11+00:00] INFO: Chef Run complete in 0.016493802 seconds
==> default: [2015-06-11T14:01:11+00:00] INFO: Skipping removal of unused files from the cache
==> default: [2015-06-11T14:01:11+00:00] INFO: Running report handlers
==> default: [2015-06-11T14:01:11+00:00] INFO: Report handlers complete
Disregard, my entire problem was that I altered the Vagrantfile and fucked it up myself.