码迷,mamicode.com
首页 > 其他好文 > 详细

Saltstack module introspect 详解

时间:2020-03-28 21:36:42      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:str   ble   tac   intro   alt   led   ice   ret   and   

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 详解

标签:str   ble   tac   intro   alt   led   ice   ret   and   

原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_introspect.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!