Install the MySQL client and/or server
Find a file
Nitin Madhok 9d9aff7feb Merge pull request #30 from chrish42/master
Add support for RHEL, etc.
2014-08-25 13:36:53 -04:00
mysql Also rename the configuration file to the OS family. 2014-08-25 05:07:59 -04:00
LICENSE Add LICENSE. 2013-07-27 22:58:38 +02:00
pillar.example allow to add users without password 2014-08-07 19:47:48 +03:00
README.rst backed out rand_str calls 2014-07-26 23:54:48 -07:00

mysql

Install the MySQL client and/or server.

Available states

mysql

Meta-state that includes all server packages in the correct order.

mysql.client

Install the MySQL client package.

mysql.server

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. Because Hydrogen doesn't have easy access to a random function (test.rand_str isn't introduced until Helium), instead, we use the not-at-all random grains.server_id. As this is cryptographically insecure, future formula versions should use the newly available random.get_str method.

mysql.database

Create and manage MySQL databases.

mysql.python

Install mysql python bindings.

mysql.user

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.