berkshelf / vagrant-berkshelf

A Vagrant plugin to add Berkshelf integration to the Chef provisioners
Other
378 stars 100 forks source link

Incompatible with Vagrant 2.0. #319

Closed AnalogJ closed 7 years ago

AnalogJ commented 7 years ago
Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

This Vagrant environment has specified that it requires the Vagrant
version to satisfy the following version requirements:

  ~> 1.5

You are running Vagrant 2.0.0, which does not satisfy
these requirements. Please change your Vagrant version or update
the Vagrantfile to allow this Vagrant version. However, be warned
that if the Vagrantfile has specified another version, it probably has
good reason to do so, and changing that may cause the environment to
not function properly.

After uninstalling vagrant-berkshelf plugin, vagrant 2.0 will run correctly.

daverogers commented 7 years ago

After uninstalling vagrant-berkshelf plugin, vagrant 2.0 will run correctly.

how is that? I get the error Unknown configuration section 'berkshelf'.

rleonlulus commented 7 years ago

@daverogers I agree, there is definitely a problem here, sort of a catch 22 for me (Windows 10). And I do have the latest Chef installed.

$ vagrant up
vagrant-omnibus missing, please install the plugin:
vagrant plugin install vagrant-berkshelf

$ vagrant plugin install vagrant-berkshelf
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
The Vagrant Berkshelf plugin requires Berkshelf from the Chef Development Kit.
You can download the latest version of the Chef Development Kit from:

    https://downloads.chef.io/chef-dk/

Installing Berkshelf via other methods is not officially supported.
Installed the plugin 'vagrant-berkshelf (5.1.1)'!
Post install message from the 'vagrant-berkshelf' plugin:

The Vagrant Berkshelf plugin requires Berkshelf from the Chef Development Kit.
You can download the latest version of the Chef Development Kit from:

    https://downloads.chef.io/chef-dk/

Installing Berkshelf via other methods is not officially supported.

And for me Uninstalling vagrant-berkshelf and doing a "vagrant up" simply asks me to install the plugin all over again.

MrWong99 commented 7 years ago

how is that? I get the error Unknown configuration section 'berkshelf'.

This is probably due to the usage of config.berkshelf.enabled = true in your Vagrantfile. The fix that Tcharl menitioned works for me.

jeffbyrnes commented 7 years ago

320 fixes things for me.