Install the MySQL client and/or server.
Note
See the full Salt Formulas installation and usage instructions.
Meta-state that includes all server packages in the correct order.
Install the MySQL client package.
Install the MySQL server package and start the service.
Debian OS family supports setting MySQL root password during install via debconf.
Note
If no root password is provided in the pillar, a random one will
be created. As-of Hydrogen, this password uses the Python random
module via test.rand_str
. As random
is considered
cryptographically insecure, future formula versions should use the
newly available random.get_str
method.
Create and manage MySQL databases.
Install mysql python bindings.
Create and manage MySQL database users with definable GRANT privileges.
The state accepts MySQL hashed passwords or clear text. Hashed password have priority.
Note
See the salt.states.mysql_user docs for additional information on configuring hashed passwords.
Make sure to quote the passwords in the pillar so YAML doesn't throw an exception.