%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/pillar/ |
| Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyo |
�
���^c @@ sX d Z d d l m Z m Z m Z d d l m Z d d l m Z d Z d d � Z d S( 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 ( t absolute_importt print_functiont unicode_literals( t CkMinions( t sixu 0.0.2c C@ s� | p d } t d } g } d } xe t j | � D]T } | pG t t � } | j | | d � } | d } | | k r2 | j | � q2 q2 Wi | | 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
nodegroupsu compoundu minionsN( t __opts__t NoneR t iterkeysR t
check_minionst append( t minion_idt pillart pillar_namet all_nodegroupst nodegroups_minion_is_int ckminionst nodegroup_namet _rest match( ( s: /usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyt
ext_pillar1 s
N( t __doc__t
__future__R R R t salt.utils.minionsR t salt.extR t __version__R R ( ( ( s: /usr/lib/python2.7/site-packages/salt/pillar/nodegroups.pyt <module># s