Skip to content

(fix) - Check for mysql_verison before assuming that triggers are a valid permission #708

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

Merged
merged 2 commits into from
May 8, 2015

Conversation

cyberious
Copy link
Contributor

No description provided.

@underscorgan
Copy link
Contributor

Tests and docs should be added for the new fact

Travis Fields added 2 commits May 8, 2015 08:51
- Add spec test for mysql_version fact
- Add `mysql_version` fact to README
- There are older versions of mysql that do not support the privilege TRIGGER and need to change default to not include
  http://dev.mysql.com/doc/refman/5.0/en/grant.html
  'MySQL does not support the standard SQL UNDER privilege, and does not support the TRIGGER privilege until MySQL 5.1.6'

- Updated tests to have both 5.1.6 and 5.0.11 tests for mysql_version fact
hunner added a commit that referenced this pull request May 8, 2015
(fix) - Check for mysql_verison before assuming that triggers are a valid permission
@hunner hunner merged commit 0305561 into puppetlabs:master May 8, 2015
setcode do
mysql_ver = Facter::Util::Resolution.exec('mysql --version')
if mysql_ver
mysql_ver.match(/\d+\.\d+\.\d+/)[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gives us 10.0.19 for mariadb-client-10.0, and 5.6.24 for mysql-client-core-5.6

i wonder what we can do with that now…

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hrm… how can i access the value of mysql_version fact from the mysql_grant or mysql_user type, and i don't mean in a confine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(asking for a friend, #548)

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.

4 participants