Events&Reactor系统 EVENT SYSTEM The Salt Event System is used to fire off events enabling third party applications or external processes to react to behavior within Salt. The event system uses a publish-subscribe pattern, otherwise know as pub/sub. Sal…
Events&Reactor系统—BEACONS Beacons let you use the Salt event system to monitor non-Salt processes. The beacon system allows the minion to hook into a variety of system processes and continually monitor these processes. When monitored activity occurs i…
EVENTS & REACTOR Event System Event Bus Event types Salt Master Events Authentication events Start events Key events Job events Runner Events Presence Events Cloud Events Listening for Events From the CLI Remotely via the REST API From Python Firing…
STORING JOB RESULTS IN AN EXTERNAL SYSTEM After a job executes, job results are returned to the Salt Master by each Salt Minion. These results are stored in the Default Job Cache. 作业执行后,作业结果由每个salt minion返回给salt master.这些结果存储在默认作业缓存中. In addition to…
ETURNERS 返回器 By default the return values of the commands sent to the Salt minions are returned to the Salt master, however anything at all can be done with the results data. 默认情况下,发送给Salt minions的命令的返回值将会返回给Salt master,但是可以使用结果数据完成任何操作. By using a S…
MANAGING THE JOB CACHE The Salt Master maintains a job cache of all job executions which can be queried via the jobs runner. This job cache is called the Default Job Cache. Salt Master维护所有作业执行的作业缓存,可以通过作业执行器查询.此作业缓存称为默认作业缓存. default job cache A numbe…
JOB MANAGEMENT New in version 0.9.7. Since Salt executes jobs running on many systems, Salt needs to be able to manage jobs running on many systems. 由于Salt在许多系统上运行执行jobs,所以Salt需要能管理在多个系统上运行的jobs. the minion proc system Salt Minions maintain a proc di…
STATES TUTORIAL, PART 3 - TEMPLATING, INCLUDES, EXTENDS 本教程建立在第1部分和第2部分涵盖的主题上.建议您从此开始.这章教程我们将讨论更多  sls 文件的扩展模板和配置技巧. templating sls modules SLS modules may require programming logic or inline execution. This is accomplished with module templating. Th…
STATES TUTORIAL, PART 4 本教程建立在第1部分.第2部分.第3部分涵盖的主题上.建议您从此开始.这章教程我们将讨论更多 sls 文件的扩展模板和配置技巧. This part of the tutorial will show how to use salt's file_roots to set up a workflow in which states can be "promoted" from dev, to QA, to production. 本教程的…
states tutorial, part 2 - more complex states, requisites 本教程建立在第1部分涵盖的主题上.建议您从此处开始. 在Salt States教程的最后一部分,我们简单的介绍了基本的安装一个软件包,我们现在将修改我们的webserver.sls文件以满足要求,并使用更多的Salt States call multiple states(调用多状态) You can specify multiple State declaration under…