如何检查state.highstate是否适用于minion?

时间:2014-11-04 18:29:01

标签: python salt-stack

如何判断state.highstate是否适用于小兵?是否有盐调用我可以查看是否应用了salt.hightstate?


我发现如何......结果是lookup_jid会返回每个状态True或False的结果,这正是我所寻找的。

的bash

[root@localhost ~]# salt-run jobs.lookup_jid 20141105195906794185
10.0.2.15:
    ----------
    pkg_|-apache_|-httpd_|-installed:
        ----------
        __run_num__:
            0
        changes:
            ----------
        comment:
            Package httpd is already installed.
        duration:
            1671.884
        name:
            httpd
        result:
            True
        retcode:
            1
        start_time:
            20:16:06.942403
    service_|-apache_|-httpd_|-running:
        ----------
        __run_num__:
            1
        changes:
            ----------
        comment:
            Service httpd is already disabled, and is in the desired state
        duration:
            653.679
        name:
            httpd
        result:
            True
        retcode:
            1
        start_time:
            20:16:08.614446

1 个答案:

答案 0 :(得分:1)

您可以使用state.highstate

致电test=True
salt '*' state.highstate test=True