Installing gem mysql2 in the tramp through the chef

I am trying to install gem mysql2 on my vagrant machine with a chef. I get the following error:

ERROR: mysql2_chef_gem_installer[default] (mysql2_chef_gem::default line 20) had an error:
Chef::Exceptions::RecipeNotFound: could not find recipe client for cookbook mysql

I have included a heap of mysql book and dependencies are added in metadata.rb

Below is a snippet of code

mysql2_chef_gem_installer 'default' do
   type 'mysql'
   action :install
end

Can someone explain what I'm doing wrong?

+4
source share

Source: https://habr.com/ru/post/1606906/


All Articles