mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #2675 from UtahDave/add_mysql_returner_docs
Add MySQL returner docs
This commit is contained in:
commit
4f89835bee
@ -14,3 +14,4 @@ Full list of builtin returner modules
|
||||
cassandra_return
|
||||
mongo_return
|
||||
redis_return
|
||||
mysql
|
||||
|
6
doc/ref/returners/all/salt.returners.mysql.rst
Normal file
6
doc/ref/returners/all/salt.returners.mysql.rst
Normal file
@ -0,0 +1,6 @@
|
||||
====================
|
||||
salt.returners.mysql
|
||||
====================
|
||||
|
||||
.. automodule:: salt.returners.mysql
|
||||
:members:
|
@ -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
|
Loading…
Reference in New Issue
Block a user