NOTE: This module requires the MySQLdb python module and the proper settings in the minion config file. See salt.modules.mysql for more information.
The mysql_user module is used to manage MySQL users.
frank:
mysql_user.present:
- host: localhost
- password: bobcat
Ensure that the named user is absent
Ensure that the named user is present with the specified properties
The password in hashed form. Be sure to quote the password because YAML doesn't like the *:
SELECT PASSWORD('mypass') ==> *6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4