%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@sJdZddlmZmZmZd�Zdd�Zddd�ZdS(uv
Dynamic DNS updates
===================

Ensure a DNS record is present or absent utilizing RFC 2136
type dynamic updates.

:depends: - `dnspython <http://www.dnspython.org/>`_

.. note::
    The ``dnspython`` module is required when managing DDNS using a TSIG key.
    If you are not using a TSIG key, DDNS is allowed by ACLs based on IP
    address and the ``dnspython`` module is not required.

Example:

.. code-block:: yaml

    webserver:
      ddns.present:
        - zone: example.com
        - ttl: 60
        - data: 111.222.333.444
        - nameserver: 123.234.345.456
        - keyfile: /srv/salt/dnspy_tsig_key.txt
i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(Nuddns.updateuddns(t__salt__tFalse(((s4/usr/lib/python2.7/site-packages/salt/states/ddns.pyt__virtual__suAcK@si|d6id6td6dd6}tdrPd|d<dj||�|d<|Std||||||�}|dkr�t|d<d	j|||�|d<nv|r�t|d<d
j||�|d<i|d6|d6|d6|d
6|d6|d<n t|d<dj||�|d<|S(uW
    Ensures that the named DNS record is present with the given ttl.

    name
        The host portion of the DNS record, e.g., 'webserver'. Name and zone
        are concatenated when the entry is created unless name includes a
        trailing dot, so make sure that information is not duplicated in these
        two arguments.

    zone
        The zone to check/update

    ttl
        TTL for the record

    data
        Data for the DNS record. E.g., the IP address for an A record.

    rdtype
        DNS resource type. Default 'A'.

    ``**kwargs``
        Additional arguments the ddns.update function may need (e.g.
        nameserver, keyfile, keyname).  Note that the nsupdate key file can’t
        be reused by this function, the keyfile and other arguments must
        follow the `dnspython <http://www.dnspython.org/>`_ spec.
    unameuchangesuresultuucommentutestu {0} record "{1}" will be updateduddns.updateu0{0} record "{1}" already present with ttl of {2}uUpdated {0} record for "{1}"uzoneuttlurdtypeudatau/Failed to create or update {0} record for "{1}"N(Rt__opts__tNonetformatRtTrue(tnametzonetttltdatatrdtypetkwargstrettstatus((s4/usr/lib/python2.7/site-packages/salt/states/ddns.pytpresent#s0







cK@s�i|d6id6td6dd6}tdrPd|d<dj||�|d<|Std|||||�}|dkr�t|d<d	|d<nP|r�t|d<d
|d<ii|d6|d6d6|d<nt|d<d
|d<|S(u�
    Ensures that the named DNS record is absent.

    name
        The host portion of the DNS record, e.g., 'webserver'. Name and zone
        are concatenated when the entry is created unless name includes a
        trailing dot, so make sure that information is not duplicated in these
        two arguments.

    zone
        The zone to check

    data
        Data for the DNS record. E.g., the IP address for an A record. If omitted,
        all records matching name (and rdtype, if provided) will be purged.

    rdtype
        DNS resource type. If omitted, all types will be purged.

    ``**kwargs``
        Additional arguments the ddns.update function may need (e.g.
        nameserver, keyfile, keyname).  Note that the nsupdate key file can’t
        be reused by this function, the keyfile and other arguments must
        follow the `dnspython <http://www.dnspython.org/>`_ spec.
    unameuchangesuresultuucommentutestu {0} record "{1}" will be deleteduddns.deleteu!No matching DNS record(s) presentuDeleted DNS record(s)uzoneuDeleteduFailed to delete DNS record(s)N(RRRRRR	(R
RR
RRRR((s4/usr/lib/python2.7/site-packages/salt/states/ddns.pytabsent^s(










N(	t__doc__t
__future__RRRRRRR(((s4/usr/lib/python2.7/site-packages/salt/states/ddns.pyt<module>s	;

Zerion Mini Shell 1.0