%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/runners/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/runners/pillar.pyo

�
���^c@@sYdZddlmZmZmZddlZddlZddd�Z	dd�Z
dS(u>
Functions to interact with the pillar compiler on the master
i(tabsolute_importtprint_functiontunicode_literalsNubasecC@sztjjj|t�\}}}tjjt|||�}|j�\}}|rvtj	i|d6dd6d�|S|S(u�
    Returns the compiled top data for pillar for a specific minion.  If no
    minion is specified, we use the first minion we find.

    CLI Example:

    .. code-block:: bash

        salt-run pillar.show_top
    udataunestedu	outputteruprogress(
tsalttutilstminionstget_minion_datat__opts__tpillartPillartget_topt
__jid_event__t
fire_event(tminiontsaltenvtid_tgrainst_Rttopterrors((s7/usr/lib/python2.7/site-packages/salt/runners/pillar.pytshow_tops!		u*c
K@s�d}d}tjjj|t�\}}}|dkrIi|d6}nxN|D]F}|dkro||}qP|dkr�||}qP||||<qPWtjjt|||d|�}|j�}	|	S(u�
    Returns the compiled pillar either of a specific minion
    or just the global available pillars. This function assumes
    that no minion has the id ``*``.
    Function also accepts pillarenv as attribute in order to limit to a specific pillar branch of git

    CLI Example:

    shows minion specific pillar:

    .. code-block:: bash

        salt-run pillar.show_pillar 'www.example.com'

    shows global pillar:

    .. code-block:: bash

        salt-run pillar.show_pillar

    shows global pillar for 'dev' pillar environment:
    (note that not specifying pillarenv will merge all pillar environments
    using the master config option pillar_source_merging_strategy.)

    .. code-block:: bash

        salt-run pillar.show_pillar 'pillarenv=dev'

    shows global pillar for 'dev' pillar environment and specific pillarenv = dev:

    .. code-block:: bash

        salt-run pillar.show_pillar 'saltenv=dev' 'pillarenv=dev'

    API Example:

    .. code-block:: python

        import salt.config
        import salt.runner
        opts = salt.config.master_config('/etc/salt/master')
        runner = salt.runner.RunnerClient(opts)
        pillar = runner.cmd('pillar.show_pillar', [])
        print(pillar)
    ubaseufqdnusaltenvu	pillarenvt	pillarenvN(	tNoneRRRRRRR	tcompile_pillar(
R
tkwargsRRRRRtkeyRtcompiled_pillar((s7/usr/lib/python2.7/site-packages/salt/runners/pillar.pytshow_pillar's&.!


		(t__doc__t
__future__RRRtsalt.pillarRtsalt.utils.minionsRRR(((s7/usr/lib/python2.7/site-packages/salt/runners/pillar.pyt<module>s


Zerion Mini Shell 1.0