fgrehm / vagrant-cachier

Caffeine reducer
http://fgrehm.viewdocs.io/vagrant-cachier
MIT License
1.08k stars 111 forks source link

Unknown configuration section 'cache' #20

Closed inakiabt closed 11 years ago

inakiabt commented 11 years ago

I'm unable to use this fantastic plugin!

When run: vagrant run:

There were warnings and/or errors while loading your Vagrantfile. Your Vagrantfile was written for an earlier version of Vagrant, and while Vagrant does the best it can to remain backwards compatible, there are some cases where things have changed significantly enough to warrant a message. These messages are shown below.

Warnings:

My Vagrantfile:

Vagrant::Config.run do |config|
    config.cache.auto_detect = true
    config.cache.enable_nfs  = true
    ...

My vagrant install info:

$ vagrant plugin list
vagrant-berkshelf (1.3.2)
vagrant-cachier (0.1.0)
vagrant-vbguest (0.8.0)

$ vagrant -v
Vagrant version 1.2.2
fgrehm commented 11 years ago

@inakiabt hey there, would u be able to gist your vagrantfile as well?

inakiabt commented 11 years ago

Sorry, I've just updated the issue

tmatilai commented 11 years ago

@inakiabt You have to use the new configuration version. I.e.:

Vagrant.configure("2") do |config|
  config.cache.auto_detect = true
  # ...
end
inakiabt commented 11 years ago

Grr. Thanks :+1:

fgrehm commented 11 years ago

@tmatilai u were faster than me :P tks for helping out ;)

patcon commented 11 years ago

@inakiabt Not sure if it will help, but I think vagrant v1.1 will provide more feedback on what needs upgrading in your vagrantfile, if a quick downgrade is simpler for you. But might be easiest just to read the v2 api docs