%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/tops/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/tops/ext_nodes.pyo

�
���^c@@skdZddlmZmZmZddlZddlZddlZej	e
�Zd�Zd�Z
dS(u�
External Nodes Classifier
=========================

The External Nodes Classifier is a master tops subsystem that retrieves mapping
information from major configuration management systems. One of the most common
external nodes classifiers system is provided by Cobbler and is called
``cobbler-ext-nodes``.

The cobbler-ext-nodes command can be used with this configuration:

.. code-block:: yaml

    master_tops:
      ext_nodes: cobbler-ext-nodes

It is noteworthy that the Salt system does not directly ingest the data
sent from the ``cobbler-ext-nodes`` command, but converts the data into
information that is used by a Salt top file.

Any command can replace the call to 'cobbler-ext-nodes' above, but currently the
data must be formatted in the same way that the standard 'cobbler-ext-nodes'
does.

See (admittedly degenerate and probably not complete) example:

.. code-block:: yaml

    classes:
      - basepackages
      - database

The above essentially is the same as a top.sls containing the following:

.. code-block:: yaml

    base:
      '*':
        - basepackages
        - database

    base:
      '*':
        - basepackages
        - database
i(tabsolute_importtprint_functiontunicode_literalsNcC@stdjd�rtStS(u)
    Only run if properly configured
    umaster_topsu	ext_nodes(t__opts__tgettTruetFalse(((s7/usr/lib/python2.7/site-packages/salt/tops/ext_nodes.pyt__virtual__<scK@sd|dkriSdjtdd|dd�}tjjjtj|dtdtj	�j
�d�}|s�tjd	�ni}d
|kr�|d
}nd}d|kr	t
|dt�r�t|d�||<qt
|dt�r|d||<q|Sn
tjd
�|S(u$
    Run the command configured
    uiduoptsu{0} {1}umaster_topsu	ext_nodestshelltstdoutiu2master_tops ext_nodes call did not return any datauenvironmentubaseuclassesuJmaster_tops ext_nodes call did not have a dictionary with a "classes" key.(tformatRtsalttutilstyamlt	safe_loadt
subprocesstPopenRtPIPEtcommunicatetlogtinfot
isinstancetdicttlist(tkwargstcmdtndatatrettenv((s7/usr/lib/python2.7/site-packages/salt/tops/ext_nodes.pyttopEs0

(t__doc__t
__future__RRRtloggingRtsalt.utils.yamlRt	getLoggert__name__RRR(((s7/usr/lib/python2.7/site-packages/salt/tops/ext_nodes.pyt<module>/s		

Zerion Mini Shell 1.0