-
Notifications
You must be signed in to change notification settings - Fork 42
Update mysql cookbook (6.x) and database cookbook #103
Conversation
Hmm...
|
Seems you're still using v5.x mysql cookbook series? Maybe check your berksfile.lock to confirm? (You want to be on v6.x now) |
I am afraid I was locked to 5.x https://github.com/bflad/chef-stash/pull/103/files#diff-9fd042d4cd1e8f82894bbd7dffb313ecR30 |
There seems to be a bunch of code in various branches on the network https://github.com/bflad/chef-stash/network, including @andrewgoktepe 's at andrewgoktepe@4652752 |
121964e
to
0731fee
Compare
FYI, I think I got this working, but let's get postgresql test suite (#107) running before merging this, and I can rebase (I'm using it from my feature branch for mysql, but not postgresql yet, and can't say with 100% certainty that it works for both) |
* Attribute exists in README and in recipes, but not set in attributes file, so assuming it was a regressions and added it back. * mysql_service expects a string.
The advice from the maintainers is to just connect over TCP socket, as we'll be fighting with the mysql_service LWRP if we continue to use unix sockets: sous-chefs/mysql#344 (comment) We could hardcode a socket path in the database LWRP's connection hash, or the mysql_service's `socket` resource attr, but then it will be complexity and stuff to break on other systems: https://github.com/chef-cookbooks/mysql/blob/e13c394c0e7cce1ff720632f9ed098f6766403de/libraries/helpers.rb#L221-L225
0731fee
to
405c8eb
Compare
Just rebased on master and updated issue title to better reflect work EDIT: Haven't yet run tests. I'll get cloud testing (#108) working tomorrow before getting to this, as I expect some tests broke (particularly postgresql) |
👍 Merged but I changed |
I think we could do this pretty easily. Looking at the other issue, it seems the only problem was that when the database cookbook bumped major versions, it abstracted out a recipe (mysql2_chef_gem), and I think we could just add that back in