标签:创建 port 文件 事件 user key arc gen turn
搭建配置参考https://www.cnblogs.com/nmap/p/6219816.html第三种方式master端直接配置文件参数入库,这个比较简单 .http://blog.51cto.com/tianruyun/1795687
简单说下第三种方法步骤:
1.创建数据库
CREATE DATABASE salt
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
2.创建数据库表
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.授权
grant all on salt.* to salt@‘%‘ identified by ‘salt‘;
4.配置master文件
mysql.host: ‘127.0.0.1‘
mysql.user: ‘salt‘
mysql.pass: ‘salt‘
mysql.db: ‘salt‘
mysql.port: 3306
master_job_cache: mysql
标签:创建 port 文件 事件 user key arc gen turn
原文地址:http://blog.51cto.com/q2012/2062953