HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/saltutil.cpython-310.pyc
o

�N�g}#�@s�dZddlZdZe�e�Zdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�ZdS)0z�
Saltutil State
==============

This state wraps the saltutil execution modules to make them easier to run
from a states. Rather than needing to to use ``module.run`` this state allows for
improved change detection.

    .. versionadded:: 3000
�NZsaltutilcCstS)z
    Named saltutil
    )�__virtualname__�rr�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/saltutil.py�__virtual__src
Ks�|iddd�}tdrd|d<d|�d�|d<|Sztd|��di|��}|r6||d	|<d
|�d�|d<Wn)ty`}zt�d||�d
|d<d|�d|��|d<|WYd}~Sd}~ww|d	sid|d<|S)NT���name�changes�result�comment�testr
zsaltutil.sync_z would have been runrr	zUpdated �.z"Failed to run saltutil.sync_%s: %sFzFailed to run sync_z: �No updates to syncr)�__opts__�__salt__�	Exception�log�error)r�module�kwargs�ret�sync_status�errr�_sync_singles*���rc
Ks�|iddd�}tdrd|d<d|d<|Sz td	di|��}|��D]\}}|r3||d
|<d|d<q#Wn%tyZ}zt�d|�d
|d<d|��|d<|WYd}~Sd}~ww|d
scd|d<|S)z�
    Performs the same task as saltutil.sync_all module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_all:
            - refresh: True
    TrrrNr
z%saltutil.sync_all would have been runrzsaltutil.sync_allr	zSync performedz#Failed to run saltutil.sync_all: %sFzFailed to run sync_all: rr)rr�itemsrrr)rrrr�key�valuerrrr�sync_all4s.����rcK�t|dfi|��S)a
    Performs the same task as saltutil.sync_beacons module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_beacons:
            - refresh: True
    Zbeacons�r�rrrrr�sync_beaconsX�r!cKr)z�
    Performs the same task as saltutil.sync_clouds module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_clouds:
            - refresh: True
    Zcloudsrr rrr�sync_cloudsfr"r#cKr)a
    Performs the same task as saltutil.sync_engines module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_engines:
            - refresh: True
    Zenginesrr rrr�sync_enginestr"r$cKr)z�
    Performs the same task as saltutil.sync_grains module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_grains:
            - refresh: True
    Zgrainsrr rrr�sync_grains�r"r%cKr)a
    Performs the same task as saltutil.sync_executors module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_executors:
            - refresh: True
    Z	executorsrr rrr�sync_executors�r"r&cKr)a
    Performs the same task as saltutil.sync_log_handlers module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_log_handlers:
            - refresh: True
    Zlog_handlersrr rrr�sync_log_handlers�r"r'cKr)a
    Performs the same task as saltutil.sync_modules module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_modules:
            - refresh: True
    �modulesrr rrr�sync_modules�r"r)cKr)z�
    Performs the same task as saltutil.sync_output module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_output:
            - refresh: True
    �outputrr rrr�sync_output�r"r+cKr)a
    Performs the same task as saltutil.sync_outputters module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_outputters:
            - refresh: True
    Z
outputtersrr rrr�sync_outputters�r"r,cKr)z�
    Performs the same task as saltutil.sync_pillar module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_pillar:
            - refresh: True
    Zpillarrr rrr�sync_pillar�r"r-cKr)a
    Performs the same task as saltutil.sync_proxymodules module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_proxymodules:
            - refresh: True
    Zproxymodulesrr rrr�sync_proxymodules�r"r.cKr)a
    Performs the same task as saltutil.sync_matchers module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_matchers:
            - refresh: True
    Zmatchersrr rrr�
sync_matchers�r"r/cKr)a
    Performs the same task as saltutil.sync_renderers module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_renderers:
            - refresh: True
    Z	renderersrr rrr�sync_renderersr"r0cKr)a
    Performs the same task as saltutil.sync_returners module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_returners:
            - refresh: True
    Z	returnersrr rrr�sync_returnersr"r1cKr)z�
    Performs the same task as saltutil.sync_sdb module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_sdb:
            - refresh: True
    Zsdbrr rrr�sync_sdbr"r2cKr)z�
    Performs the same task as saltutil.sync_states module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_states:
            - refresh: True
    Zstatesrr rrr�sync_states*r"r3cKr)a
    Performs the same task as saltutil.sync_thorium module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_thorium:
            - refresh: True
    Zthoriumrr rrr�sync_thorium8r"r4cKr)z�
    Performs the same task as saltutil.sync_utils module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_utils:
            - refresh: True
    �utilsrr rrr�
sync_utilsFr"r6cKr)a	
    Performs the same task as saltutil.sync_serializers module
    See :mod:`saltutil module for full list of options <salt.modules.saltutil>`

    .. code-block:: yaml

        sync_everything:
          saltutil.sync_serializers:
            - refresh: True
    Zserializersrr rrr�sync_serializersTr"r7)�__doc__�loggingr�	getLogger�__name__rrrrr!r#r$r%r&r'r)r+r,r-r.r/r0r1r2r3r4r6r7rrrr�<module>s4
$