Hello!
We’re trying to write a provider. For example: MySql. It consists of the
following components:
mysql/attributes/default.rb
containing:
default[‘mysql’][‘m_version’] = “1.0.0”
mysql/attributes/providers.rb
containing:
action :ololo do
execute “print some” do
puts "Olololo!"
end
end
mysql/resouces/default.rb
containing:
actions :ololo
attribute :ololo, :kind_of => String
After that, we are creating a recipe dump_extract/recipes/default.rb,
containing the following:
include Chef::Provider::Mysql
mysql do
provider "default"
end
After that, we’re trying to run dump_extract, but it is impossible to
call the provider Mysql.
Tell me please how to make a call to the provider. The official
documentation contain very little information.
Thank you!
–
Best regards,
Ilya Maltsev