Salt returners back into the database

Source: Internet
Author: User

Build Configuration Reference https://www.cnblogs.com/nmap/p/6219816.html
2 kinds of storage mode Minion Terminal configuration Direct storage and master-side event monitoring storage

The third Way master-side direct configuration file parameters in the library, this is relatively simple. http://blog.51cto.com/tianruyun/1795687

Simply say the third method step:
1. Create a database
CREATE DATABASEsalt
DEFAULT CHARACTER SET UTF8
DEFAULT COLLATE utf8_general_ci;

2. Create a database table
Use salt ;

        DROP TABLE IF EXISTS `jids`;        CREATE TABLE `jids` (            `jid` varchar(255) NOT NULL,            `load` mediumtext NOT NULL,            UNIQUE KEY `jid` (`jid`)        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;    DROP TABLE IF EXISTS `salt_returns`;    CREATE TABLE `salt_returns` (        `fun` varchar(50) NOT NULL,        `jid` varchar(255) NOT NULL,        `return` mediumtext NOT NULL,        `id` varchar(255) NOT NULL,        `success` varchar(10) NOT NULL,        `full_ret` mediumtext NOT NULL,        `alter_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,        KEY `id` (`id`),        KEY `jid` (`jid`),        KEY `fun` (`fun`)    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

3. Authorization
Grant all on salt.* to [email protected] '% ' identified by ' salt ';

4. Configure the Master file
Mysql.host: ' 127.0.0.1 '
Mysql.user: ' Salt '
Mysql.pass: ' Salt '
Mysql.db: ' Salt '
mysql.port:3306
Master_job_cache:mysql

Salt returners back into the database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.