Merge pull request #2675 from UtahDave/add_mysql_returner_docs

Add MySQL returner docs
This commit is contained in:
Thomas S Hatch 2012-11-23 08:44:46 -08:00
commit 4f89835bee
3 changed files with 38 additions and 30 deletions

View File

@ -14,3 +14,4 @@ Full list of builtin returner modules
cassandra_return
mongo_return
redis_return
mysql

View File

@ -0,0 +1,6 @@
====================
salt.returners.mysql
====================
.. automodule:: salt.returners.mysql
:members:

View File

@ -3,7 +3,7 @@ Return data to a mysql server
To enable this returner the minion will need the python client for mysql
installed and the following values configured in the minion or master
config, these are the defaults:
config, these are the defaults::
mysql.host: 'salt'
mysql.user: 'salt'
@ -11,7 +11,7 @@ config, these are the defaults:
mysql.db: 'salt'
mysql.port: 3306
Use the following mysql database schema:
Use the following mysql database schema::
CREATE DATABASE `salt`
DEFAULT CHARACTER SET utf8
@ -47,6 +47,7 @@ CREATE TABLE `salt_returns` (
KEY `fun` (`fun`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Required python modules: MySQLdb
'''
# Import python libs