%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/pillar/ |
Current File : //lib/python2.7/site-packages/salt/pillar/extra_minion_data_in_pillar.pyo |
� ���^c @@ s\ d Z d d l m Z m Z m Z d d l Z e j e � Z d Z d � Z d d � Z d S( u� Add all extra minion data to the pillar. :codeauthor: Alexandru.Bleotu@morganstanley.ms.com One can filter on the keys to include in the pillar by using the ``include`` parameter. For subkeys the ':' notation is supported (i.e. 'key:subkey') The keyword ``<all>`` includes all keys. Complete example in etc/salt/master ===================================== .. code-block:: yaml ext_pillar: - extra_minion_data_in_pillar: include: * ext_pillar: - extra_minion_data_in_pillar: include: - key1 - key2:subkey2 ext_pillar: - extra_minion_data_in_pillar: include: <all> i ( t absolute_importt print_functiont unicode_literalsNu extra_minion_data_in_pillarc C@ s t S( N( t __virtualname__( ( ( sK /usr/lib/python2.7/site-packages/salt/pillar/extra_minion_data_in_pillar.pyt __virtual__+ s c C@ s� d � } t j d | � t j d | � t j d | � i } | sI i S| d k rY | Si } x$ | D] } | j | | | � � qf W| S( Nc S@ s� i } } | } | j d � } x@ | d D]4 } i | | <| | } | | k rT i S| | } q* W| d | k rv i S| | d | | d <| S( u� Returns a subtree corresponfing to the specified key. key Key. Supports the ':' notation (e.g. 'key:subkey') source_dict Source dictionary u :i����( t split( t keyt source_dictt ret_dictt aux_dictt subtreet subkeyst subkey( ( sK /usr/lib/python2.7/site-packages/salt/pillar/extra_minion_data_in_pillar.pyt get_subtree1 s u minion_id = %su include = %su extra_minion_data = %su *u <all>( u *u <all>( t logt tracet update( t minion_idt pillart includet extra_minion_dataR t dataR ( ( sK /usr/lib/python2.7/site-packages/salt/pillar/extra_minion_data_in_pillar.pyt ext_pillar/ s ( t __doc__t __future__R R R t loggingt getLoggert __name__R R R t NoneR ( ( ( sK /usr/lib/python2.7/site-packages/salt/pillar/extra_minion_data_in_pillar.pyt <module> s