%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/zabbix_hostgroup.pyo |
� ���^c @@ sQ d Z d d l m Z m Z m Z d d l m Z d � Z d � Z d � Z d S( uX Management of Zabbix host groups. :codeauthor: Jiri Kotlin <jiri.kotlin@ultimum.io> i ( t absolute_importt print_functiont unicode_literals( t sixc C@ s d t k S( uI Only make these states available if Zabbix module is available. u zabbix.hostgroup_create( t __salt__( ( ( s@ /usr/lib/python2.7/site-packages/salt/states/zabbix_hostgroup.pyt __virtual__ s c K@ s� i } d | k r# | d | d <n d | k r@ | d | d <n d | k r] | d | d <n i | d 6i d 6t d 6d d 6} d j | � } d j | � } d j | � } i i d j | � d 6d j | � d 6| 6} t d | | � } t d r5| rt | d <| | d <n d | d <| | d <| | d <| S| rRt | d <| | d <ne t d | | � } d | k r�t | d <| | d <| | d <n% t | d <| t j | d � | d <| S( u� Ensures that the host group exists, eventually creates new host group. .. versionadded:: 2016.3.0 :param name: name of the host group :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring) :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring) .. code-block:: yaml create_testing_host_group: zabbix_hostgroup.present: - name: 'My hostgroup name' u _connection_useru _connection_passwordu _connection_urlu nameu changesu resultu u commentu Host group {0} created.u"