%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/infoblox_a.pyo

�
���^c@@sJdZddlmZmZmZddded�Zddd�ZdS(u
Infoblox A record 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(tabsolute_importtprint_functiontunicode_literalsc
K@sui|d6td6dd6id6}|s1i}nd|krT|ji|d6�nd|krw|ji|d6�ntdd|d	|d
t|�}|dkrtdd|dd	|dd
t|�}|rt|d<dj||d�|d<|Sn|r�|d}|s.t|d<d
|d<|Std||�}|s_t|d<d|d<|S|r�i|d6|d<tdr�d|d<d|d<|Std|dd||�}t|d<d|d<|Sntdr�d|d<dj|d�|d<|Stdd||�}	tdd|d	|d
t|�}t|d<d|d<idd6i|	d6|d6d6|d<|S(u�
    Ensure infoblox A record.

    When you wish to update a hostname ensure `name` is set to the hostname
    of the current record. You can give a new name in the `data.name`.

    State example:

    .. code-block:: yaml

        infoblox_a.present:
            - name: example-ha-0.domain.com
            - data:
                name: example-ha-0.domain.com
                ipv4addr: 123.0.31.2
                view: Internal
    unameuresultuucommentuchangesuipv4addruinfoblox.get_atnametipv4addrtallow_arrayuA** please update the name: {0} to equal the updated data name {1}iuFinfoblox record already created (supplied fields not ensured to match)uinfoblox.diff_objectsuHsupplied fields already updated (note: removing fields might not update)udiffutestu'would attempt to update infoblox recorduinfoblox.update_objectu_reftdatauGinfoblox record fields updated (note: removing fields might not update)u+would attempt to create infoblox record {0}uinfoblox.create_auinfoblox record createduNoneuoldudataunewN(tFalsetupdatet__salt__tNonetformattTruet__opts__(
RRRtensure_datatapi_optstrettobjtdifftnew_objtnew_obj_ref((s:/usr/lib/python2.7/site-packages/salt/states/infoblox_a.pytpresentsZ"	"*












"

&cK@s�i|d6td6dd6id6}tdd|d|d	t|�}|sbt|d<d
|d<|Stdr�d|d<i|d6d
d6|d<|Stdd|d||�r�t|d<i|d6d
d6|d<n|S(u�
    Ensure infoblox A record is removed.

    State example:

    .. code-block:: yaml

        infoblox_a.absent:
            - name: example-ha-0.domain.com

        infoblox_a.absent:
            - name:
            - ipv4addr: 127.0.23.23
    unameuresultuucommentuchangesuinfoblox.get_aRRRuinfoblox already removedutestuolduabsentunewuinfoblox.delete_aN(RR	RR
R
(RRRRR((s:/usr/lib/python2.7/site-packages/salt/states/infoblox_a.pytabsent]s""




N(	t__doc__t
__future__RRRR
RRR(((s:/usr/lib/python2.7/site-packages/salt/states/infoblox_a.pyt<module>sL

Zerion Mini Shell 1.0