File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/icinga2.cpython-310.pyc
o
�N�g�# � @ s` d Z ddlZddlZddlZddlmZ dd� Zddd�Z d d
� Z
dd� Zddd�Zdd� Z
dS )a�
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"
� N)�get_certs_pathc C s dt v rdS dS )zB
Only load if the icinga2 module is available in __salt__
�icinga2.generate_ticketT)Fz"icinga2 module could not be loaded)�__salt__� r r �G/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/icinga2.py�__virtual__ s r Tc
C sn | i ddd�}|dkrr|r3|s3|s!|t d � v r!d�|�|d<