Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Vagrant reload --provision → Cookbook not found #271

Closed
alappe opened this issue Mar 4, 2015 · 2 comments
Closed

Vagrant reload --provision → Cookbook not found #271

alappe opened this issue Mar 4, 2015 · 2 comments

Comments

@alappe
Copy link
Contributor

alappe commented Mar 4, 2015

Hey,

on a recent project I am having the problem that on reload, the cookbook cannot be found. I am using vagrant, vagrant-berkshelf, berks (from chefdk) – the provisioning works fine on initital up.

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = '2'

Vagrant.configure('2') do |config|
  config.berkshelf.enabled = true
  config.omnibus.chef_version = :latest
  config.vm.hostname = 'falcon.dev'
  config.vm.box = 'chef/centos-7.0'

  config.vm.provider 'virtualbox' do |v, override|
    v.memory = 4096
    v.cpus = 1
  end

  config.vm.network 'private_network', ip: '192.168.14.77'

  config.vm.provision 'shell', inline: 'iptables --flush', run: 'always'
  config.vm.provision 'chef_solo' do |chef|
    chef.add_recipe 'falcon'
  end

  config.vm.synced_folder '~/Sites/Falcon/Code', '/usr/local/falcon/', type: 'nfs'
end

The Berksfile is super basic:

source 'https://supermarket.getchef.com'

metadata

The /tmp/vagrant-chef/solo.rb lists /tmp/vagrant-chef/44008a4b553d0caf1bca7e96958dc206/cookbooks as cookbook path, which is indeed empty.

So far I cannot tell if this is an issue with vagrant-berkshelf, I'm kind of fishing in the dark… but it seems that the cookbooks are not uploaded on the reload…

@sethvargo
Copy link
Contributor

This is a Vagrant core issue: hashicorp/vagrant#5199

@alappe
Copy link
Contributor Author

alappe commented Mar 4, 2015

@sethvargo Thank you!

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants