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/runners/__pycache__/mine.cpython-310.pyc
o

�N�g��@s$dZddlZd	dd�Zd
dd�ZdS)z,
A runner to access data from the salt mine
�N�globcCs.tjj�t�}td|||d�}|�|�}|S)z�
    Gathers the data from the specified minions' mine, pass in the target,
    function to look up and the target type

    CLI Example:

    .. code-block:: bash

        salt-run mine.get '*' network.interfaces
    �id)r�fun�tgt�tgt_type)�saltZdaemons�	masterapiZRemoteFuncsZ__opts__Z	_mine_get)rrrr�load�ret�r�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/mine.py�gets�
r
FcCstd|d|||d�}|S)a8
    .. versionadded:: 2017.7.0

    Update the mine data on a certain group of minions.

    tgt
        Which minions to target for the execution.

    tgt_type: ``glob``
        The type of ``tgt``.

    clear: ``False``
        Boolean flag specifying whether updating will clear the existing
        mines, or will update. Default: ``False`` (update).

    mine_functions
        Update the mine data on certain functions only.
        This feature can be used when updating the mine for functions
        that require refresh at different intervals than the rest of
        the functions specified under ``mine_functions`` in the
        minion/master config or pillar.

    CLI Example:

    .. code-block:: bash

        salt-run mine.update '*'
        salt-run mine.update 'juniper-edges' tgt_type='nodegroup'
    zsalt.executezmine.update)r�clear�mine_functions)Z__salt__)rrrrr
rrr�updates�r)r)rFN)�__doc__Zsalt.daemons.masterapirr
rrrrr�<module>s