%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/thorium/ |
Current File : //lib/python2.7/site-packages/salt/thorium/key.pyo |
� ���^c @@ sV d Z d d l m Z m Z m Z d d l Z d d l Z d � Z d d d � Z d S( us The key Thorium State is used to apply changes to the accepted/rejected/pending keys .. versionadded:: 2016.11.0 i ( t absolute_importt print_functiont unicode_literalsNc C@ s- d t k r% t j j t � t d <n t d S( u! Return the key api hook u keyapi( t __context__t saltt keyt Keyt __opts__( ( ( s4 /usr/lib/python2.7/site-packages/salt/thorium/key.pyt _get_key_api s c C@ s, i | d 6i d 6d d 6t d 6} t j � } d } | t k rM i t | <n t � } t � } t � } | j d � } x| j d g � D]} | t d d k r| r� | t d d | d | k r� | j | � n | r�| t d d | d | k r�| j | � q�q� | t | k r4| t | | <q� | rb| t | | | k rb| j | � n | r� | t | | | k r� | j | � q� q� WxG | D]? } | j | � t d d j | d � t | j | d � q�WxG | D]? } | j | � t d d j | d � t | j | d � q�W| S( u� If any minion's status is older than the timeout value then apply the given action to the timed out key. This example will remove keys to minions that have not checked in for 300 seconds (5 minutes) USAGE: .. code-block:: yaml statreg: status.reg clean_keys: key.timeout: - require: - status: statreg - delete: 300 u nameu changesu u commentu resultu key_start_trackeru accu minionsu statusu valu recv_timeN( t Truet timeR t setR t list_statust gett __reg__t addt delete_keyt popt Nonet reject( t namet deleteR t rett nowt ktrt removet reject_sett keyapit currentt id_( ( s4 /usr/lib/python2.7/site-packages/salt/thorium/key.pyt timeout sB && ( t __doc__t __future__R R R R t salt.keyR R R ( ( ( s4 /usr/lib/python2.7/site-packages/salt/thorium/key.pyt <module> s