saltstack-formulas / mysql-formula

Install the MySQL client and/or server
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
85 stars 366 forks source link

fix(FreeBSD): upgrade to mysql57-server #250

Closed GeJ closed 4 years ago

GeJ commented 4 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Current default version for FreeBSD is MySQL 5.7, also python 2.x is deprecated and should be removed any time soon.

FreeBSD uses the mysql_install_db which generates a temporary root password upon the first start. To the best of my understanding I haven't seen any code in the formula that handles this method. So I added a FreeBSD-scpecific block for initialization. While here, create /var/log/mysql without which the server won't start if it doesn't exist.

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context

pull-assistant[bot] commented 4 years ago
Score: 1.00

Best reviewed: commit by commit


Optimal code review plan

     Update FreeBSD to mysql57-server

Powered by Pull Assistant. Last update 845af54 ... 845af54. Read the comment docs.

GeJ commented 4 years ago

It's almost 1AM, and I just realized I botched it. I'm closing it for now and will update with a new version tomorrow morning. Sorry for the noise.

GeJ commented 4 years ago

I'm reopening the PR. Sorry, I thought I had seen a mistake on my end, but after a few more tests locally, the only mistake was trying to review my code at 1 AM.

Again, really sorry for the going back and forth on this one. I'll try to be more careful next time.

myii commented 4 years ago

Merged, thanks @GeJ. I adjusted the commit message so that semantic-release works properly.

saltstack-formulas-travis commented 4 years ago

:tada: This PR is included in version 0.54.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: