Skip to content
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

[mysql_hardening] Allow setting the mysql_distribution #473

Merged
merged 2 commits into from
Aug 15, 2021

Conversation

sdwilsh
Copy link
Contributor

@sdwilsh sdwilsh commented Aug 13, 2021

On some operating systems, the package for MySQL is not mysql-server,
and so the default check for this will not yield the correct result.
This change adds an escape hatch by letting the user set
mysql_distribution. Additionally, it verifies that it is set to a
legal value if the user has set it.

Closes #472

On some operating systems, the package for MySQL is not `mysql-server`,
and so the default check for this will not yield the correct result.
This change adds an escape hatch by letting the user set
`mysql_distribution`.  Additionally, it verifies that it is set to a
legal value if the user has set it.

Closes dev-sec#472

Signed-off-by: Shawn Wilsher <[email protected]>
@sdwilsh sdwilsh force-pushed the mysql_distribution branch from 23dae2f to 42dd253 Compare August 13, 2021 23:16
sdwilsh added a commit to sdwilsh/ansible-playbooks that referenced this pull request Aug 13, 2021
@rndmh3ro rndmh3ro merged commit 9ab06a5 into dev-sec:master Aug 15, 2021
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this pull request Aug 3, 2022
* [mysql_hardening] Allow setting the mysql_distribution

On some operating systems, the package for MySQL is not `mysql-server`,
and so the default check for this will not yield the correct result.
This change adds an escape hatch by letting the user set
`mysql_distribution`.  Additionally, it verifies that it is set to a
legal value if the user has set it.

Closes dev-sec#472

Signed-off-by: Shawn Wilsher <[email protected]>

* Update roles/mysql_hardening/tasks/main.yml

Co-authored-by: Sebastian Gumprich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mysql_hardening cannot work with mysql on freebsd
2 participants