saltstack/salt — pull request #591 by syphernl (2012-01-27 18:42:11+00:00)
Title: Implement support for granting/revoking mysql permissions.

Added support for GRANT/REVOKE in module & states.
There is one minor thing that should be improved and that is the grant exists verification part.
Right now it requires to be exactly as the "SHOW GRANTS FOR" query is showing.

E.g:
Checking if someone has ```insert,select``` will return a false even if they have ```select,insert````(which is what mysql makes it to be when you grant a permission)

Perhaps someone has an idea on how to do this properly or who can implement this.