Functions to perform introspection on a minion, and return data in a format usable by Salt States
salt.modules.introspect.
enabled_service_owners
()¶Return which packages own each of the services that are currently enabled.
CLI Example:
salt myminion introspect.enabled_service_owners
salt.modules.introspect.
running_service_owners
(exclude=('/dev', '/home', '/media', '/proc', '/run', '/sys/', '/tmp', '/var'))¶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
salt.modules.introspect.
service_highstate
(requires=True)¶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
Generated on August 05, 2021 at 04:04:00 UTC.
You are viewing docs for the previous stable release, 3000.9. Switch to docs for the latest stable release, 3003.1, or to a recent doc build from the master branch.
© 2021 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy