sinfomicien / mysql2_chef_gem

Apache License 2.0
12 stars 38 forks source link

Option action must be equal to one of: nothing, install, delete! You passed :create #14

Closed luis-alen closed 7 years ago

luis-alen commented 8 years ago

Hello,

Today I was changing a few things on my devbox cookbook when the following error suddenly started to happen with the mysql2_chef_gem cookbook.

Option action must be equal to one of: nothing, install, delete! You passed :create

I've always used it as described in the docs and have never changed it:

mysql2_chef_gem 'default' do
  client_version '5.6'
  action :install
end

Then I decided to create a completely fresh cookbok depending only on mysql2_chef_gem, nothing else. Same error happened when I executed the code above on the default recipe.

I believe it has something to do with dependency compatibility. This cookbook requires mysql >=6.0 and a new version of the mysql cookbook has just been released. Coincidently the error started to happen approximately at the same time berkshelf downloaded the new version of the mysql cookbook, 8.0.0.

Removing my Berksfile.lock and adding depends 'mysql' '~> 7.2' to my metadata.rb fixed the issue, but this is probably something you might wanna check...

marcomancuso commented 8 years ago

Hello, I still have this exception and I have

depends "mysql", ">= 6.0.21"
depends 'mysql2_chef_gem', ">= 1.0.1"

Has it been fixed?

japitts0889 commented 8 years ago

@marcomancuso The correct syntax for that to work is below

depends 'mysql', '~> 7.2'

You'll need to add that to your metadata until they can get the pull request merged.

gsaslis commented 8 years ago

same issue here - upvoting 👍

pelletiermaxime commented 8 years ago

Could you do a new release with the fix ? Thanks.

nepomucen commented 8 years ago

The same issue here

tas50 commented 7 years ago

This has been fixed on master