Open whyte624 opened 3 years ago
I don't know if this is the same issue I have, but for me the issue was the socket was missing. It takes some time mysql to start and create it. If chef waits a bit chef_sleep '10'
worked for me for most cases, the user creation will work.
:ghost: Brief Description
Error:
:pancakes: Cookbook version
10.1.3
:woman_cook: Chef-Infra Version
17.2.29
:tophat: Platform details
Ubuntu 18.04 Vagrant
Steps To Reproduce
Steps to reproduce the behavior:
It is not full example, but I hope it will be enough.
.kitchen.yml
:police_car: Expected behavior
Expecting mysql and user
me
:heavy_plus_sign: Additional context
I understand that root uses
auth_socket
plugin. I assume if I change plugin tomysql_native_password
it would work. But I do know want to change plugin. Also it requires other recipes to be used. I would like to solve mysql server installation with this cookbook only.If I could specify shell user who executes
mysql_user
resource, then I would setroot
(from ubuntu). However, there is no such option.For now I solved it with execute shell script doing the same thing, but as root.