# Directory to store job and cache data:
# This directory may contain sensitive data and should be protected accordingly.
#
#cachedir: /var/cache/salt/master
# Set the number of hours to keep old job information in the job cache:
#keep_jobs: 24
# The number of seconds to wait when the client is requesting information
# about running jobs.
#gather_job_timeout: 10
登录数据库
mysql -h 192.168.56.11 -usalt -p123456
MariaDB [(none)]> use salt;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
[iyunv@linux-node1 ~]# salt '*' saltutil.kill_job 20161109091517283293
linux-node2.example.com:
Signal 9 sent to job 20161109091517283293 at pid 6049
linux-node1.example.com:
Signal 9 sent to job 20161109091517283293 at pid 6269
[iyunv@linux-node1 ~]# salt '*' saltutil.running
linux-node2.example.com:
linux-node1.example.com:
列出job cache中的job
[iyunv@linux-node1 /var/cache/salt/master]# salt-run jobs.list_jobs
[WARNING ] /usr/lib/python2.7/site-packages/salt/grains/core.py:1493: DeprecationWarning: The "osmajorrelease" will be a type of an integer.
linux-node1.example.com:
PING www.a.shifen.com (119.75.218.70) 56(84) bytes of data.
64 bytes from 119.75.218.70: icmp_seq=1 ttl=128 time=9.78 ms
64 bytes from 119.75.218.70: icmp_seq=2 ttl=128 time=4.65 ms
64 bytes from 119.75.218.70: icmp_seq=3 ttl=128 time=8.26 ms
--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2010ms
rtt min/avg/max/mdev = 4.657/7.569/9.786/2.150 ms