Install the MySQL client and/or server
Find a file
root 98b054fcf6 Official oracle mysql repo for mysql-server creates file /usr/my.cnf
That overrides default /etc/mysql/my.cnf parameters
Now if this file exists it bacame managed and empty
2015-02-11 02:21:31 +00:00
mysql Official oracle mysql repo for mysql-server creates file /usr/my.cnf 2015-02-11 02:21:31 +00:00
scripts remove old unused files 2015-02-03 12:09:50 +08:00
.gitignore Rewrote expression 2015-01-18 13:36:31 -06:00
import_users.py Use a dict instead of a list for users 2014-11-02 00:57:27 -04:00
LICENSE Add LICENSE. 2013-07-27 22:58:38 +02:00
pillar.example 1) Supported params list deleted, because it's hard to keep it fresh (there was cool parser by davidjb, but it does not take care of underscores and hiphen in options names). Now all parameters considering supported, and all hiphen will be replaced with underscore when salt creates my.cnf. Thats why all default parameters changed to underscore type. 2014-12-12 10:05:39 +08:00
README.rst 1) Supported params list deleted, because it's hard to keep it fresh (there was cool parser by davidjb, but it does not take care of underscores and hiphen in options names). Now all parameters considering supported, and all hiphen will be replaced with underscore when salt creates my.cnf. Thats why all default parameters changed to underscore type. 2014-12-12 10:05:39 +08:00

mysql

Install the MySQL client and/or server.

Available states

mysql

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

This meta-state does not include mysql.remove_test_database; see below for details.

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.

mysql.remove_test_database

Warning

Do not use this state if your MySQL instance has a database in use called test. If you do, it will be irrevocably removed!

Remove the database called test, normally created as part of a default MySQL installation. This state is not included as part of the meta-state above as this name may conflict with a real database.