cookbook - Unable to create mysql service using chef -


i learning below module tracks - writing cookbooks; modules - create web app cookbook

stack trace uploaded @ gist details - https://gist.github.com/novicejava1/e34349baa5d3dee8afca24e70e6e5da9

i trying configure mysql service using mysql cookbook present on chef supermarket. under usage section of page -

placed dependency on mysql cookbook in cookbook's metadata.rb

enter code heredepends 'mysql', '~> 8.0'

then, in default recipe:

mysql_service 'default'   port '3306'   version '5.5'   initial_root_password 'change me'   action [:create, :start] end 

but when testing using test kitchen, cookbooks executes unable create service name 'mysql-default' under /etc/init.d , link /etc/init/mysql-default.conf

edit 1 - default.rb file

mysql_service 'default'   port '3306'   initial_root_password 'test'   action :create end  template '/etc/init.d/mysql'   source 'mysql.erb'   owner 'mysql'   group 'mysql'   mode '0755' end   service 'mysql'   provider chef::provider::service::init   supports status: true   action [:start]  end 

added mysql template file cookbook.

uploaded cookbook @ github repo - https://github.com/novicejava1/stack/tree/master/middleware/source/chefspace/helloworld/cookbooks/testdb


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -