sinfomicien / mysql2_chef_gem

Apache License 2.0
12 stars 38 forks source link

cookbook mysql 8.0.0 compatibility #17

Closed scopenco closed 7 years ago

scopenco commented 8 years ago

There is a problem if i try to use cookbooks:

to install last mysql-server version.

This recipe:

include_recipe 'yum-mysql-community::mysql56'

mysql_service 'default' do
  package_version '5.6.32-2.el7'
  initial_root_password 'mypassword'
  action [:create, :start]
end

mysql2_chef_gem 'default' do
  provider Chef::Provider::Mysql2ChefGem::Mysql
  client_version '5.6.32-2.el7'
  action :install
end

return error:

        ================================================================================
        Error executing action `install` on resource 'yum_package[mysql-community-client]'
        ================================================================================

        Chef::Exceptions::Package
        -------------------------
        Installed package mysql-community-client-5.6.32-2.el7 is newer than candidate package mysql-community-client-5.6.29-2.el7

because mysql2_chef_gem use 'version' attribute in resource mysql_client instead of 'package_version' that should be used in mysql 8.0.0 cookbook.

scopenco commented 8 years ago

any updates?

tas50 commented 7 years ago

This has been resolved on master