Open electric opened 6 years ago
Thanks for the report!
I suppose you are using the default recipe?
I found overriding the attributes in Chef sometimes rather weird, can you try node.override
instead of node.default
? Does that make a difference?
I personally found it a good practise to always use wrapper cookbooks and then use the providers, like so:
mysqld 'default' do
service_name 'mysqld'
end
It might be a good idea to change https://github.com/chr4-cookbooks/mysqld/blob/master/attributes/defaults.rb#L35 to select the default service name according to the used distribution/ version. Pull request welcome!
When trying to use this cookbook and changing the node.default['mysqld']['service_name'] value, I get the following error
It looks as though the service name is still "mysql" instead of the value I pass through as node.default['mysqld']['service_name'] - in this instance, "mysqld"