2014-02-09 05:59:02 +00:00
=====
2013-06-13 16:30:15 -06:00
mysql
=====
2014-02-09 05:59:02 +00:00
Install the MySQL client and/or server.
.. note ::
See the full `Salt Formulas installation and usage instructions
2014-05-06 10:25:03 +02:00
<http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
2013-06-13 16:30:15 -06:00
2013-08-08 16:47:03 -06:00
Available states
2014-02-09 05:59:02 +00:00
================
.. contents ::
:local:
2013-06-13 16:30:15 -06:00
2014-07-01 15:18:54 -04:00
`` mysql ``
2014-07-02 09:56:59 -04:00
---------
2014-07-01 15:18:54 -04:00
Meta-state that includes all server packages in the correct order.
2013-08-15 17:25:15 -05:00
`` mysql.client ``
2014-02-09 05:59:02 +00:00
----------------
Install the MySQL client package.
2013-08-08 16:47:03 -06:00
`` mysql.server ``
2014-02-09 05:59:02 +00:00
----------------
Install the MySQL server package and start the service.
2014-05-12 11:10:51 -04:00
2014-07-01 15:18:54 -04:00
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
2014-07-26 23:54:48 -07:00
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
2014-07-01 15:18:54 -04:00
cryptographically insecure, future formula versions should use the
newly available `` random.get_str `` method.
2014-05-12 11:47:51 -04:00
`` mysql.database ``
2014-05-15 16:40:02 -04:00
------------------
2014-05-12 11:47:51 -04:00
2014-05-12 12:24:16 -04:00
Create and manage MySQL databases.
2014-07-01 15:18:54 -04:00
`` mysql.python ``
------------------
Install mysql python bindings.
2014-05-12 12:29:30 -04:00
`` mysql.user ``
2014-05-12 12:24:16 -04:00
----------------
2014-05-15 16:40:02 -04:00
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 <http://docs.saltstack.com/en/latest/ref/states/all/salt.states.mysql_user.html#module-salt.states.mysql_user> `_ docs for additional information on configuring hashed passwords.
2014-05-15 17:08:31 -04:00
Make sure to **quote the passwords** in the pillar so YAML doesn't throw an exception.
2014-05-15 16:40:02 -04:00