To create grants for the database I use the following salt module
keystone_grants:
mysql_grants.present:
- database: keystone.*
- grant: ALL PRIVILEGES
- user: keystone
- host: localhost
But it creates me this
ID: Keystone_database
Function: mysql_grants.present
Result: True
Comment: Grant ALL PRIVILEGES on keystone.* to keystone@localhost has been added
Started: 19:42:18.428882
Duration: 4.089 ms
Changes:
i.e it creates me this grant
Grant ALL PRIVILEGES on keystone.* to keystone@localhost
But I need to create this grant
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'password';
Can someone suggest me how to add grants with password using SaltStack