saltstack之event
event是saltstack对每个事件的一个记录,比job更加底层,记录详细的saltstack事件
查看event 启动一个event 在打开一个终端执行任务
salt ‘test’ test.ping
salt-run state.event pretty=True
20181009124121264751 {
"_stamp": "2018-10-09T04:41:21.266113",
"minions": [
"test"
]
}
salt/job/20181009124121264751/new {
"_stamp": "2018-10-09T04:41:21.266271",
"arg": [],
"fun": "test.ping",
"jid": "20181009124121264751",
"minions": [
"test"
],
"tgt": "test",
"tgt_type": "glob",
"user": "root"
}
salt/job/20181009124121264751/ret/test {
"_stamp": "2018-10-09T04:41:21.445294",
"cmd": "_return",
"fun": "test.ping",
"fun_args": [],
"id": "test",
"jid": "20181009124121264751",
"retcode": 0,
"return": true,
"success": true
}
saltstack之event
http://www.jcwit.com/article/309/