saltstack(返回值存储到Mysql)
mysql> select * from salt_returns\G;*************************** 1. row ***************************
fun: cmd.run
jid: 20170220120522696829
return: "Filesystem 1K-blocks Used Available Use% Mounted on\n/dev/sda5 14114736 8729432 466164466% /\ntmpfs 953964 84 953880 1% /dev/shm\n/dev/sda1 194241 42160 14184123% /boot\n/dev/sda3 1998672 18224 1875592 1% /tmp"
id: node01.saltstack.com
success: 1
full_ret: {"fun_args": ["df"], "jid": "20170220120522696829", "return": "Filesystem 1K-blocks Used Available Use% Mounted on\n/dev/sda5 14114736 8729432 466164466% /\ntmpfs 953964 84 953880 1% /dev/shm\n/dev/sda1 194241 42160 14184123% /boot\n/dev/sda3 1998672 18224 1875592 1% /tmp", "retcode": 0, "success": true, "fun": "cmd.run", "id": "node01.saltstack.com"}
alter_time: 2017-02-20 12:05:24
*************************** 2. row ***************************
fun: cmd.run
jid: 20170220120528485243
return: "Filesystem 1K-blocks Used Available Use% Mounted on\n/dev/sda5 14114736 8729432 466164466% /\ntmpfs 953964 84 953880 1% /dev/shm\n/dev/sda1 194241 42160 14184123% /boot\n/dev/sda3 1998672 18224 1875592 1% /tmp"
id: node01.saltstack.com
success: 1
full_ret: {"fun_args": ["df"], "jid": "20170220120528485243", "return": "Filesystem 1K-blocks Used Available Use% Mounted on\n/dev/sda5 14114736 8729432 466164466% /\ntmpfs 953964 84 953880 1% /dev/shm\n/dev/sda1 194241 42160 14184123% /boot\n/dev/sda3 1998672 18224 1875592 1% /tmp", "retcode": 0, "success": true, "fun": "cmd.run", "id": "node01.saltstack.com"}
alter_time: 2017-02-20 12:05:28
2 rows in set (0.00 sec)
ERROR:
No query specified
页:
[1]