-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(centos7): add correct pymysql package on cent7/saltpy3 #262
fix(centos7): add correct pymysql package on cent7/saltpy3 #262
Conversation
8d214f3
to
4582bb3
Compare
23853ba
to
c4d87a5
Compare
I managed to get centos CI working. |
8873525
to
060b43f
Compare
Just a note, this might be a breaking change for existing systems. If anyone is still running salt on the system default python 2.7, it would break. Maybe wrap the logic in a something like this:
|
Done.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Did not run this myself but the logic is sound, the package name is right and the CI passes.
203f807
to
dc23ea9
Compare
dc23ea9
to
df2fa30
Compare
Thanks @ixs appreciated. |
🎉 This PR is included in version 0.56.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
saltstack/salt#54702
#248
#252
Describe the changes you're proposing
Problem:
On Centos7 the
MySQL-python
package provides python2.7 support for MySQL.However, if salt is installed using python3 (salt-bootstrap -x python3) the salt MySQL state requires python3.6 support.
The result is that this formula fails on CentOS7.
A solution
This PR checks python version grain to choose the correct package to install on CentOS7.
The solution is not ideal but I see no other solution for CentOS7.
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
*** BEFORE ***
** VERSIONS**
** Try python3-pyMySQL #252 **
** Try python36-mysql **
** Try python36-PyMySQL **