%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/icinga2.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z d d l Z
d d l Z
d d l m
Z
d � Z d d d e d � Z d � Z d � Z d
d � Z d � Z d S(
u�
Icinga2 state
=============
.. versionadded:: 2017.7.0
:depends: - Icinga2 Python module
:configuration: See :py:mod:`salt.modules.icinga2` for setup instructions.
The icinga2 module is used to execute commands.
Its output may be stored in a file or in a grain.
.. code-block:: yaml
command_id:
icinga2.generate_ticket
- name: domain.tld
- output: "/tmp/query_id.txt"
i ( t absolute_importt print_functiont unicode_literalsN( t six( t get_certs_pathc C@ s
d t k S( uB
Only load if the icinga2 module is available in __salt__
u icinga2.generate_ticket( t __salt__( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/icinga2.pyt __virtual__! s c
C@ s% i | d 6i d 6t d 6d d 6} | d k rE| r� | r� | rl | t d � k rl d j | � | d <| St d rBd | d <d
j | � | d <| Sq�| r*| t d � k r� t d | � } n i } | r� | | k r� d j | | � | d <| St d rBd | d <d
j | | � | d <| Sq�t | d <d | d <| Sn� | r�| r{t j j | � r{d j | � | d <| St d r�d | d <d j | � | d <| Sn"