Skip to content

Fix mysql::server::monitor mysql_grant privileges #303

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 1 commit into from
Oct 7, 2013

Conversation

treydock
Copy link
Contributor

@treydock treydock commented Oct 4, 2013

This PR fixes invalid privileges being used with the mysql_grant type as well as makes the module conform to mysql::backup's style. Should be released as a bug fix as the class' behavior does not change.

This bug is also present in the 2.0.x releases.

This is the type of error that would be generated before this fix.

Error: Execution of '/usr/bin/mysql --defaults-file=/root/.my.cnf -e GRANT PROCESS_PRIV, SUPER_PRIV ON *.* TO 'zabbix-agent'@'localhost'' returned 1: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PROCESS_PRIV, SUPER_PRIV ON *.* TO 'zabbix-agent'@'localhost'' at line 1

@apenney
Copy link
Contributor

apenney commented Oct 7, 2013

Awesome PR, awesome fix, thank you for this!

apenney pushed a commit that referenced this pull request Oct 7, 2013
Fix mysql::server::monitor mysql_grant privileges
@apenney apenney merged commit a6101dc into puppetlabs:1.x Oct 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants