Saltstack module introspect 详解

Posted randomlee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Saltstack module introspect 详解相关的知识,希望对你有一定的参考价值。

introspect.service_highstate

Return running and enabled services in a highstate structure. By default
also returns package dependencies for those services, which means that
package definitions must be created outside this function. To drop the
package dependencies, set ``requires`` to False.

CLI Example:

    salt myminion introspect.service_highstate
    salt myminion introspect.service_highstate requires=False

introspect.running_service_owners

Determine which packages own the currently running services. By default,
excludes files whose full path starts with ``/dev``, ``/home``, ``/media``,
``/proc``, ``/run``, ``/sys``, ``/tmp`` and ``/var``. This can be
overridden by passing in a new list to ``exclude``.

CLI Example:

    salt myminion introspect.running_service_owners

introspect.enabled_service_owners

Return which packages own each of the services that are currently enabled.

CLI Example:

    salt myminion introspect.enabled_service_owners

以上是关于Saltstack module introspect 详解的主要内容,如果未能解决你的问题,请参考以下文章

Saltstack module introspect 详解

Saltstack module artifactory 详解

Saltstack module highstate_doc 详解

Saltstack module iosconfig 详解

Saltstack module http 详解

Saltstack module genesis 详解