%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/infoblox_cname.pyc |
�
���^c @@ sG d Z d d l m Z m Z m Z d d e d � Z d d d � Z d S( u
Infoblox CNAME managment.
functions accept api_opts:
api_verifyssl: verify SSL [default to True or pillar value]
api_url: server to connect to [default to pillar value]
api_username: [default to pillar value]
api_password: [default to pillar value]
i ( t absolute_importt print_functiont unicode_literalsc K@ s i | d 6t d 6d d 6i d 6} | s1 i } n d | k rT | j i | d 6� n t d d | | � } | d k r� t d d | d | � } | r� t | d <d j | | d � | d <| Sn | r�| s� t | d <d | d <| St d
| | � } | st | d <d | d <| S| r�i | d 6| d <t d
rOd | d <d | d <| St d | d d | | �} t | d <d | d <| Sn t d
r�d | d <d j | d � | d <| St d d | | � } t d d | | � } t | d <d | d <i d d 6i | d 6| d 6d 6| d <| S( u�
Ensure the CNAME with the given data is present.
name
CNAME of record
data
raw CNAME api data see: https://INFOBLOX/wapidoc
State example:
.. code-block:: yaml
infoblox_cname.present:
- name: example-ha-0.domain.com
- data:
name: example-ha-0.domain.com
canonical: example.domain.com
zone: example.com
view: Internal
comment: Example comment
infoblox_cname.present:
- name: example-ha-0.domain.com
- data:
name: example-ha-0.domain.com
canonical: example.domain.com
zone: example.com
view: Internal
comment: Example comment
- api_url: https://INFOBLOX/wapi/v1.2.1
- api_username: username
- api_password: passwd
u nameu resultu u commentu changesu infoblox.get_cnamet nameuA ** please update the name: {0} to equal the updated data name {1}uF infoblox record already created (supplied fields not ensured to match)u infoblox.diff_objectsuH supplied fields already updated (note: removing fields might not update)u diffu testu'