%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/sdb.pyc

�
���^c@@sidZddlmZmZmZddlZidd6Zd�Zd�Z	d�Z
d	d
d�ZdS(uc
Module for Manipulating Data via the Salt DB API
================================================
i(tabsolute_importtunicode_literalstprint_functionNusetuset_cC@stjjj|tt�S(u
    Get a value from a db, using a uri in the form of sdb://<profile>/<key>. If
    the uri provided does not start with sdb://, then it will be returned as-is.

    CLI Example:

    .. code-block:: bash

        salt '*' sdb.get sdb://mymemcached/foo
    (tsalttutilstsdbtsdb_gett__opts__t	__utils__(turi((s4/usr/lib/python2.7/site-packages/salt/modules/sdb.pytgetscC@stjjj||tt�S(u'
    Set a value in a db, using a uri in the form of ``sdb://<profile>/<key>``.
    If the uri provided does not start with ``sdb://`` or the value is not
    successfully set, return ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' sdb.set sdb://mymemcached/foo bar
    (RRRtsdb_setRR(R	tvalue((s4/usr/lib/python2.7/site-packages/salt/modules/sdb.pytset_scC@stjjj|tt�S(u/
    Delete a value from a db, using a uri in the form of ``sdb://<profile>/<key>``.
    If the uri provided does not start with ``sdb://`` or the value is not
    successfully deleted, return ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' sdb.delete sdb://mymemcached/foo
    (RRRt
sdb_deleteRR(R	((s4/usr/lib/python2.7/site-packages/salt/modules/sdb.pytdelete.siu2abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)cC@stjjj|t||t�S(u�
    Perform a one-time generation of a hash and write it to sdb.
    If that value has already been set return the value instead.

    This is useful for generating passwords or keys that are specific to
    multiple minions that need to be stored somewhere centrally.

    State Example:

    .. code-block:: yaml

        some_mysql_user:
          mysql_user:
            - present
            - host: localhost
            - password: '{{ salt['sdb.get_or_set_hash']('some_mysql_user_pass') }}'

    CLI Example:

    .. code-block:: bash

        salt '*' sdb.get_or_set_hash 'SECRET_KEY' 50

    .. warning::

        This function could return strings which may contain characters which are reserved
        as directives by the YAML parser, such as strings beginning with ``%``. To avoid
        issues when using the output of this function in an SLS file containing YAML+Jinja,
        surround the call with single quotes.
    (RRRtsdb_get_or_set_hashRR(R	tlengthtchars((s4/usr/lib/python2.7/site-packages/salt/modules/sdb.pytget_or_set_hash=s!(t__doc__t
__future__RRRtsalt.utils.sdbRt__func_alias__R
R
RR(((s4/usr/lib/python2.7/site-packages/salt/modules/sdb.pyt<module>s
			

Zerion Mini Shell 1.0